17
What's your preferred code generation tool in 2024?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Um... what rock have you been living under?
For simple code generation, I use GitHub CoPilot.
In both cases, I'm essentially writing the code "from scratch" myself every time, but now I can type "write a person class" then "add a name property", etc. Best of both words - the control of hand written code, and the efficiency of not having to type all that code out.
When your code is really repetitive, you don't even need to give it any prompts at all. You can usually just start a new empty line and it will guess what line goes there. For example if you have a firstName property, it will predict you're about to add lastName.
When it's more complex, for example if I haven't figured out how to structure the code yet, I use ChatGPT+. That's more of a conversation approach, similar to bouncing ideas off a colleague... "how would you do this; what about that edge case; etc".