Davy Jones@lemmy.dbzer0.com to Programming@programming.dev · 5 days agoWhich software design principles do you rely on most?message-squaremessage-square33fedilinkarrow-up150arrow-down10file-text
arrow-up150arrow-down1message-squareWhich software design principles do you rely on most?Davy Jones@lemmy.dbzer0.com to Programming@programming.dev · 5 days agomessage-square33fedilinkfile-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-25 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.