this post was submitted on 27 Jun 2024
992 points (98.1% liked)

Programmer Humor

19463 readers
22 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 1 year ago
MODERATORS
 

Cross posted from: https://lemm.ee/post/35627632

you are viewing a single comment's thread
view the rest of the comments
[–] bjoern_tantau@swg-empire.de 93 points 4 months ago (4 children)

Yeah, in the time I describe the problem to the AI I could program it myself.

[–] takeda@lemmy.world 53 points 4 months ago (2 children)

This is what it is called a programming language, it only exists to be able to tell the machine what to do in an unambiguous (in contrast to natural language) way.

[–] catastrophicblues@lemmy.ca 18 points 4 months ago (1 children)

Ugh I can’t find the xkcd about this where the guy goes, “you know what we call precisely written requirements? Code” or something like that

[–] abcd@feddit.de 12 points 4 months ago (1 children)

This reminds me of a colleague who was always ranting that our code was not documented well enough. He did not understand that documenting code in easily understandable sentences for everybody would fill whole books and that a normal person would not be able to keep the code path in his mental stack while reading page after page. Then he wanted at least the shortest possible summary of the code, which of course is the code itself.

The guy basically did not want to read the code to understand the logic behind. When I took an hour and literally read the code for him and explained what I was reading including the well placed comments here and there everything was clear.

AI is like this in my opinion. Some guys waste hours to generate code they can’t debug for days because they don’t understand what they read, while it would take maybe two hours to think and a day to implement and test to get the job done.

I don’t like this trend. It’s like the people that can’t read docs or texts anymore. They need some random person making a 43 minute YouTube video to write code they don’t understand. Taking shortcuts in life usually never goes well in the long run. You have to learn and refine your skills each and every day to be and stay competent.

AI is a tool in our toolbox. You can use it to be more productive. And that’s it.

[–] AFKBRBChocolate@lemmy.world 3 points 4 months ago

Apparently he wants everything written in COBOL

[–] Norgur@fedia.io 25 points 4 months ago (1 children)

This goes for most LLM things. The time it takes to get the word calculator to write a letter would have been easily used to just write the damn letter.

[–] emptyother@programming.dev 15 points 4 months ago

Its doing pretty well when its doing a few words at a time under supervision. Also it does it better than newbies.

Now if only those people below newbies, those who don't even bother to learn, didn't hope to use it to underpay average professionals.. And if it wasn't trained on copyrighted data. And didn't take up already limited resources like power and water.

[–] MagicShel@programming.dev 12 points 4 months ago (2 children)

I think there might be a lot of value in describing it to an AI, though. It takes a fair bit of clarity of thought to get something resembling what you actually want. You could use a junior or rubber duck instead, but the rubber duck doesn't make stupid assumptions to demonstrate gaps in your thought process, and a junior takes too long and gets demoralized when you have to constantly revise their instructions and iterate over their work.

Like the output might be garbage, but it might really help you write those stories.

[–] Distant_Foreground@lemm.ee 15 points 4 months ago (2 children)

When I'm struggling with a problem it helps me to explain it to my dog. It's great for me to hear it out loud and if he's paying attention, I've got a needlessly learned dog!

[–] 0x0@lemmy.dbzer0.com 11 points 4 months ago

The needlessly learned dogs are flooding the job market!

[–] lemmyvore@feddit.nl 4 points 4 months ago

Oh, God, he's trying to use pointers again. He can never get them right. And they say I'm supposed to chase my tail...

[–] RobertoOberto@sh.itjust.works 2 points 4 months ago

I love this way of thinking about it.

I haven't been interested in AI enough to try writing code with it, but using it as an interactive rubber ducky is a very compelling use case. I might give that a shot.

[–] IronKrill@lemmy.ca 6 points 4 months ago (1 children)

I have a bad habit of jumping into programming without a solid plan which results in lots of rewrites and wasted time. Funnily enough, describing to an AI how I want the code to work forces me to lay out a basic plan and get my thoughts in order which helps me make the final product immensely easier.

This doesn't require AI, it just gave me an excuse to do it as a solo actor. I should really do it for more problems because I can wrap my head better thinking in human readable terms rather than thinking about what programming method to use.

[–] CylustheVirus@beehaw.org 6 points 4 months ago

A rubber ducky is cheaper and not made by stealing other's work. Also cuter.