3 ms·
Moreover, we should avoid the general attitude of 'cleverness' in programming. We've all spent hours dealing with a needlessly intricate piece of code someone e
by some1else 11y ago
Moreover, we should avoid the general attitude of 'cleverness' in programming. We've all spent hours dealing with a needlessly intricate piece of code someone else, or a younger us, wrote in a moment of meta-programming / monadic delusion. To me it's telling, that I'm sometimes even more frustrated after I fully comprehend the mental model. Especially if it's apparent, that the person employing the complexities is a junior, or a superficial expert. Be a boring programmer. It won't exactly make your peers 'adore you', but you'll save yourself and your team a lot of time and effort.
- dropit_sphere 11y agoPretensions of cleverness, sure---but sometimes there really are free lunches. Just as a change in perspective is worth about 80 IQ points, using the right abstraction can make coder cleaner, shorter, more efficient, and more understandable. No, typing `defmacro` doesn't make that automatically happen, but it is, sometimes, necessary.
- some1else 11y agoPretensions of cleverness sounds more accurate, the correct implementations are often intrinsically clever, I agree.