←back to thread

466 points 0x63_Problems | 6 comments | | HN request time: 0.66s | source | bottom
Show context
dcchambers ◴[] No.42138389[source]
LLM code gen tools are really freaking good...at making the exact same react boilerplate app that everyone else has.

The moment you need to do something novel or complicated they choke up.

This is why I'm not very confident that tools like Vercel's v0 (https://v0.dev/) are useful for more than just playing around. It seems very impressive at first glance - but it's a mile wide and only an inch deep.

replies(2): >>42138440 #>>42138881 #
holoduke ◴[] No.42138440[source]
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.
replies(6): >>42138509 #>>42138590 #>>42139129 #>>42139261 #>>42140602 #>>42144895 #
1. endemic ◴[] No.42138509[source]
I feel like we should get rid of the boilerplate, rather than have an LLM barf it out.
replies(4): >>42138708 #>>42138721 #>>42138872 #>>42139816 #
2. JohnFen ◴[] No.42138708[source]
Honestly, 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.
replies(1): >>42143667 #
3. lowbloodsugar ◴[] No.42138721[source]
When 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.

4. Terr_ ◴[] No.42138872[source]
Yeah, 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.

5. danenania ◴[] No.42139816[source]
There'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.
6. tisdadd ◴[] No.42143667[source]
I just tend to use am extension such as 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.