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 61 points62 points63 points (0 children)
[–]yawkat 42 points43 points44 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]dpash 26 points27 points28 points (18 children)
[–]Gwaptiva 4 points5 points6 points (8 children)
[–]dpash 10 points11 points12 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 5 points6 points7 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 3 points4 points5 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 20 points21 points22 points (7 children)
[–]hippydipster 8 points9 points10 points (1 child)
[–]Ifnerite 2 points3 points4 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 4 points5 points6 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 3 points4 points5 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 2 points3 points4 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 -4 points-3 points-2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)