DEV Community

Discussion on: How long do you spend learning to code?

Collapse
 
latetide profile image
LateTide • Edited

Wow, lot's of really great comments and advice here. The way I see the difference between a beginner and a more experienced programmer is really about the amount of abstract and contextual understanding they have, and that is not necessarily coming from the years of experience they have or the number of programming languages they know. In one sentence, I think it's not the hours spent with learning that makes you a better programmer.
That depends on - in my opinion - two factors: Your approach, and the variety of problems you need to solve. Let me emphasise, all of the below is just my opinion.

The best "approach" or mindset for learning programming is the following: Face a problem, find a solution, understand the "why" behind the solution, and experiment. I am not necessarily talking about algorithms here, but also basic OO design patterns, version control, kanban style task tracking, commenting your own code, etc. As soon as you identify something that other programmers face on a daily basis and understand the solutions they came up with, you will become a better programmer. Imo, a better programmer is one who can work more efficiently, which is not the same as writing more efficient code.

As for the problems you need to solve, this is just something I've seen several times, people who saw different programming environments and challenges have a better underlying understanding of programming in overall, for example, if you worked with enterprise software and webpage programming before, you might see a parallel in the program modules and the modular handling of UI elements, which is again very similar to the idea of encapsulation in Object Oriented Programming. The advice here is to think about programming problems even if they are not necessarily related to what you do, e.g. how would you write a simple program that can solve an addition in the string format, e.g. "5 + 3+ 4 =", or something similar. Everything can become a programming problem if you look at it long enough :)

Scrap that. I have the perfect answer: You are a noob until you learn that regexp is a necessary evil, and before you learn to hate date formats. :)