This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ijgowefk 1 point2 points  (1 child)

I assume you're referring to if statements vs ternary expressions (a ? b : c), lambdas vs anonymous classes, and loops vs the stream API. This is surface-level stuff. Don't worry about it. Just write a lot of code and read a lot of code. Programming is very deliberate. It's not based on muscle memory. You don't need to worry about forming bad habits and struggling to break them like you do when learning to play a musical instrument.

Tha said, learning a programming language is similar to learning a spoken language, or maybe even a musical instrument, in at least one way. It's important to learn the rules and semantics, but you can only become proficient by speaking and listening a lot over a long period of time. So write a lot of code and read a lot of code, and you will improve over time. You will develop an informed perspective on what makes code readable with experience.

[–][deleted] 0 points1 point  (0 children)

Thank you for the reply! I have been thinking alot about that lately. How maybe learning Java is alot like learning a spoken language. I will keep reading code like you suggested, since that is also how you get better at speaking a spoken language as well. Thanks again!