r/learnprogramming • • 21h ago

Logic Building or Programming fundamentals which one to prioritize

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

4 Upvotes

13 comments sorted by

7

u/ninhaomah 21h ago

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

4

u/LegalDebate5423 19h 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 20h 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 20h 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 20h 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 18h 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

u/NoMolasses9031 13h ago

Doing C cause of uni

3

u/jakingo 21h 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 21h 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

u/IcyScratch8633 20h ago

Wait you guys had a roadmap.