4 ms·
As one of the Ten Commandments of C says, “your time is better spent writing programs then creating beautiful new impediments to understanding.”
by taneq 4y ago
As one of the Ten Commandments of C says, “your time is better spent writing programs then creating beautiful new impediments to understanding.”
- bjoli 4y agoAt the same time things like proper macros are a great way to try new language features. Iterating on something like an object system or miniKanren becomes a lot more simple.
- rvense 4y agoSometimes the shear amount of repetitive code you need to have to accomplish some task is in itself an impediment to understanding, or it will encourage unfortunate shortcuts later on.
- mmphosis 4y agoI don't see that one. https://www.lysator.liu.se/c/ten-commandments.html https://www.lysator.liu.se/c/ten-commandments.html
- taneq 4y agoI didn't look up the exact wording, but it's a paraphrase of the second part of Commandment 8 in the version you linked. I think I'd conflated it somewhat with another one (not in that version, there are a few around though) about not using the preprocessor to turn C into a different language.
- mmphosis 4y agoThou shalt make thy program's purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding. I'd rather strive for beauty and try to avoid impediments. Even though "Brace Style" is loaded with impediments, I'll stick to Brace Style when writing C code. Any C macros I might write are weird enough already.
- deleted 4y ago[deleted]
- quickthrower2 4y agoImpediments to understanding can be a moat
- leoh 4y agoGreat idea. When we need to store relational data, let’s all write C instead of SQL as well.
- mrkeen 4y agoInsufficiently-abstract code is an impediment to understanding.