It means you are not familiar with those syntactic sugars, which means you are not familiar with the language itself.
What to do?
Of course, first read the documentation to understand the general language, and write a little code to familiarize yourself with the various uses of this language. Reading and writing are gradual, and it would be strange if they don't improve.
I guess people who use dynamic languages a lot will want to cry even more when I look at your JAVA code! Why are you so coquettish?
People think they are an artistic youth, but in their eyes you may be a 2B youth!
Syntactic sugar is a good thing, you must learn to accept it! When you get used to it, you will find that Java syntax is too monotonous. Of course, misuse of syntactic sugar means...
Programmers have to keep pace with the times, each has its own benefits, and you should get in touch with the relevant ones. Syntax sugar is easy to use, and Java 8 also adds support for syntax sugar. Come on.
Shouldn’t it be exciting to see Python? . .
Or so. . .
Try jruby, jython.
PS: Shouldn’t real programmers focus on algorithms? When did they start worrying about grammar?
Look at this article: Go to hell! You infidel!
Scala and other JVM-based languages
Python, ruby and other versions ported to JVM
IDEs can sometimes make up for the lack of syntactic sugar
Actually, when I see Java, it’s like reading a book from heaven~
It means you are not familiar with those syntactic sugars, which means you are not familiar with the language itself.
What to do?
Of course, first read the documentation to understand the general language, and write a little code to familiarize yourself with the various uses of this language. Reading and writing are gradual, and it would be strange if they don't improve.
For Java programmers, the culture shock may be really severe when looking at Ruby directly. Should you consider taking it step by step?
For example, Java => PHP => Python => Ruby. This sequence is basically getting sweeter and sweeter and you can slowly adapt to it
By the way, if you want to see how sweet it is, there is a branch of CoffeeScript called Coco
I improvised a short paragraph to show some candies, translated into JS it looks like this
I guess people who use dynamic languages a lot will want to cry even more when I look at your JAVA code! Why are you so coquettish?
People think they are an artistic youth, but in their eyes you may be a 2B youth!
Syntax sugar is highly summarized. . .
Syntactic sugar is a good thing, you must learn to accept it! When you get used to it, you will find that Java syntax is too monotonous. Of course, misuse of syntactic sugar means...
Programmers have to keep pace with the times, each has its own benefits, and you should get in touch with the relevant ones. Syntax sugar is easy to use, and Java 8 also adds support for syntax sugar. Come on.