Java: Then vs Now

Prior to beginning with Java, I always found it to be extremely verbose and ugly syntax. That was, actually, my initial opinion and thus my reasoning for what I never wanted to use it.
I was wrong… at least partially…
When you juxtapose two languages side-by-side (in this instance it would be Python against Java), you’re overwhelmed with the excessive syntax that goes into a Java program versus that of a similar Python program.
Java | Python |
public static void main (String[] args) { System.out.println("Hello, World!"); } | print(“Hello, World!”) |
By now, I have grown to appreciate Java… for its syntax. Why? I feel as if the verbosity is no longer excessive… no it is actually quite expressive. I find myself viewing the syntax as a form of self-documentation (?). Yeah, it is helpful to look through documentation, Stack Overflow, etc. when I need to troubleshoot or learn what needs to be done… that is the case for every language (well at least it is for a beginner/intermediate like me). That said, the verbosity allows me to reduce my comment usage because the syntax tells me, mostly, what is being done.
End of thought 😁.
Subscribe to my newsletter
Read articles from Mike Files directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
