Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
AlmondSauce8834297dEurgh, I hate this "var" crap in Java. Aside from in *really* obvious cases, it's a near enough automatic code review fail in our team.
vane7838297dDid you meant NSA lambda ?
We rewrote CGI so now everyone can provide their data to us more easily.
LLAMS3320297d@AlmondSauce Id hate to be on your team. IMO with the addition of var Java now has the perfect level of type safety for my liking. I can strongly type my params etc without having to write out every type for every local variable. If Im using it on the next line its pretty convienient to not have to fully specify what type it is. Virtually every other language worth mentioning has this level of type inference.
AlmondSauce8834296d@CrashOverride "If Im using it on the next line its pretty convienient to not have to fully specify what type it is."
Sure, and if that's the case, I don't have a problem with it (that counts as obvious.) But I *do* have a problem with this new wave of Java programmers who seem to think it's appropriate to replace any and all type declarations with var wherever the compiler allows. That just turns code into an unreadable mess.