Addy Osmani - 21 Lessons From 14 Years at Google
Your code is a strategy memo to strangers who will maintain it at 2am during an outage.
-- Addy Osmani
Your code is a strategy memo to strangers who will maintain it at 2am during an outage.
[Sandboxing ]isn’t just about LLMs, but it becomes even more important now there are so many more people writing code often without knowing what they’re doing.
…
Being able to read a detailed specification and transform it into lines of code is the thing that’s being automated away. What’s left is everything else, and the more time I spend working with coding agents the larger that “everything else” becomes.
I very often use AI for inspiration. In this case, I ended up keeping a lot (not all) of the UI code it made, but I will very often prompt an agent, throw away everything it did, and redo it myself (manually!). I find the “zero to one” stage of creation very difficult and time consuming and AI is excellent at being my muse.
[…]
If the agent figures it out and I don’t understand it, I back it out. I’m not shipping code I don’t understand. While it’s failing, I’m also tabbed out searching the issue and trying to figure it out myself.
[…]
AI is very good at fill-in-the-blank or draw-the-rest-of-the-owl. My pattern here of creating scaffolding with descriptive function names, parameters, todo comments, etc. is a really common one for me and it works very well.
[…]
My last prompt to an agent is always to ask what else I might be missing. I do this regardless of if I manually wrote the code myself or not.
If we don’t think hard about WHY we are doing work, and what work should look like, we are all going to drown in a wave of AI content.