this post was submitted on 25 Jul 2023
12 points (100.0% liked)

Programmer Humor

19331 readers
20 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 15 comments
sorted by: hot top controversial new old
[–] FreeloadingSponger@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

MySQL: you have an error near here.

Me: What's the error?

MySQL: It's near here.

Me: You're not going to tell me what the error is? Okay, near where? Here?

MySQL: warmer... warmer...

[–] marcos@lemmy.world 1 points 1 year ago

Oracle: You have this error in line 1

User: Hey, no, there isn't anything to cause this error in line 1

Oracle: I'm telling you, it's in line 1

User: Hum... How many lines are in my 10 lines query?

Oracle: 1

[–] ihavenopeopleskills@kbin.social 1 points 1 year ago (1 children)

C just shrugs and says "Seg Fault."

[–] frostwhitewolf@lemmy.world 0 points 1 year ago (1 children)

Probably forgot a semicolon

[–] Hexarei@programming.dev 1 points 1 year ago

This joke is never funny; Forgetting a semicolon in c results in compile time errors, not runtime errors

[–] ExperimentalGuy@programming.dev 1 points 1 year ago (1 children)

One of the reasons i started learning rust was bc of how easy it is to get into it, or at least that's how it felt for me. It wasn't until a few months into consistently writing that I started to encounter things that I didn't understand.

[–] marcos@lemmy.world 1 points 1 year ago

The good thing about Rust is that if you have no idea of any problem in your code, it very likely because your code is ok.

On C++ things are different.

[–] UFODivebomb@programming.dev 0 points 1 year ago (2 children)

Way too short to be a real C++ error. Needs a few more pages of template gibberish.

[–] sunbeam60@lemmy.one 1 points 1 year ago

Template>, Outer>>>::static_wrapper, spirit::parser::lever>::fuck_you

[–] mormegil@programming.dev 0 points 1 year ago* (last edited 1 year ago)

Syntax error: unmatched thing in thing from std::nonstd::__map<_Cyrillic, _$$$dollars>const basic_string< epic_mystery,mongoose_traits, __default_alloc_>

(from James Mickens' The Night Watch, highly recommended with his other essays: https://mickens.seas.harvard.edu/wisdom-james-mickens)

[–] cabbage@programming.dev 0 points 1 year ago (1 children)

Sounds like Rust propaganda to me >:(

[–] JakeHimself@programming.dev 0 points 1 year ago (1 children)

Tbf, you have to be pretty far with Rust to get to a point where Rust's compiler errors stop helping you (at least, as far as I've seen). After that, it's pretty much the same

[–] philm@programming.dev 1 points 1 year ago

Yep use a little bit more deeply cascaded generic rust code with a lot of fancy trait-bounds and error messages will explode and be similar as C++ (though to be fair they are still likely way more helpful than C++ template based error messages). Really hope that the compiler/error devs will improve in this area

[–] snor10@lemm.ee 0 points 1 year ago (1 children)

Yeah, but which one i cooler?

[–] corm@sopuli.xyz 1 points 1 year ago

Rust because having a package manager is important.

Even C has a package manager