| ▲ | jamesmcq 8 hours ago | ||||||||||||||||||||||||||||||||||||||||
The key part of my comment is "correctly". Does it write maintainable code? Does it write extensible code? Does it write secure code? Does it write performant code? My experience has been it failing most of these. The code might "work", but it's not good for anything more than trivial, well defined functions (that probably appeared in it's training data written by humans). LLMs have a fundamental lack of understanding of what they're doing, and it's obvious when you look at the finer points of the outcomes. That said, I'm sure you could write detailed enough specs and provide enough examples to resolve these issues, but that's the point of my original comment - if you're just writing specs instead of code you're not gaining anything. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | cowlby 8 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
I find “maintainable code” the hardest bias to let go of. 15+ years of coding and design patterns are hard to let go. But the aha moment for me was what’s maintainable by AI vs by me by hand are on different realms. So maintainable has to evolve from good human design patterns to good AI patterns. Specs are worth it IMO. Not because if I can spec, I could’ve coded anyway. But because I gain all the insight and capabilities of AI, while minimizing the gotchas and edge failures. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| ▲ | reg_dunlop 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||
To answer all of your questions: yes, if I steer it properly. It's very good at spotting design patterns, and implementing them. It doesn't always know where or how to implement them, but that's my job. The specs and syntactic sugar are just nice quality of life benefits. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | jmathai 8 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
You’d be building blocks which compound over time. That’s been my experience anyway. The compounding is much greater than my brain can do on its own. | |||||||||||||||||||||||||||||||||||||||||