this post was submitted on 16 Feb 2024
20 points (91.7% liked)
CSCareerQuestions
948 readers
1 users here now
A community to ask questions about the tech industry!
Rules/Guidelines
- Follow the programming.dev site rules
- Please only post questions here, not articles to avoid the discussion being about the article instead of the question
Related Communities
- [email protected] - a general programming community
- [email protected] - general question community
- [email protected] - for questions targeted towards experienced developers
Credits
Icon base by Skoll under CC BY 3.0 with modifications to add a gradient
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Probably 60% where those not using it have just been too lazy to set it up. I have a mostly senior crew so I’m not concerned about code reviews or poorly optimized generated code. For most things, the boilerplate that code gen can add is a continuation of things like Intellisense and linting.
What you have to watch out for is complicated logic being built by code gen and not knowing enough about the code generated. For example, I’m very comfortable with fixing the weird ass Rust iterators Copilot will make because I understand Rust iterators. If I had to move to, say, C#, I’d have no fucking clue whether or not the generated code is idiomatic, solves problems in the way a C# would solve problems, or even compiles until I run it.
I work in web and I came from an SRE background. Those industries lend themselves to this quick code gen. If you managed a Terraform codebase for any appreciable cloud presence pre-code gen, you’d understand how much of a boon it is for certain areas. I don’t know how useful it would be in languages or areas that don’t glue a bunch of boilerplate together. HPC, for example, cares a ton about every instruction. At the same time, code gen can give you a pretty good assembly template to improve.