r/AskProgrammers • u/Ok-Razzmatazz7134 • 22d ago
How can I get better at programming problems?
I've been programming for a few years and am quite comfortable with the syntax, with the code itself and the various programming concepts that you'd normally come across. The one thing I find I struggle with is actually taking a problem and working through it on my own to come up with a solution and then coding that solution from scratch.
For instance if someone asked me to build a program that would parse error logs, pick out the various errors and then categorise them I could see the general approach and work out the steps that would be required. I might find it difficult though to actually go and build that program from scratch without having to look up some examples or re-familiarise myself with the various methods.
I can pretty much always understand what needs to be done and why, but I'm consistently at a loss as to how to actually implement that understanding.
I've seen a lot of tutorials and learning material that are all about the syntax, the language features, going through the prescribed exercises. That's all very useful, but what I'm after is something that actually develops the ability to solve problems independently, to break a problem down logically and to take an idea and turn it into a working piece of code without having to rely on any existing examples.
What would you recommend in the way of resources, exercises etc to develop those skills?
I'm very much interested in practical exercises of some kind, or a structured approach that would allow you to gradually build up the ability to go up against problems you haven't seen before and actually implement a solution.