r/learnprogramming • • 2h ago

Logic Building or Programming fundamentals which one to prioritize

Should i learn logic building or programming syntax first. And how? Any roadmap?

3 Upvotes

10 comments sorted by

4

u/ninhaomah 2h ago

How you learn how to write poems without knowing basic grammar?

1

u/MyNameIsRichardCS54 2h 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 1h 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 1h 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.

2

u/jakingo 2h ago

Learn basic syntax first, then practice logic by solving small problems. Dont try to master both separately. Build small projects as you learn.

2

u/tony_saufcok 2h 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.

2

u/LegalDebate5423 1h 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/IcyScratch8633 1h ago

Wait you guys had a roadmap.