1062
Unbelievable (suppo.fi)
submitted 11 months ago by Albin7326@suppo.fi to c/programmerhumor@lemmy.ml
top 50 comments
sorted by: hot top controversial new old
[-] TheLameSauce@lemmy.world 76 points 11 months ago
[-] smigao@lemm.ee 39 points 11 months ago
[-] DmMacniel@feddit.de 15 points 11 months ago

Damn that mash looks tasty.

[-] AdamBomb@lemmy.sdf.org 9 points 11 months ago

It just seems like a strange place to go on fire

[-] visor841@lemmy.world 7 points 11 months ago

It's a very strange place to go on fire! A fire? At a Sea Parks? It's been racking my head!

[-] xmunk@sh.itjust.works 66 points 11 months ago

May I introduce you to Error in Unknown on line 0.

[-] HurlingDurling@lemm.ee 75 points 11 months ago

That one is easy. Just delete the whole project and start again after consuming some alcohol

[-] PFShady@lemmy.world 26 points 11 months ago

I see you learned to code like I did.

load more comments (2 replies)
[-] TunaCowboy@lemmy.world 61 points 11 months ago

Have you considered learning how to read a stacktrace?

[-] ZeroCool@feddit.ch 47 points 11 months ago

Jokes on you, I don't even know how to read.

[-] ekky43@lemmy.dbzer0.com 10 points 11 months ago

Damn, got us good!

[-] erogenouswarzone@lemmy.ml 11 points 11 months ago

It is 2023 my brother in christ! We deserve better error outputs than a stack trace.

  1. Tell me what line in my file caused the error,
  2. Tell me the values of the variables involved,
  3. Then you can have the stack trace.

Why are we pretending like these error messages are acceptable in 2023?!

[-] segfault@lemmy.world 5 points 11 months ago
so said EVELYN the modified DOG

(This is not just a Zappa quote, but an actual error description from the Small Device C Compiler.)

load more comments (1 replies)
load more comments (2 replies)
[-] golden_zealot@lemmy.ml 51 points 11 months ago* (last edited 11 months ago)

I had this happen to someone I mentor and pointed out that they had two versions of the same file in two different paths named the same. They were running the version in the other path than they were editing lol.

[-] ChickenLadyLovesLife@lemmy.world 5 points 11 months ago

You're describing classic ASP except that was usually 17 different versions of the same-named file.

[-] sirico@feddit.uk 38 points 11 months ago
[-] PeWu@lemmy.ml 17 points 11 months ago

NodeJS when trying ES Module in CommonJS project:

[-] Wilzax@lemmy.world 34 points 11 months ago

Check which file is giving the error, it's probably being thrown in an included library, not your code.

[-] erogenouswarzone@lemmy.ml 25 points 11 months ago

Yeah, but that's some bullshit. I want to know what line in my file is causing the error.

And they know! They know what line in your file caused the error! They know the value of all the variables when the error hit. But do they show that? Fuck no.

[-] gusVLZ@sh.itjust.works 11 points 11 months ago

Just read the whole stack trace till you find a familiar file

load more comments (2 replies)
[-] Pistcow@lemm.ee 29 points 11 months ago
[-] DmMacniel@feddit.de 17 points 11 months ago
[-] entropicdrift@lemmy.sdf.org 13 points 11 months ago
[-] DmMacniel@feddit.de 9 points 11 months ago

And how did that happen, if you allow the question?

[-] entropicdrift@lemmy.sdf.org 11 points 11 months ago

I don't kno~ow

[-] AdamBomb@lemmy.sdf.org 6 points 11 months ago
[-] cupcakezealot@lemmy.blahaj.zone 23 points 11 months ago
[-] erogenouswarzone@lemmy.ml 4 points 11 months ago

Hey hey. JavaScript is easy. It's when you get into virtual doms that debugging becomes a nightmare.

[-] gun@lemmy.ml 20 points 11 months ago

Line 548! is insane. I can't even imagine a number that big.

[-] mycelium_underground@lemmy.world 6 points 11 months ago

Programming Dad jokes are so bad yet so good.

[-] solivine@sopuli.xyz 19 points 11 months ago

I love how all the comments feel the need to say how they'd solve it.

[-] daed@lemmy.world 17 points 11 months ago

Programmers are problem solvers 🤷‍♂️

[-] Natanael@slrpnk.net 5 points 11 months ago

And problem causers

[-] morrowind@lemmy.ml 18 points 11 months ago

For the record the only language I've had this happen to me is in js

[-] Anticorp@lemmy.ml 18 points 11 months ago

Sourcemaps. Use sourcemaps.

[-] wreckedcarzz@lemmy.world 60 points 11 months ago
[-] uranibaba@lemmy.world 13 points 11 months ago
[-] perishthethought@lemm.ee 10 points 11 months ago

The hostage has been planted.

[-] Jumi@lemmy.world 5 points 11 months ago
load more comments (3 replies)
load more comments (1 replies)
[-] erogenouswarzone@lemmy.ml 6 points 11 months ago

Can you give us an eli5 on sourcemaps?

[-] YourAvgMortal@lemmy.world 7 points 11 months ago

Usually when code is minified, it is shipped alongside a sourcemap (*.js.map), which can be used by the browser to show you the original code.

If you get an error in the browser, you can click the error, which will take you to the network(?) tab and show you exactly where the error occurred

[-] Anticorp@lemmy.ml 5 points 11 months ago

Also when code has been compiled, or transpiled. The reason the line numbers don't match is because all of the code is being assembled into one large package and served to whatever client uses it. So even if you don't minify, but you're compiling, sourcemaps will show you where the error actually occurs, instead of where it occurs in the finished product.

load more comments (1 replies)
[-] dolle@feddit.dk 12 points 11 months ago

This regularly happens for me in Kotlin due to inlined functions

[-] ErKaf@feddit.de 11 points 11 months ago
[-] Welt@lazysoci.al 6 points 11 months ago

It's a VERY WEIRD place for a fire!

[-] MonkderZweite@feddit.ch 9 points 11 months ago
[-] nnjethro@lemmy.world 4 points 11 months ago

iPhone 4 vibes

[-] glibg10b@lemmy.ml 6 points 11 months ago
load more comments (2 replies)
load more comments
view more: next ›
this post was submitted on 14 Oct 2023
1062 points (97.0% liked)

Programmer Humor

32190 readers
569 users here now

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

Rules:

founded 5 years ago
MODERATORS