Clever code is probably the worst code you could write
Engineer’s Codex is a free publication about real-world software engineering. I write about real-world technical case studies, outages, and interesting stories from the industry. When I was an undergrad, Leetcode broke my brain. I would see top solutions of esoteric one-liners and wrongly think “how do I ever get this good?” This is commonly called “code golfing”. It’s a fun hobby, but very far from “good code.” Everybody (including those on Leetcode) knows this isn’t good code. In the industry, it’s the worst code one could write. However, on the other end of the spectrum, I realized eventually that the clearest code was actually the hardest to write. It made sense retrospectively. Reviewing the code of a senior staff software engineer was much easier to follow and review compared to the code of an entry-level L3 engineer. The “power” of clear code, for better or for worse, was made fully clear to me after a certain incident at work. I once wrote a data enrichment module in C++, a lan
Engineer’s Codex is a free publication about real-world software engineering. I write about real-world technical case studies, outages, and interesting stories from the industry. When I was an undergrad, Leetcode broke my brain. I would see top solutions of esoteric one-liners and wrongly think “how do I ever get this good?” This is commonly called “code golfing”. It’s a fun hobby, but very far from “good code.” Everybody (including those on Leetcode) knows this isn’t good code. In the industry, it’s the worst code one could write. Okay, I admit - this is a pretty bad example of clever…
related reading
- The Grug Brained Developergrugbrain.dev
- Reflections on 10,000 Hours of Programming | Matt Rickardmatt-rickard.com
- Things You Should Never Do, Part I – Joel on Softwarejoelonsoftware.com
- claude code is not making your product betterethanding.substack.com
- What is "good taste" in software engineering?seangoedecke.com
- On Leetcodeplanetbanatt.net
- Good Engineer/Bad Engineerterriblesoftware.org
- The Joel Test: 12 Steps to Better Code – Joel on Softwarejoelonsoftware.com
- Code is cheap. Show me the talk. - nadh.innadh.in
- davidbau.comdavidbau.com
- AddyOsmani.com - 21 Lessons From 14 Years at Googleaddyosmani.com
- How to become a dramatically better programmernews.ycombinator.com