this post was submitted on 28 Feb 2024
1010 points (97.0% liked)

Programmer Humor

32561 readers
398 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Omega_Haxors@lemmy.ml 4 points 9 months ago* (last edited 9 months ago) (1 children)

C#: Time for a treasure hunt! Find the Null Reference Exception. Here's a map. X marks the spot.

[–] kogasa@programming.dev 6 points 9 months ago (1 children)

C# tells you the call site/method name and line number right at the top. It's only really annoying when you have aggregate exceptions, which sometimes occur because someone async'd wrong

[–] Omega_Haxors@lemmy.ml 2 points 9 months ago

Actually getting there is the other part. It's not like java where you can go down the chain if the problem isn't where it says it is.