Clean Code and Are Your Lights On? Book Review

I spent the last month reading "Clean Code" so I could finally understand why the dev community is constantly arguing about it. Alongside it, I finished "Are Your Lights On?" (Gause & Weinberg). Reading them together felt like learning how to build a house while simultaneously understanding why people keep building them in the wrong place. The experience? Very eye-opening, but frustrating. The "elephant in the room": Clean Code is an enterprise Java book from the early 2000s. As a JavaScript dev, wading through Java examples felt like reading a foreign language. But once I looked past the boilerplate, the over-arching wisdom beat the noise. I did get some of it in the end, but Java is vastly different from JavaScript in its usage and purpose. The core practices I took away (from "Clean Code"): 1) DX is a choice: Clean code isn’t a burden; it’s a gift to your future self. It’s the difference between a 5-minute sloppy fix to "get a working solution" and a 5-hour nightmare trying to debug it later. It just takes a little patience and care in the moment. 2) The Boy Scout Rule: Leave the campsite cleaner than you found it. You don't have to rewrite the world; just improve the line you’re currently touching. 3) Concurrency is the FINAL BOSS of programming: It offers incredible power, but it goes south fast, and it's pitfalls are hard to reproduce or debug. I’ve learned to respect the "how" as much as the "what." Efficient problem solving (from "Are Your Lights On?"): 1) Solving the wrong problem is the ultimate waste: You can write perfect code, but if it doesn't solve the core issue, it's useless. I cannot beat this dead horse enough. 2) The "communication" fix: We often spend hours trying to "hack" a system from the outside when the solution is just a conversation away with the original creator. 3) The "easy path" trap: Sometimes the most "senior" thing you can do is push back on a high-paying solution that doesn't actually help the user. The general verdict from me: If you’re a JS dev, don’t let the Java scare you off. Extract the core principles discussed (naming things, small functions, single responsibility) and leave the boilerplate behind. Java has changed a lot since the book came out anyway. Next up for me: The Pragmatic Programmer. What book changed your developer experience for the better? #SoftwareEngineering #CleanCode #JavaScript #ComputerScience #CareerJourney #GoldsmithsUoL

To view or add a comment, sign in

Explore content categories