writingsolidcode:Writing Better Code -- Keepin' it Cohesive

.code { border: 1px dashed #999999; padding: 3px; background-color: #F6F6F6;}Part I. CohesionWhen we talk about a method being highly cohesive we mean that it performs _disibledevent=GramE,Happy codi... [阅读全文]

writingsolidcode:Writing Better Code -- Keepin' it Extensible...

.code { border: 1px dashed #999999; padding: 3px; background-color: #F6F6F6;}Managing Change in Code.The OCP (Open-Close Principle) states that we should keep our objects open for extensibility and c... [阅读全文]

writingsolidcode:Writing Better Code – Keepin’ it Maintainable

The Developer's DilemmaThere are two main ideas to keep in mind and should follow in order to keep our code maintainable:1) Complexity is the enemy! 2) Fragility is the enemy! The problem we face as d... [阅读全文]
1 共1条 分1页