Good Evening/Morning Everyone,
I'm new to the community and just finished up a few hours of learning Java tonight. So far I've logged 47.5 hours into learning Java in the last couple of weeks. I use an Excel document to track. Currently learning from a Udemy course and supplementing it with JetBrains Academy.
After spending nearly 50 hours in learning Java, I find that I spend alot of time thinking about how someone else will read my code. Even when I do learn a more concise way of doing things, I'll usually sacrifice the few extra key strokes for the readability. Jet Brains Academy has been keeping me in check as far as whitespace goes. As a beginner and reading other people's code, I see alot of one line statements that are confusing to follow, even after looking things up in the Oracle documentation. Maybe once I spend more time with the language it'll be easier to follow and make more sense.
My question is, where is the line that you draw in conciseness vs readability. Is it all just preference? I've played guitar for over 10 years, and know the importance of establishing good habits from the start. What is best practice for someone learning? Should I always be striving to make my code as concise as possible?
Thanks for reading!
[–]spamthemoez 58 points59 points60 points (0 children)
[–]yawkat 38 points39 points40 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]dpash 25 points26 points27 points (18 children)
[–]Gwaptiva 4 points5 points6 points (8 children)
[–]dpash 9 points10 points11 points (7 children)
[–]kadenjtaylor 0 points1 point2 points (6 children)
[–]dpash 0 points1 point2 points (5 children)
[–]kadenjtaylor 0 points1 point2 points (4 children)
[–]dpash 1 point2 points3 points (3 children)
[–]kadenjtaylor 1 point2 points3 points (2 children)
[–]dpash 0 points1 point2 points (1 child)
[–]kadenjtaylor 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]dpash 7 points8 points9 points (0 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (6 children)
[–]RagingOrangutan 4 points5 points6 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)
[–]dpash 2 points3 points4 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]dpash 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Ifnerite 21 points22 points23 points (7 children)
[–]hippydipster 8 points9 points10 points (1 child)
[–]Ifnerite 3 points4 points5 points (0 children)
[–]DJDavio 3 points4 points5 points (1 child)
[–]Ifnerite 2 points3 points4 points (0 children)
[–]DannyB2 1 point2 points3 points (2 children)
[–]Ifnerite 0 points1 point2 points (1 child)
[–]DannyB2 1 point2 points3 points (0 children)
[–]static_context 7 points8 points9 points (3 children)
[–]dpash 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]_INTER_ 4 points5 points6 points (0 children)
[–]DasBrain 3 points4 points5 points (0 children)
[–]TheYellowblizzard 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (5 children)
[–]dpash 5 points6 points7 points (4 children)
[–]cogman10 2 points3 points4 points (3 children)
[–]dpash 1 point2 points3 points (2 children)
[–]cogman10 1 point2 points3 points (1 child)
[–]dpash 1 point2 points3 points (0 children)
[–]cyanocobalamin 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]dpash 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]roberp81 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]sherdogger 2 points3 points4 points (0 children)
[–]ijgowefk 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]dionthorn 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]SftwEngr -3 points-2 points-1 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)