Hey everyone! I'm really struggling with my programming skills at 20 years old. I find it tough to solve problems on my own, especially when it comes to breaking them down into smaller parts. Even when I do manage to split a problem up, I often can't get the code down right, especially for basic stuff. I'm looking for tips on how to think mathematically and improve my programming logic. Any advice?
5 Answers
What have you programmed on your own? Sometimes figuring out what you've completed helps you understand where to go next.
The book "Think Like a Programmer" by V. Anton Spraul might be just what you need. It uses C++ for examples, but the concepts apply universally. It could really help you get into the right mindset for problem solving!
If you're looking for more resources, just type "logic" into Reddit's search. You'll uncover tons of relevant posts and discussions that can offer further guidance!
Start with simple problems on sites like LeetCode or Codewars. Regular practice is key! Try breaking problems into manageable pieces. Using pseudocode can help you visualize the logic before you dive into writing the actual code. Learning algorithms and data structures is great too—check out the CS50 course on edX if you can. It gets easier with consistency, trust me!
Consider watching others as they explain their thought processes. This can really help you see different approaches. But if you find programming isn’t for you, that’s okay too—it's not everyone’s cup of tea!
Really will I be able to tackle hard problems?