r/learnprogramming • • Sep 10 '15
How to improve your problem solving skills as a beginner who has been out of school.
[deleted] — view deleted post
265
Upvotes
r/learnprogramming • • Sep 10 '15
[deleted] — view deleted post
17
u/Jmannm8400 Sep 10 '15 edited Sep 10 '15
Adding to the original post, practice makes perfect and even a small amount of time each day doing something related to what you've been learning can be helpful!
There are a variety of websites out there that offer practice problems, including CodingBat.com (Java and Python), Project Euler (any language), and the practice problems available within the Projects repository on Karan Goel's GitHub profile (any language) being some of the resources available.
One could even start their own project and continue to improve upon it as they learn more and refine their skills. It is definitely a neat thing to look back on something and see how far you've come since you started! There could be a variety of learning opportunities available with something like this, too, especially if you're interested in something new (be it a programming language, IDE, API, etc.) or different!
Even contributing to an open source project on a website like Github.com could be worthwhile, and may provide opportunities for one to learn and develop their skills, while, at the same time, contributing to something used by many people each day. This sort of thing could even potentially be put on a resume, too!
25
u/boojit Sep 10 '15 edited Sep 10 '15
If I look back on my own career, the big leaps have come when I would get out of my "wheelhouse" and tried to do things that cut across lots of disciplines. It makes you a much more flexible thinker, gives you more of a wide scope of problems you can solve (in my opinion).
For example when I was a younger coder I started programming on an IBM platform called the AS/400, and then I started making a name for myself integrating these new wiz-bang PCs to the AS/400 (which was considered a pretty novel thing at the time).
But I felt I made a really big leap when I set up my own Linux server in my basement, simply so I could run my own Quake server. Before long I was:
And that's just for starters. I still run my own Linux server to this day (in the cloud now, alas -- it is simultaneously much better and not nearly as satisfying).
Of course you don't want to become a "jack of all trades, master of none" (an accusation that could probably be fairly directed at me) -- you should keep a core competency where you are The Expert. But I think this sort of cross-discipline fucking around gives you a flexibility in your thinking that really improves overall problem solving skill. When you are doing this kind of stuff, you're just constantly mowing through one (sometimes frustrating, sometimes rewarding) problem after another.
10
u/gastroturf Sep 10 '15
Learn math; do proofs.
8
u/aritheory Sep 10 '15
My biggest leap as a programmer came when I learnt about Structural Induction (https://en.wikipedia.org/wiki/Structural_induction) in my degree. Up until that point, I relied entirely on intuition. Taking things apart, putting them back together. Poring over other people's code, rewriting it, maybe trying to improve it.
Structural Induction taught me that a problem can be solved if you base your solution on predictable results. The actual method of induction works well for typically structured problems, but it was more the process of starting with the problem, attempting to solve the problem in it's most basic case and evolving the solution from there. It taught me that a problem can't always be solved in one huge step. Rather that you need to approach it from multiple angles, in small, digestible chunks. Otherwise your brain will become overloaded with information and won't trigger that next step.
Other than that, the best way I've found to improve your general problem solving skills is to challenge yourself to build something that already exists, or try to build a common algorithm or data structure in a number of different languages. The Ring Buffer (or Circular Array) is usually my go to data structure in any new language I learn as it's easy to comprehend and almost any language will have the ability to create it.
Of course you can also go outside code: chess, sudoku and "brain teaser" or logic games are great quick ways to learn on the train or wherever you are.
4
u/[deleted] Sep 10 '15
This is exactly what I needed to read today. I was just about to post about being frustrated that I feel like I understand concepts but don't feel like I can implement them in real world situations because my brain doesn't take the next step.
Thanks.
2
u/[deleted] Sep 10 '15
Great insight. I just started programming about 2 years ago, and I think what has helped me the most is choosing a project and working towards creating it. I find I'm able to organically use programming for what it is (a tool) instead of getting caught up in grinding through an entire book/website. Those are there for reference. The tutorials get you started -- if you hit a wall, you research more.
1
u/[deleted] Sep 10 '15
I'm not out of school yet so I guess I don't have much say. What I've noticed as I've been learning though is that when you complete a project and start over with something similar, it gets easier, faster and more efficient each time.
Secondly, I've learned that independent projects can take you a long ways. Taking on a vast challenge, even if it takes a lot of time is worth it; you learn to arrive at your goal by pushing your own limitations.
1
u/Rushang_Karia Sep 11 '15
My TL;DR
1
u/[deleted] Sep 11 '15
Or try using PyQt where most of the resources are in C...
1
u/Yedya Dec 17 '15
"but I have one solution for people"
Where is it?