Where's rust?
Programmer Humor
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.
Rust: this garbage code is beneath me, come back when you have your shit together.
Compilation: top row, runtime: button row.
At least you are getting a dump, count your blessings. Could be worse!
Just hook your app to a debugger and load the dump.
C#: Time for a treasure hunt! Find the Null Reference Exception. Here's a map. X marks the spot.
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
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.
The ole' single C++ error turning into 600 lines of issues
puts me in mind of the old guru meditation error messages that popped up in the stone knives and bearskins era of computing.
Why doesn't JavaScript have tracebacks?
How useful would they be when they rely to such a large extent on various callback functions?