this post was submitted on 11 May 2024
769 points (100.0% liked)

Programmer Humor

22157 readers
2470 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] tsonfeir@lemm.ee 16 points 10 months ago (4 children)

Just…. Type it?

How lazy are we becoming?

[–] humorlessrepost@lemmy.world 43 points 10 months ago (1 children)

This wasn’t made for programmers. It was made for middle management who think the reason the ticket is taking so long is because the devs can’t type more words per minute.

[–] FooBarrington@lemmy.world 29 points 10 months ago (1 children)

Guess I'm not a programmer, because this feature has been a real god-send in my recent projects.

[–] EatATaco@lemm.ee 19 points 10 months ago

The other poster is either speaking from a place of ignorance, as they've never really used it, of they just aren't smart enough to learn how to use a new tool.

As much as middle management sucks, devs blaming management for their own inability to learn is almost on the same level.

[–] cupcakezealot@lemmy.blahaj.zone 18 points 10 months ago (2 children)

i mean i still think tab/auto completion is good to save time.

the problem is when people become reliant on it and just have it write entire chucks of code without going through it and checking it or changing it after the baseline is done.

[–] tsonfeir@lemm.ee 6 points 10 months ago

Autocomplete is fine, but do we need “AI” to figure out left and right?

And I agree, chunks of code are bad.

[–] fossit@lemm.ee 5 points 10 months ago (1 children)

Then that wouldn't exactly be a time saver, but rather time-consuming? Paradox

[–] cupcakezealot@lemmy.blahaj.zone 6 points 10 months ago (1 children)

i mean finishing a variable declare with a tab is pretty convenient.

as is autocompleting an html5 structure.

[–] GammaGames@beehaw.org 2 points 10 months ago

Yeah, usually it’s pretty good autocomplete. Definitely makes my coding faster (and highlighting a chunk of SQL and asking it to modify it in plain English is magic)

[–] tiefling@lemmy.blahaj.zone 10 points 10 months ago* (last edited 10 months ago) (1 children)

Stuff like this is really useful when variable names are annoying, or when you have to repeat the same monotonous pattern over a large batch of code.

My favorite use of AI in code so far has been refactoring deprecated feature flags. "Replace enableXYZFeatureFlag with true and optimize the code". Bam, 1-2 hours' worth of crunch work solved in minutes.

[–] Kache@lemm.ee 11 points 10 months ago (1 children)

If it takes 1+ hours of work to remove a feature flag branch in an area of code, I wouldn't trust the correctness of anything the AI writes and would be super skeptical about anything the humans had written.

[–] tiefling@lemmy.blahaj.zone 6 points 10 months ago* (last edited 10 months ago)

It takes a long time because it hits a lot of files, not because it's logically complex. Also, that's why unit and integration tests exist.

[–] Oinks@lemmy.blahaj.zone 6 points 10 months ago

You could say that about any kind of autocomplete. Why would people install snippet plugins into their vim/emacs? Sure you can just type everything by hand but it's just more convenient.

Personally I find these kinds of inline AI suggestions make a more convincing use case than trying to prompt engineer a Chat based LLM and diverting your attention to phrasing specifics instead of the actual problem space.