r/learnprogramming • u/NoMolasses9031 • 1d ago
Logic Building or Programming fundamentals which one to prioritize
Should i learn logic building or programming syntax first. And how? Any roadmap?
4
u/LegalDebate5423 1d ago
Learn enough syntax to write and run small programs, then practice logic in that language rather than treating them as separate subjects. For example, write a loop that counts matching values, test it on an empty list and a one-item list, and explain why each condition works. That builds syntax and problem-solving together.
1
u/MyNameIsRichardCS54 1d ago
While you can technically learn programming logic without a language, it's a lot harder as you can't check the correctness. Learn a language with it's syntax and use that to apply programming logic.
1
u/NoMolasses9031 1d ago
So learning a concept for example loops and doing some problems around loops is the best option? Also its hard to figure out what to use when you learn alot of topics like loops switch functions recursion arrays
2
u/MyNameIsRichardCS54 1d ago
Yeah, theory plus practice is the best way to learn anything, the more practice the better.
Also its hard to figure out what to use when you learn alot of topics like loops switch functions recursion arrays
This comes with practice and experience.
1
u/suubu-crtiv 1d ago
do both at once. pick python, learn loops, ifs and functions in a week or two, then solve easy problems on paper first before typing. tbh the logic only sticks when you run it and see it fail.
1
2
u/tony_saufcok 1d ago
Sytax can always be googled. Focus on your fundamentals first and then apply them using your language of choice. Sometimes your pseudocode will also need to be pseudocoded, depending on your language of choice’s capabilities. You may also want to do practice on that.
0
7
u/ninhaomah 1d ago
How you learn how to write poems without knowing basic grammar?