logoalt Hacker News

sedictious • today at 9:36 AM • 1 reply • view on HN

I also share your unsubstuntiated opinion. To add to this, what people describe as "boilerplate" is rarely a thoughtless process.

More often than not, I've questioned my decisions while writing scaffolding. Do I really need this class? Is there a way to automate this? If not, what differs? What can be abstracted? Some parts were tedious like keeping things consistent with provided Interface Documentation. Still I preferred going through the steps manually because I would also surprise myself by how many decisions I need to take and how many questions would pop up. Isn't this parameter a duplicate? Would this better serve us as a bitmask? How can we actually obtain X value that the interface states is supported here?

This part is fairly low-taxing work that can be done with some music in the background but it's still an active process, helps reinforce your mental model and question things. The things that were purely mechanical were easily automated (at least in the recent past where we've had a gazillion of utilities doing the dirty work of parsing pretty much any exotic, yet moderately mature data format).

I'm not saying LLMs can't do this work for you, but letting them do the "boring stuff" robs you of both agency and understanding because for the really "boring stuff" you don't need an LLM anyway.


Replies

daemin • today at 10:16 AM

Delegating scaffolding and busy repetitive work to an LLM is a signal that there's an abstraction missing, the API has been badly designed, or that you're doing something in a bad way.

Writing the code yourself does illuminate those things clearly and helps you build something better. Those that just use AI end up with more code, not better code, though that seems to be perfectly acceptable to the vast majority of people and organisations.