this post was submitted on 19 Nov 2024
1050 points (97.8% liked)

People Twitter

5270 readers
674 users here now

People tweeting stuff. We allow tweets from anyone.

RULES:

  1. Mark NSFW content.
  2. No doxxing people.
  3. Must be a tweet or similar
  4. No bullying or international politcs
  5. Be excellent to each other.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Kushan 11 points 4 days ago (1 children)

They don't give you the answer, they give you a rough idea of where to look for the answer.

I've used them to generate chunks of boilerplate code that was 80% of what I needed, because I knew what I needed and wanted to save time.

[–] [email protected] 10 points 4 days ago (1 children)

There are ways of doing that which dont require burning an acre of rainforest

[–] [email protected] 2 points 4 days ago

Yep. The overwhelming majority of IDEs have support for making templates/snippets.

VScode/VScodium has a very robust snippet system where you can set parts as "fill in the blank" that you can tab between, with optional drop down menus for choices. You can even link different "fill in" sections so you can do stuff like type in an argument name and have it propagate that same name through multiple places in your snippet.

If that's too much, how the fuck can any dev (or even someone hacking together scripts) survive without at least one file of common shit they made before that they can copy paste from? I really feel like that's bare minimum.

Either it's boilerplate you can already copy from somewhere else (documentation or previous work), or it's something you should probably review (at least briefly) and make into a template or snippet you can copy and paste later. That's part of the magic of programming: you get to build your own toolbox over time.