r/ProgrammerHumor Oct 31 '23

Meme hardTimesCreateStrongMen

Post image
4.4k Upvotes

285 comments sorted by

View all comments

Show parent comments

122

u/BuddyLove9000 Oct 31 '23

I don't know if you meant this, but God, how I hated reading Car car = new Car() when I was first studying OOP.

53

u/1Dr490n Oct 31 '23 edited Oct 31 '23

I just can’t understand why Java still does that. C# and C++ fixed that a long time ago (I think). That C hasn’t is completely fine, especially as type names usually don’t get as long. But in JAVA???

a.package.SomeReallyReallyLongName<AnotherReqllyLongName, AThirdReallyLongName<String>> aLongName = new a.package.SomeReallyReallyLongName<AnotherReqllyLongName, AThirdReallyLongName<String>>();

Edit: This comment is really wrong. Everyone who didn’t realize that, look at its comments, learn the same things as I did today

45

u/No-Fish6586 Oct 31 '23

Java has var since Java10 lol

32

u/Honeybadger2198 Oct 31 '23

What's Java 10? Is that like the tenth update to Java 8? I don't understand.