3 ms·
My principles are "be as stupid as possible" write it for someone stupider and comment it for someone even stupider and then maybe you'll have something maintai
by kristopolous 4y ago
My principles are "be as stupid as possible" write it for someone stupider and comment it for someone even stupider and then maybe you'll have something maintainable.
(Important note: stupid is not incompetent - it's a proxy for clarity, composability and rational structure without becoming formal, rigid, overly orthodox or academic about it)
- st-keller 4y agoCan it be that you‘re using „stupid“ exactly what is meant by „simple“ in the KISS principle? ;-)
- kristopolous 4y agoSure. Related. It's an art. Generally the less code, the cleaner the conceptual execution. I always strive to remove and reduce conceptually deceits Here's some code I wrote earlier, probably a good example https://github.com/kristopolous/music-explorer/blob/master/web/get_playlist.php https://github.com/kristopolous/music-explorer/blob/master/w... It's self contained, not very big, not trying to be fancy, as direct as possible. It's worth noting a few things: Some things are repeated when there's no reasonable way to refactor it in a way that simplify things. No framework. No view/model/controller/provider/orm separation. It's not doing much and it does it fine Stuff is composed but intentionally not abstracted Here's a frontend https://github.com/kristopolous/music-explorer/blob/master/web/scripts.js https://github.com/kristopolous/music-explorer/blob/master/w... Again, no react or angular or other framework. Just direct modern code. As far as what it looks like, it's a music player frontend to some sprawling project Example https://9ol.es/pl/ https://9ol.es/pl/