4 ms·
I would recommend learning the SOLID [1] design principles. I've found them to be a very helpful guide when designing software components. [1] https://en.wikip
by quanticle 7y ago
I would recommend learning the SOLID [1] design principles. I've found them to be a very helpful guide when designing software components.
[1] https://en.wikipedia.org/wiki/SOLID https://en.wikipedia.org/wiki/SOLID
- deathanatos 7y agoParticularly the S — the Single Responsibility Principal. So much messy, convoluted code is convoluted because it lacks a singular, clear purpose, and bundles up multiple responsibilities into one section of code, be that a module, class, or whatever is appropriate to your language. They're all good, and you'll get good insight from them all, but I think that first one is more important and has provided me more value than all the rest. I think Liskov substitutability would be my second pick.
- collyw 7y agoAgree completely.