In computer programming, cohesion is a measure of how strongly-related and focused the various responsibilities of a software module are. Cohesion is an ordinal type of measurement and is usually expressed as "high cohesion" or "low cohesion" when being discussed.

PropertyValue
dbpprop:abstract
  • In computer programming, cohesion is a measure of how strongly-related and focused the various responsibilities of a software module are. Cohesion is an ordinal type of measurement and is usually expressed as "high cohesion" or "low cohesion" when being discussed. Modules with high cohesion tend to be preferable because high cohesion is associated with several desirable traits of software including robustness, reliability, reusability, and understandability whereas low cohesion is associated with undesirable traits such as being difficult to maintain, difficult to test, difficult to reuse, and even difficult to understand. Cohesion is often contrasted with coupling, a different concept. Nonetheless high cohesion often correlates with loose coupling, and vice versa. The software quality metrics of coupling and cohesion were invented by Larry Constantine based on characteristics of "good" programming practices that reduced maintenance and modification costs.
  • In der objektorientierten Programmierung beschreibt Kohäsion, wie gut eine Programmeinheit eine logische Aufgabe oder Einheit abbildet. In einem System mit starker Kohäsion ist jede Programmeinheit verantwortlich für genau eine wohldefinierte Aufgabe oder Einheit.
  • Tietotekniikassa koheesio tarkoittaa sitä, kuinka pitkälle moduulissa tai luokassa oleva ohjelmakoodi on keskittynyt tietyn toiminnallisuuden toteuttamiseen. Olio-ohjelmoinnissa korkea koheesio tarkoittaa esimerkiksi sitä, että luokan metodit liittyvät läheisesti samoihin käsitteisiin kuin moduulin tarjoamat palvelut. Korkea koheesio on tavoiteltava piirre. Mitä korkeampi koheesio, sitä todennäköisemmin koodia voidaan käyttää muuallakin. Samoin luotettavuus ja ymmärrettävyys paranevat. Korkea koheesio liittyy usein myös *löyhään kytkentään* ja vastaavasti *matala koheesio* johtaa helposti vahvaan kytkentään: jos moduulin toiminnallisuus hajaantuu useille eri osa-alueille, se luultavasti myös riippuu useista muista eri moduuleista ja luokista. Samoin matala koheesio johtaa yleensä vaikeaan testattavuuteen ja ylläpidettävyyteen.
  • 凝集度(ぎょうしゅうど、Cohesion)とは、情報工学においてモジュール内のソースコードが特定の機能を提供すべく如何に協調しているかを表す度合いである。凝集度は順序尺度の一種であり、「凝集度が高い」とか「凝集度が低い」といった言い方で使われる。凝集度の高いモジュールは、堅牢性、信頼性、再利用性、読みやすさなどの点で好ましく、凝集度の低いモジュールは保守/評価/再利用/読解が難しいため好ましくないとされる。 凝集度は結合度と組み合わせて議論されることが多い。凝集度が高いモジュールは他との結合度が低いことが多く、逆に凝集度が低ければ結合度が高くなる傾向がある。ソフトウェアの品質を凝集度と結合度で表す手法は、Wayne P. Stevens、Glenfold J. Myers、Larry L. Constantine が定義したもので、「良い」プログラミングの実例の特徴を探るためにIBMで彼らが指揮したいくつかのソースコード解析から生まれた。
  • Spójność oprogramowania – metryka kodu wskazująca, na ile jest on łatwy do utrzymywania (rozwoju), testowania, powtórnego użycia, a nawet do zrozumienia. Jako przeciwstawna jest zestawiana ze zależnością oprogramowania. Obie te metryki zaproponował Larry Constantine na podstawie dobrych praktyk programowania.
  • Связность или сцепление - характеристика внутренней взаимосвязи между частями одного модуля.
dbpprop:hasPhotoCollection
dbpprop:reference
rdfs:comment
  • In computer programming, cohesion is a measure of how strongly-related and focused the various responsibilities of a software module are. Cohesion is an ordinal type of measurement and is usually expressed as "high cohesion" or "low cohesion" when being discussed.
  • In der objektorientierten Programmierung beschreibt Kohäsion, wie gut eine Programmeinheit eine logische Aufgabe oder Einheit abbildet. In einem System mit starker Kohäsion ist jede Programmeinheit verantwortlich für genau eine wohldefinierte Aufgabe oder Einheit.
  • Tietotekniikassa koheesio tarkoittaa sitä, kuinka pitkälle moduulissa tai luokassa oleva ohjelmakoodi on keskittynyt tietyn toiminnallisuuden toteuttamiseen. Olio-ohjelmoinnissa korkea koheesio tarkoittaa esimerkiksi sitä, että luokan metodit liittyvät läheisesti samoihin käsitteisiin kuin moduulin tarjoamat palvelut. Korkea koheesio on tavoiteltava piirre. Mitä korkeampi koheesio, sitä todennäköisemmin koodia voidaan käyttää muuallakin.
  • Spójność oprogramowania – metryka kodu wskazująca, na ile jest on łatwy do utrzymywania (rozwoju), testowania, powtórnego użycia, a nawet do zrozumienia. Jako przeciwstawna jest zestawiana ze zależnością oprogramowania. Obie te metryki zaproponował Larry Constantine na podstawie dobrych praktyk programowania.
  • Связность или сцепление - характеристика внутренней взаимосвязи между частями одного модуля.
rdfs:label
  • Cohesion (computer science)
  • Kohäsion (Informatik)
  • Koheesio (tietotekniikka)
  • 凝集度
  • Spójność oprogramowania
  • Связность (программирование)
owl:sameAs
skos:subject
foaf:page
is dbpprop:disambiguates of
is dbpprop:redirect of