by brokencode · 1y ago · 0 comments
I’ve totally transformed how I write code from writing it to myself to writing detailed instructions and having the AI do it.
It’s so much faster and less cognitively demanding. It frees me up to focus on the business logic or the next change I want to make. Or to go grab a coffee.
AI's advantage is that it has infinite stamina, so if your can make your hard problem a marathon of easy problems it becomes doable.
Even basic scripts and UI components are fucked up all the time.
This always feels like you're just holding it wrong and blaming the tool.
AI is so smart, one day might even figure out how to subtract... https://news.ycombinator.com/item?id=45821635
Why does the AI have to be good at math when it can just use a calculator? AI tool usage is getting better all the time.
I've found AI is pretty good at figuring out what to do, but hit or miss at actually doing it.
It will make a mess but if you drop a console.log into the browser debug console to show the AI what it should be looking for after it spent 3 hours failing to help understand and debug the problem, it will do 1 week of work in 2 hours.
When it has access to the right tools, it does a decent job, especially for fixing CSS issues.
But when it can't see the artifacts it's debugging, it starts guessing, confident that it knows the root cause.
A recent example: I was building up a html element out of the DOM and exporting to PNG using html2canvas. The element was being rendered correctly in the DOM, but the exported image was incorrect, and it spent 2 hours spinning it's wheels and repeating the same fixes over and over.