Hacker News new | ask | show | jobs
by jasonlotito 74 days ago
Others have addressed other aspects of this, but I want to address this:

> I cannot remember basic boilerplate stuff.

I don't know exactly what you mean by boilerplate stuff, but honestly, that's stuff we should have automated away prior to AI. We should not be writing boilerplate.

I'd highly encourage you to take the time to automate this stuff away. Not even with AI, but with scripts you can run to automate boilerplate generation. (Assuming you can't move it to a library/framework).

4 comments

So many use cases for LLMs I've read leave me asking "did none of you have a working text editor?"
Jeez, I never remembered boilerplate stuff anyway. Losing grasp of your commonly used, slightly more involved code idioms in your key languages would probably be where I’d draw the ‘be concerned’ line. Like if I get into a car after years of only using public transit, I wouldn’t be too worried if I couldn’t immediately use a standard transmission smoothly. If I no longer could intuitively interact with urban traffic or merge onto a highway, I’d be a lot more concerned.
Lisp macros had pretty much solved the boiler plate problem decades ago.
I read the "boilerplate" in that comment as "basic" meaning "I don't know how to center a div" or "I do not know how to remove duplicates from a collection"
Does anyone know how to centre a div?

Last time I looked there were at least seven ways to do it.

I think "How to center a DIV" was at the top of HN way more times than it should have been :)
margin: auto, or flex align-items/justify-content are my go-tos
Flexbox, mate
Well both of them are easily retrieved from web search, it's not a problem if you forget one or two. I'll probably need some refreshment if I want to implement bubble sort again.
The topic refers to being on an airplane without internet....