DEV Community

Discussion on: How to use the var keyword in Java? Example Tutorial

Collapse
 
lluismf profile image
Lluís Josep Martínez

Many things which take just 5 minutes in languages like Python, Groovy, or JavaScript can take more than 30 minutes in Java due to its verbosity. This is such a bullshit. Variable declaration is a very small part of a class/method. Let's say a 5% of the total. If not declaring the type removes 50% of the declaration, the total gain is about 2%. Nothing to fuss about!

Collapse
 
diegopm profile image
Diego Pardo

lol

Collapse
 
javinpaul profile image
javinpaul

That's true and that's why Java is not for writing scripts or quick utilities but at the same time, I have found managing a large and super large project in Java much easier than let's say Python or JavaScript. Though I am not a Python or JavaScript expert, I have just happened to work on that, but that's what I have felt during my slightly limited exposure.