Davy Jones@lemmy.dbzer0.com to Programming@programming.dev · 2 days agoWhich software design principles do you rely on most?message-squaremessage-square28fedilinkarrow-up147file-text
arrow-up147message-squareWhich software design principles do you rely on most?Davy Jones@lemmy.dbzer0.com to Programming@programming.dev · 2 days agomessage-square28fedilinkfile-text
I’m curious which software design principles you find most valuable in real projects. Two concise summaries I’ve found: Clean Code by Robert C. Martin A Philosophy of Software Design by John Ousterhout
minus-squareflatbield@beehaw.orglinkfedilinkEnglisharrow-up3·edit-22 days agoCommon: Procedural, preferably Functional. If you need a procedure or function use a procedure or function. Object Oriented. If you need an object use an object. Modular Package/Collection of Modules Do not optimize unless you need to. Readable is more important then compact. Somone said minimal code coupling, Yes! Try to have code complexity increase closer to N then N factorial where N is code size. Frankly everything else is specialized though not unuseful.
Common:
Frankly everything else is specialized though not unuseful.