Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Strength  





2 Degree  





3 Locality  





4 Types  



4.1  Static connascences  



4.1.1  Connascence of name (CoN)  





4.1.2  Connascence of type (CoT)  





4.1.3  Connascence of meaning (CoM) or connascence of convention (CoC)  





4.1.4  Connascence of position (CoP)  





4.1.5  Connascence of algorithm (CoA)  







4.2  Dynamic connascence  



4.2.1  Connascence of execution (CoE)  





4.2.2  Connascence of timing (CoT)  





4.2.3  Connascence of values (CoV)  





4.2.4  Connascence of identity (CoI)  









5 Reducing connascence  





6 References  














Connascence






العربية
Magyar
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Connascent software components)

Connascence (/kəˈnsəns/) is a software quality metric invented by Meilir Page-Jones to allow reasoning about the complexity caused by dependency relationships in object-oriented design much like coupling did for structured design. In software engineering, two components are connascent if a change in one would require the other to be modified in order to maintain the overall correctness of the system. In addition to allowing categorization of dependency relationships, connascence also provides a system for comparing different types of dependency. Such comparisons between potential designs can often hint at ways to improve the quality of the software.

Strength

[edit]

A form of connascence is considered to be stronger if it is more likely to require compensating changes in connascent elements. The stronger the form of connascence, the more difficult and costly it is to change the elements in the relationship.

Degree

[edit]

The acceptability of connascence is related to the degree of its occurrence. Connascence might be acceptable in limited degree but unacceptable in large degree. For example, a function or method that takes two arguments is generally considered acceptable. However, it is usually unacceptable for functions or methods to take ten arguments. Elements with a high degree of connascence incur greater difficulty, and cost, of change than elements that have a lower degree.

Locality

[edit]

Locality matters when analyzing connascence. Stronger forms of connascence are acceptable if the elements involved are closely related. For example, many languages use positional arguments when calling functions or methods. This connascence of position is acceptable due to the closeness of caller and callee. Passing arguments to a web service positionally is unacceptable due to the relative unrelatedness of the parties. The same strength and degree of connascence will have a higher difficulty and cost of change, the more distant the involved elements are.

Types

[edit]

This is a list of some types of connascence ordered approximately from weak to strong forms.

Static connascences

[edit]

Connascenses are said to be "static" if they can be found by visually examining the code.

Connascence of name (CoN)

[edit]

Connascence of name is when multiple components must agree on the name of an entity. Method names are an example of this form of connascence: if the name of a method changes, callers of that method must be changed to use the new name.

Connascence of type (CoT)

[edit]

Connascence of type is when multiple components must agree on the type of an entity. In statically typed languages, the type of method arguments is an example of this form of connascence. If a method changes the type of its argument from an integer to a string, callers of that method must be changed to pass a different argument than before.

Connascence of meaning (CoM) or connascence of convention (CoC)

[edit]

Connascence of meaning is when multiple components must agree on the meaning of particular values. Returning integers 0 and 1 to represent false and true, respectively, is an example of this form of connascence.

Connascence of position (CoP)

[edit]

Connascence of position is when multiple components must agree on the order of values. Positional parameters in method calls are an example of this form of connascence. Both caller and callee must agree on the semantics of the first, second, etc. parameters.

Connascence of algorithm (CoA)

[edit]

Connascence of algorithm is when multiple components must agree on a particular algorithm. Message authentication codes are an example of this form of connascence. Both sides of the exchange must implement exactly the same hashing algorithm or the authentication will fail.

Dynamic connascence

[edit]

Connascenses are said to be "dynamic" if they can only be discovered at runtime.

Connascence of execution (CoE)

[edit]

Connascence of execution is when the order of execution of multiple components is important.

Connascence of timing (CoT)

[edit]

Connascence of timing is when the timing of the execution of multiple components is important.

Connascence of values (CoV)

[edit]

Connascence of values is when several values must change together.

Connascence of identity (CoI)

[edit]

Connascence of identity is when multiple components must reference the same entity.

Reducing connascence

[edit]

Reducing connascence will reduce the cost of change for a software system. One way of reducing connascence is by transforming strong forms of connascence into weaker forms. For example, a method that takes several arguments could be changed to use named parameters. This would change the connascence from CoPtoCoN. Reducing the degree and increasing locality of involved elements constitute other ways to reduce connascence.

References

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Connascence&oldid=1199191455"

Category: 
Software architecture
Hidden categories: 
Articles with short description
Short description matches Wikidata
Articles with topics of unclear notability from August 2019
All articles with topics of unclear notability
 



This page was last edited on 26 January 2024, at 10:08 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki