Pistcow
link
fedilink
291Y

I’m disabled

macniel
link
fedilink
171Y

How are you disabled?

Leg disabled

macniel
link
fedilink
91Y

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

I don’t kno~ow

@AdamBomb@lemmy.sdf.org
link
fedilink
English
61Y

Acid

Solivine
link
fedilink
191Y

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

Programmers are problem solvers 🤷‍♂️

Natanael
link
fedilink
51Y

And problem causers

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

mycelium underground
link
fedilink
English
61Y

Programming Dad jokes are so bad yet so good.

You used a library wrong.

iPhone 4 vibes

At a sea parks?!

It’s a VERY WEIRD place for a fire!

SokathHisEyesOpen
link
fedilink
English
181Y

Sourcemaps. Use sourcemaps.

Can you give us an eli5 on sourcemaps?

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

SokathHisEyesOpen
link
fedilink
English
51Y

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.

Natanael
link
fedilink
11Y

Especially if the compiler optimization options inlined code from 5 different places into one blob

Is de_dust okay or?

I prefer hostage maps.

The hostage has been planted.

SokathHisEyesOpen
link
fedilink
English
21Y

HUMILIATION

Fuze has entered the chat

Did they add him with cs2?

No that’s coming in CS2: Siege

FUSE has entered the chat.

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

@golden_zealot@lemmy.ml
link
fedilink
English
51
edit-2
1Y

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.

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

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

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

I see you learned to code like I did.

deleted by creator

That’s what she said

At a Sea Parks???

@smigao@lemm.ee
link
fedilink
English
391Y

A fire?

macniel
link
fedilink
151Y

Damn that mash looks tasty.

@AdamBomb@lemmy.sdf.org
link
fedilink
English
91Y

It just seems like a strange place to go on fire

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

(des)mosthenes
link
fedilink
English
21Y

the actual error is higher up in the output usually

katy ✨
link
fedilink
231Y

i too hate javascript

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

TunaCowboy
link
fedilink
621Y

Have you considered learning how to read a stacktrace?

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?!

I can’t tell if that was sarcasm or not. If it was, you got me. If it wasn’t, then that’s quite a big lack of understanding of what’s actually happening.

Tell me the values of the variables involved,

There be dragons! Sounds like a good way to get passwords/secrets logged.

so said EVELYN the modified DOG

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

Well, everyone knows what that means.

ZeroCool
link
fedilink
English
471Y

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

Damn, got us good!

glibg10b
link
fedilink
61Y

LaTeX

It’s not formated correctly. Lemmy devs, please. This is top priority fix.

glibg10b
link
fedilink
31Y

I’ll just leave this here

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

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.

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

@erogenouswarzone@lemmy.ml
link
fedilink
English
1
edit-2
1Y

No offense, but I know how to read a stack trace, and yes locate a familiar file - if you’re lucky enough to have one listed therein.

My point is, there is no excuse for them being so terrible except that they’ve always been that way.

The important information should be brief and at the top. This is design 101. The same ideas that have driven newspaper articles and websites for as long as the two have been a thing.

You put the important stuff in big letters at the top, and the rest, if you need it, is beneath the fold.

Edit: just to drive the point home: I’m sure it’s not the packages I’ve downloaded that are causing the error, I am positive it is my code, so show me where my code had a mistake first. Then you can show me the horrible “wall of text” that is the stack trace so I can understand it better later, but 99% of the time, just seeing the line that caused the error is enough to know what the problem is.

It’s a fair point, it would help a lot, I can see a drawback when the problem is incompatibility between libs or errors inside the lib but it could be solved with a show more option.

I like your ideia, would love to see how it would work

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.47K Posts
  • 32.3K Comments
  • Modlog