this post was submitted on 11 Jul 2023
121 points (89.0% liked)

Programmer Humor

32589 readers
933 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

Arrr, me hearty! Ye be askin' for a simple piece o' code in Rust, peppered with pirate comments. Here be a wee program that prints a hearty greeting:

fn main() {
    // Avast, me hearties! We start our voyage here.
    let greeting = "Ahoy, matey! Welcome aboard!";

    // Yo ho ho! We print our greeting to the open sea!
  println!("{}", greeting);
}

Now ye be havin' a taste o' pirate-infused Rust code! If ye be havin' any more requests or need further assistance, feel free to speak up, and I'll be at yer service!

you are viewing a single comment's thread
view the rest of the comments
[–] MavTheHack@lemmy.fmhy.ml 37 points 1 year ago (2 children)

Obviously programmers are obsolete now. There is no need for us anymore

[–] dohpaz42@lemmy.world 22 points 1 year ago

Arrgh matey, ye be walking ye plank. Ye be sleeping with the fishes down in Davy Jones’ Locker. Yarrrr.

[–] waspentalive@lemmy.one 8 points 1 year ago (3 children)

Every time I have asked chatgpt to code for me it has come up with almost correct nonsense. When issues in the code are pointed out, chatgpt generates new code fixing the issue and creating two more new ones. Some of the issues are using features found in other languages in the language requested.

Programmers - your jobs are not in danger. It will take a programmer to check any generated code really carefully and be sure to understand what the AI has spewed forth.

For something as simple as hello world it would get it right. For creating a function to print numbers with imbedded "," commas (to show powers of 10^3 separation) it got it wrong. It gave a program that returned "123,4567.89"

[–] MavTheHack@lemmy.fmhy.ml 2 points 1 year ago

My original comment was me being silly. But I totally agree. That's why I love copilot's name. Because the ai is just that, the copilot. We still have to fly the plane for the most part ourselves

Yeah, noticed this too, simple things, no prob, get into more gritty things and it will make a mistake. And yes, you tell it to fix it, but then 2 more bugs are introduced πŸ˜‚.

[–] GlennMagusHarvey@mander.xyz 1 points 1 year ago* (last edited 1 year ago)

So that means that programmers are being replaced with debuggers. Human debuggers.