DEV Community

Discussion on: Which Language do you Find the hardest ?

Collapse
 
alchermd profile image
John Alcher

Java. Not because it is a difficult language to use, but because whenever I'm halfway trying to use it for a project my mind would go: "Man, if I used Python/PHP/Node I would've been finished half an hour ago."

It's just too verbose :/

Collapse
 
kene_nwobodo profile image
Kenechukwu Nwobodo

Lol, I feel you man

Collapse
 
winstonewere profile image
Winstone-Were

even just printing is too intimidating compared to high level languages like python

Collapse
 
alainvanhout profile image
Alain Van Hout

Plain printing is probably the least useful thing a language has to offer. What you should do when you find a print statement, is reply it with a proper logger statement.

Collapse
 
syakirurahman profile image
Syakir Rahman

I think java is not hard. It's just you have to write more codes than when you use other languages for the same cases.

I personally like it if i'm not on rush because coding with java tend to make me write clean codes than when i use php or javascript.

Collapse
 
leeclarke profile image
Lee

Long time Java guy and I totally agree. I moved to groovy, works with all the java but feels more like JavaScript :)

Collapse
 
belenot profile image
belenot

Oh, while I have such possibility to ask: is groovy production ready for freelancing? I personally think it's better than python or js/ts, but can't see any reason for it's unpopularity. Maybe, one that it's on jvm, but... Meh

Thread Thread
 
leeclarke profile image
Lee

Groovy is very ready for production! :D Actually we run it in all of our CI/CD scripts as well as our production micro-services. Development time is shorter over all and all my Java colleagues have slowly but surely quit writing anything in java, which is still an option but no one does it anymore, lol

I've found that Java developers are resistant to moving to groovy until they see how easy it is to parse json in 2 lines of code while they toil constructing complex objects they really dont need or want but, Java requires it. OR that I can remove null objects from a list by simply typing: list - null

For others, I think you right, its in the JVM world and if your not in that world I think there's a resistance to move to the totally unknown. I can understand in a way, its my main reason for not digging deeply into Python, I can write a groovy script faster than I can figure out which lib to import to do x,y or z in Python. If I had infinite time I would code in all languages but I think time is the real troublemaker here.

Collapse
 
ngthuongdoan profile image
Doan Ngoc Thuong

That's why I turn into Javascript

Collapse
 
stereoplegic profile image
Mike Bybee

Yes, its verbosity is definitely my biggest beef as well.

And thanks for reminding me of another reason I hate the TypeScript trend among JS devs, that I forgot to list in a discussion earlier (where I was focused instead on junior dev learning curve, reduced available talent pool, and the problems with treating JS like a class-based, statically typed language).