4 ms·
If can you can create boilerplate code, logging, documentation, common algorithms by AI it saves you a lot of time which you can use on your specialized stuff.
by holoduke 2y ago
If can you can create boilerplate code, logging, documentation, common algorithms by AI it saves you a lot of time which you can use on your specialized stuff. I am convinced that you can make yourself x2 by using an AI. Just use it in the proper way.
- endemic 2y agoI feel like we should get rid of the boilerplate, rather than have an LLM barf it out.
- JohnFen 2y agoHonestly, this bit about genAI being good at generating boilerplate is correct, but it always makes me wonder... is this really a thing that would save a ton of time? How much boilerplate are people writing? Only a small fraction of code that I write involves boilerplate.
- tisdadd 2y agoI just tend to use am extension such as https://marketplace.visualstudio.com/items?itemName=Huuums.vscode-fast-folder-structure https://marketplace.visualstudio.com/items?itemName=Huuums.v... for my boilerplate, as I can customize along the way for the project and not think hard. I have seen a lot of younger devs not using such a thing or already existing CLI and instead copy paste then rename, or try writing from scratch every time but slight differences... It is weird to me how many don't look for ways to automate boilerplate, as it has always been my default.
- lowbloodsugar 2y agoWhen I try to read code on GitHub that has the var or val keyword, I have no fucking idea what the types of the variables are. Sure, the compiler can infer, since it’s just ingested your entire code base, but I have a single page of text to look at. Some boilerplate is good.
- Terr_ 2y agoYeah, I often like to point out that our entire industry is already built on taking repeatable stuff and then abstracting it away. Boilerplate code exists when the next step is often to start customizing it in a unique and unpredictable way.
- danenania 2y agoThere's an inherent tradeoff here though. Beyond a certain complexity threshold, code that leans toward more boilerplate is generally much easier to understand and maintain than code that tries to DRY everything with layers of abstraction, indirection, and magic.
- dcchambers 2y agoI guess that's a good way to think of it. Despite not being very useful (currently, anyway) for certain types of complicated or novel work - they still are very useful for other types of work and can help reduce development toil.
- guluarte 2y agoor you just can start with a well maintained boilerplate
- croes 2y agoTested code libraries save time, AI generated code saves time at writing but the review takes more time because it’s foreign code.
- kibwen 2y ago> I am convinced that you can make yourself x2 by using an AI. This means you're getting paid 2x more, right? ...Right?
- xarope 2y agoI hate to say this, but you probably can only achieve x2 using AI on the "easy" parts of your work. Going by the 80/20 rule: - 80% of your work is easy, and is accomplished in 20% of the time - 20% of your work is hard, and takes 80% of the time If you believe AI can x2 that easy 80% of your work, you have only managed to reduce that 20% to 10%. Someone else can work out that x improvement (1.11?), but it's nowhere near x2.