TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Write better software: CUPID characteristics instead of rigid SOLID pricinples

2 pointsby nenadstover 3 years ago

1 comment

nenadstover 3 years ago
tldr version:<p>Principles are like rules:<p>you are either compliant or you are not. This gives rise to “bounded sets” of rule-followers and rule-enforcers rather than “centred sets” of people with shared values.2<p>Instead, I started thinking about properties:<p>qualities or characteristics of code rather than rules to follow.<p>Properties define a goal or centre to move towards. Your code is only closer to or further from the centre, and there is always a clear direction of travel.<p>.....<p>and then he gives a list of five properties that good architectures can aim for.