STOP DOING C++
- Templates were not supposed to make your error messages explode into unrecognizable gibberish
- “Yes, please generate 5000 pages of garbage instead of an understandable error message!” - statements dreamed up by the utterly deranged
Look at what compilers have been demanding your respect for all this time:
???
They have played us for absolute fools.
If you can’t understand that error message then I don’t know what to tell you.
Where in that wall of text was it?
I don’t know. That’s what I was saying. I can’t possibly imagine what I could say to help someone understand that error message.
😉
Java:
NullPointerExceptionSince Java 14 it looks like this:
Exception in thread “main” java.lang.NullPointerException:
Cannot invoke “String.toLowerCase()” because the return value of “com.baeldung.java14.npe.HelpfulNullPointerException$PersonalDetails.getEmailAddress()” is null
at com.baeldung.java14.npe.HelpfulNullPointerException.main(HelpfulNullPointerException.java:10)
I haven’t written any Java since Java 6. This makes me so happy to hear.
What about XML, and XML based configs? Is the Java ecosystem still obsessed with XML?
I remember I was once trying to learn Hibernate. After finding what I thought looked like the best tutorial, I skimmed through it and there was literally no Java code in the tutorial about a Java library! It was all XML! I never could understand it, but this was early in my career, maybe I could handle it now, maybe not.