#CodingTips #PseudoCode #Logic #Programming
Hey there! 👋 Struggling with coding and logic? Don’t worry, you’re not alone! Here are some tips to help you out:
– Start by writing Pseudo Code: Break down the problem into sequential steps before writing actual code. It helps in organizing your thoughts and logic flow.
– Practice different scenarios: Try solving various problems using Pseudo Code to train your brain to think logically.
– Embrace the frustration: Yes, logic can be frustrating at first, but it gets better with practice. Don’t give up!
– Stay consistent: Keep practicing and challenging yourself with different coding exercises to improve your logic skills.
Remember, it’s all about building a strong foundation. Once you get the hang of it, coding can be a lot of fun! Good luck and happy coding! 🚀💻
Yes helps a lot especially when you’re coming back to something next day you just read over logic and if you also comment on each line what you’ve completed helps you jump back into what you need to work on next
I’m pretty sure this post is a stolen response from a question posted earlier on this same sub by another user…
Adding to that, I feel like a lot of beginners have difficulty separating the “algorithm” from the “code” — it’s useful to be able to know what you want your code to do, how you want to solve the problem, vs how you actually write it down in a programming language.
You should be able to ask yourself “do I need to figure out how to solve this problem, or do I just need to figure out how to write the solution in this programming language?”
Just to tack on to this. The “pseudo-code” approach of writing out what you need to accomplish works for more things than just code. Work as a systems admin and I don’t care if it’s a daily task, new issue, new project, troubleshooting, write out what you need to accomplish and what you think you need to achieve it.
Give yourself a roadmap or a step-by-step approach. Your brain/you will have a nearly insurmountable task of approaching anything new/troubling if you approach it head on. Break things down as much as you can and tackle it on manageable chunks.
If you’re struggling with moving data around or accessing data then get a whiteboard and draw it all out in boxes/memory too.
When you, for example, want to swap two values, you can visualise that problem clearly and see that an extra variable is needed in some languages.
You just need to come up with a set of symbols to represent the decisions that must happen to get the outcome you seek.