Are people not getting tired of all this stack overflow praise when that website is complete garbage that marks every question as duplicate of something asked 11 years ago.

I’m with you. It’s a mess these days and increasingly irrelevant.

Good thing we have generative ai…

@raptir@lemdro.id
link
fedilink
English
251Y

Hey, I’ve been to that very spot.

What mountain is it?

ditty
link
fedilink
21Y

The mountains from the Ye album cover

@raptir@lemdro.id
link
fedilink
English
161Y

It’s the Tetons, specifically seen from Glacier View Turnout. You can see Grand Teton on the right.

Squanchin' it
link
fedilink
English
131Y

Sometimes you just need a more specific example

Which is the greatest use case for ChatGPT.

It’s been a while since I picked up a new language, but I remember the last time I did, the hardest part was just figuring out how to do trivial things. It’s crazy how long it took me to figure out how to do a simple thing like split a string into fields by a delimiter. I can literally paste a line of code into ChatGTP and say “convert this Python line into JavaScript” and it’ll just do it. Fantastic.

Or yeah, I could spend five minutes reading the man page to remind myself of strptime’s date format every time I need to format a date. Orrrrrr I can just ask the bot something like How do I format this date to look like "YYYY-MM-DD HH-MM-SS" in python? Wed Oct 25 05:37:04 PDT 2023.

Untill it completely makes up a date format that looks reasonable but won’t work.I tried ChatGPT to research, in Rust, how to require at least one feature at compilation time just with Cargo.toml options. Turns out that’s not supported, but that didn’t prevent ChatGPT from trying to gaslight me with some hallucinations about options that would do this. It’s a waste of time when you can’t differentiate hallucinations from recollection, for an experienced dev parsing documentation without this uncertainty should be much more efficient.

I’ve definitely had it hallucinate a feature sending me on a red herring hunt on several occasions now… Sometimes I wish I’d just used StackOverflow to begin with, but then with StackOverflow I sometimes wish I’d just read the documentation to begin with.

Alas, it won’t be a hit 100% of the time and will occasionally send you the long way round. Just like StackOverflow. But even despite this property, nobody would tell you to NEVER use StackOverflow because it SOMETIMES takes way too long to find the answer to a question easily glanced from the docs.

Last
link
fedilink
English
1
edit-2
1Y

deleted by creator

Last
link
fedilink
English
21Y

deleted by creator

palordrolap
link
fedilink
3
edit-2
1Y

The last I saw, AI models were very good at explaining what code did at a very superficial level, but not why it’s doing that or why it’s written that way.

I assume it’s gotten better at that since then. (?)

e.g. They’d be able to write comments for x = 0 along the lines of “set variable x to 0” but not why it’s being done or even why it might be a good idea.

Deeper question: What can AIs do with obfuscated code? Can they pick that apart and explain it? What if it’s regular code with misleading function names?

Last
link
fedilink
English
1
edit-2
1Y

deleted by creator

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.5K Comments
  • Modlog