this post was submitted on 28 Sep 2024
309 points (97.2% liked)

People Twitter

5377 readers
662 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.
  6. Provide an archived link to the tweet (or similar) being shown if it's a major figure or a politician.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] jubilationtcornpone@sh.itjust.works 42 points 2 months ago* (last edited 2 months ago) (3 children)

One of the common uses I've heard is for generating boiler plate code. I have two thoughts on this. First, you actually have to understand what the boiler plate code is doing for it to be of any value. Second, there are already solutions for this that work just as well or better. Most of the major IDE's either support code templates or have extensions for that. You just have to be willing to take the time to create templates. I use Resharper with Visual Studio for this all the time.

I tried copilot free for a month and was not that impressed.

[–] Prunebutt@slrpnk.net 27 points 2 months ago (5 children)

A colleague once "showed off" how impressive Copilot supposedly was. I was like:

  1. Please don't let AI write unit tests. That's the one spot where I really don't need bugs done by automation.
  2. Don't you guys use snippets? I do that shit faster with snippets, macros and knowing my way around neovim.
[–] tyler@programming.dev 12 points 2 months ago (1 children)

I don’t have snippets set up for languages I’ve never touched before.

But copilot sucks. ChatGPT went super downhill. Claude is alright. If I know the language then it’s not that helpful. But if I don’t, or I don’t know the algorithm, then yeah, it’s super helpful.

[–] Prunebutt@slrpnk.net 1 points 2 months ago

My LSP has some neat built-in snippets. ¯\_(ツ)_/¯

[–] Zikeji@programming.dev 7 points 2 months ago* (last edited 2 months ago)

I'd rather just write it out. I've never used snippets or macros per say, but I do make liberal use of regex replace and multiline cursors lol. Writing out a bunch of getters and setters? Regex!

I did try LLM tab auto complete and while sure, it did suggest some stuff that was useful (after refactoring it), the amount of time I spent WTF'ing some suggestions it made wasn't worth it.

I find more benefit from asking an LLM about something I'm undecided or confused about, and while it's never given me a good enough answer, it has stirred enough creative juices in my brain to help me along lol.

Edit: sorry for the dupes. When Eternity said it failed the send I took that at face value.

[–] flashgnash@lemm.ee 1 points 2 months ago

Personally I think it's useful for pretty much anything you already understand

If you only use it to generate code to do things you already understand it saves you a lot of time and mental stamina by only having to proofread rather than write from scratch

[–] spicystraw@lemmy.world 1 points 2 months ago

Brother, I am inherently lazy, I am not going to do any setup required for templates or add-ons. For simple stuff, ai generated boilerplate is good enough and it does not need maintenance as templates do.