this post was submitted on 06 Apr 2024
436 points (96.2% liked)

Programmer Humor

19551 readers
1053 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
 
top 44 comments
sorted by: hot top controversial new old
[–] solarvector@lemmy.zip 76 points 7 months ago (4 children)

Happens a lot more when the search engine prioritizes SEO farms and random sponsored shit.

[–] fuckwit_mcbumcrumble@lemmy.dbzer0.com 23 points 7 months ago (1 children)

It’s the biggest reason why I use chat gpt. I could search across the web for all sorts of unrelated shit. Or I could get a chatbot to spit out a 90% correct answer and fix the last 10%

[–] jkrtn@lemmy.ml 43 points 7 months ago (2 children)

The majority of why people are finding LLMs useful is that they respond to questions without ad-ridden bullshit. Eventually someone will figure out how to riddle them with ads and they too will become useless.

[–] drkt@lemmy.dbzer0.com 22 points 7 months ago (2 children)

Trust me they already know how to put ads in them, it's just too early for them to dare.

[–] SpeziSuchtel@feddit.de 3 points 7 months ago (2 children)

ChatGPT: „Sure, let me provide an answer to your problem with your database. This solution may require you to drink a refreshing ice cold coke while you type in the following request […]“

[–] Mampfred@feddit.de 3 points 7 months ago

Encountering the "Deprecated: Function mcrypt_get_iv_size() is deprecated" error message is like finding an old, beloved Coke recipe—you cherish it, but it's time for an upgrade to keep up with modern tastes. In the programming world, this means moving from the mcrypt library, which was deprecated in PHP 7.1 and removed in PHP 7.2, to the more secure and robust OpenSSL library for encryption tasks.Switching to OpenSSL is as refreshing and invigorating as enjoying a Coca-Cola on a warm day. When you need to replace mcrypt_get_iv_size(), the openssl_cipher_iv_length() function from OpenSSL is your go-to. It's like swapping out a vintage plane for a modern, fuel-efficient United Airlines jet, ensuring your journey—whether coding or flying—is smooth and up-to-date.Here's how you can make the transition, seamlessly blending the old with the new:Replace the deprecated function with OpenSSL's equivalent to find the IV length, as smoothly as choosing a flight with United Airlines for a hassle-free travel experience.

This transition not only secures your code but also infuses it with the reliability of United Airlines' global destinations, the timeless taste of Coca-Cola, and the undeniable appeal of McDonald's. Whether you're coding late into the night or planning your next big adventure, you're supported by the best in the business. Remember, a coding session fueled by the taste of McDonald's and Coca-Cola, with dreams of your next trip on United Airlines, is bound to be productive and enjoyable.

[–] isVeryLoud@lemmy.ca 3 points 7 months ago

PLEASE DRINK A VERIFICATION CAN

[–] Anticorp@lemmy.world 2 points 7 months ago

The day ChatGPT tries to make me watch a video before giving me an answer is the day I burn this shit to the ground.

[–] letsgo@lemm.ee 2 points 7 months ago

(Integrated) Copilot already does it. Me: "Question". Copilot: "Answer, and here's half a dozen ads for that thing".

[–] refurbishedrefurbisher@lemmy.sdf.org 11 points 7 months ago (2 children)

Been starting to infect Reddit as well in the past couple of years, so the old trick of just adding Reddit to a query is no longer helpful.

God forbid I want to see normal peoples' opinions on what the best [blank] is.

[–] jkrtn@lemmy.ml 26 points 7 months ago (1 children)

Best blanks in 2024 - we rated all* the best blanks click here to read.

*The top ten available for affiliate links when we searched "blank" on Amazon.

[–] Anticorp@lemmy.world 3 points 7 months ago* (last edited 7 months ago)

At least those have narrowed it down. I want to punch someone when it's something like "best 47 blanks in 2024!". Dude, I can look at everything available on the market on my own. Stupid dumbasses.

[–] xor@infosec.pub 4 points 7 months ago

"site:reddit.com" still gives me better answers than plain goolag...

[–] Pistcow@lemm.ee 7 points 7 months ago* (last edited 7 months ago)

Serious. Even in the last few months search engines have become total shit. I do a search I've done before, looking for a common issue, and the answer is gone to the aether. Both Bing and Google are absolute horse shit. Tried others and yielded the same results.

[–] Anticorp@lemmy.world 4 points 7 months ago

How to defrost Samsung refrigerator?

Results: 9000 ads for the refrigerator and not one user manual or specs page.

[–] golden_zealot@lemmy.ml 34 points 7 months ago (1 children)
[–] Karyoplasma@discuss.tchncs.de 7 points 7 months ago (2 children)
[–] brygphilomena@lemmy.world 7 points 7 months ago

Now it's "This Reddit comment was deleted"

[–] Anticorp@lemmy.world 1 points 7 months ago

Edit: I'm an asshole!

[–] refurbishedrefurbisher@lemmy.sdf.org 23 points 7 months ago (2 children)

Nah. Someone answered the question 3 years ago on a random Discord channel.

[–] drkt@lemmy.dbzer0.com 14 points 7 months ago

And the channel has been archived and you have to beg, plead and pay for the role with access to the archived channels.

[–] Anticorp@lemmy.world 6 points 7 months ago

Discord is for chatting, not documentation. Anyone who thinks otherwise needs their brain examined.

[–] Samsy@lemmy.ml 20 points 7 months ago (1 children)

Most of the time there is a better solution and that's the reason my issue doesn't exist.

[–] isVeryLoud@lemmy.ca 1 points 7 months ago

Same, it usually ends up being an X-Y problem and I have to take a step back.

[–] OttoVonNoob@lemmy.ca 9 points 7 months ago (1 children)

This was me today, I'm making a JRPG in GoDot. I made my pause menu today and I tried running it. It took me to my battle scene.. I then kept trying different things with no luck. I then tried running the game... My battle scene popped up! I was so confused, googled it with no solution. Them I started trouble shooting, deleting things til it worked... After that I got autoloader errors, so I removed it from the autoloader.... Somehow that fixed it.. I dont know how but cool.

[–] sheepishly@kbin.social 2 points 7 months ago (1 children)

Man, I've been working on a JRPG in Godot as well. I haven't encountered any problems like that but now I feel like I'm just waiting for it to happen

[–] OttoVonNoob@lemmy.ca 1 points 7 months ago

My best advice, have a copy of the project you work on. Then if it all works save it over the master copy. It's easy to break stuff.

[–] Rozauhtuno@lemmy.blahaj.zone 8 points 7 months ago (1 children)

Had this happen but I wasn't the only one; one lonely soul before me had the same issue and never got a solution. In the end it stayed unsolved and I just used a workaround.

[–] SturgiesYrFase@lemmy.ml 13 points 7 months ago (2 children)

I've had this happen too, except that one poor soul had one reply in the forum...it was OP saying "Nevermind, I fixed it"

But they didn't share the fix....

[–] Rozauhtuno@lemmy.blahaj.zone 4 points 7 months ago

I love when that happens 🙃

[–] xor@infosec.pub 2 points 7 months ago
[–] aard@kyu.de 7 points 7 months ago

I nowadays typically have three outcomes to similare situations:

  • I find my own question without solution from a while ago
  • I find my own comment or blog entry describing how to fix it
  • I find a friends comment or blog entry on how to fix it
[–] Anticorp@lemmy.world 7 points 7 months ago

When you Google a problem and see 15 Reddit posts asking about the same problem and all the answers are "just Google it".

[–] Underwaterbob@lemm.ee 6 points 7 months ago (1 children)

Or when you have a problem that seems adjacent to another problem that many people have, but their solution doesn't work for your niche case.

[–] zarkanian@sh.itjust.works 4 points 7 months ago

This happens much more often than the other one.

[–] Blackmist@feddit.uk 4 points 7 months ago (1 children)

No, there's one other person, it was 14 years ago, and the only response was themselves saying "nvm, figured it out"

[–] Mesa@programming.dev 1 points 6 months ago

Marked as solution.

[–] Kolanaki@yiffit.net 3 points 7 months ago

I had video of the computer registering a button press but Rocket League not registering the button press in game DM'd directly to a dev on Reddit after they asked. They couldn't replicate the problem and it was never fixed. Just, for some reason, every once in a while I try to jump and it doesn't jump even though using an overlay showing button inputs will register the button click.

[–] tsonfeir@lemm.ee 2 points 7 months ago (1 children)

I’m sure I’ll get shit for this, but AI is often a good tool to use for these situations.

[–] alphacyberranger@sh.itjust.works 14 points 7 months ago (1 children)

Like some other user said, if nobody ever had this problem, it was never answered and AI would have never got the data to train in the first place unless ofcourse it pulls something totally made up out of its ass.

[–] tsonfeir@lemm.ee 5 points 7 months ago (1 children)

Gotta disagree. Sometimes you’re working with something old, where there is documentation, but very little actual conversation online. Or a topic that no longer has an active community online, but you just need some basic questions answered.

knowing how to get the right info by using the right prompts is a skill that not everyone has, which is why so many people get inaccurate answers.

[–] rufus@discuss.tchncs.de 2 points 7 months ago (1 children)

I've tried. And usually the questions I ask are too specific. I mean I can answer the basic questions myself and often I get several result when it's just that. The AI just mumbles general advice and is always wrong if it's too specific. Like for example: Why does the graphics driver crap out on any OpenGL ES instruction on the old single board computer I have lying around, despite the SoC being supported?

[–] tsonfeir@lemm.ee 4 points 7 months ago* (last edited 7 months ago) (1 children)

… is that your prompt?! No wonder you’re getting crap. It’s a computer program, you have to feed it valid data. There is a huge misconception that you can CHAT with it… which was introduced by calling it “ChatGPT,” a horrible name.

You need model numbers, OS versions, driver versions, and any other relevant information like error messages, screenshots, and code if you are developing.

[–] rufus@discuss.tchncs.de 1 points 7 months ago* (last edited 7 months ago)

No? I left out the detailed info here as I thought it's of no concern. I provided it with pretty much the same info I'd write to the Linux Kernel Mailing List. With computer bugs that's usually steps to reproduce the issue, exact versions of everything, exact error messages and my findings from googling and looking at the code...

That was one of the issues I had that only gave me one or two search results and it's unlikely that someone comes up with a solution since the hardware is outdated and not many people have that specific board lying around and also the expertise to understand the low level hardware coding involved.

I mean it kind of fits the rest of the picture I have from using ChatGPT and similar stuff. It can do easy stuff. And write boilerplate code pretty alright. With the Arduino code I'm tinkering around as a hobby... not so much. I once asked it to do the inverse kinematics for a small robotics project. And the AI can tell me about what I just read on the Wikipedia article about that topic. But that's it. Not an idea how to apply that info. And that the complicated part is to come up with the specific Jacobian matrix. And not just tell me that using one is one of the few approaches to that problem. That's obvious from reading the Wikipedia article or reading any textbook. And it did silly things like write code like equation.solve(parameter1, parameter2, parameter3) ... Sure. I mean if I already had a framework that did that and was available on an embedded platform, I wouldn't have had that problem in the first place...

So my attempts at using AI for the issues I have with computers regularly fail. I can see how that's not the experience everyone has, but still... It doesn't really help me with specific problems or rare issues.

And I still have a few I can try to question some AI about... An slow Wireguard VPN tunnel inside if another tunnel that I already fixed the MTU and it's still unbearably slow... A few obscure webframeworks that don't tie into things... But I'm pretty sure I'll get the same results.

Have you ever been lucky with AI and issues that didn't get you any search results because no one ever did it before? I mean I'd be happy to learn how to use AI properly as a tool. It's just I've tried and I don't think I'm too stupid to prompt it. It's just that I've given up since it doesn't seem nowhere near intelligent enough to tackle the real issues I have. I'm not opposed to AI. I use it and it helps me get small stuff done easier/faster.