Davy Jones@lemmy.dbzer0.com to Programming@programming.dev · 4 days agoWhich software design principles do you rely on most?message-squaremessage-square33linkfedilinkarrow-up150file-text
arrow-up150message-squareWhich software design principles do you rely on most?Davy Jones@lemmy.dbzer0.com to Programming@programming.dev · 4 days agomessage-square33linkfedilinkfile-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-24 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.