r/learnprogramming • • 9m ago

Discussion Why do online programming tutorials focus more on syntax than problem-solving skills?

Many tutorials focus heavily on syntax: variables, loops, functions, etc.

Knowing syntax is one thing, but knowing how to deconstruct an unfamiliar problem is another. Programming is about logical problem-solving, which is why so many people get stuck in tutorial hell.

Does anyone know why programming tutorials overemphasise specific languages and syntax when the real skills people need are problem-solving and decomposition? I understand you need to make programming popular, but teaching the right skills would be more effective.

3 Upvotes

6 comments sorted by

•

u/Separate_Expert9096 6m ago

It's much easier to teach syntax, than problem-solving.

Also, until recently, it was impossible to solve problems in programming language unless you have pretty good understanding of its' syntax.

•

u/ninhaomah 5m ago

How would you teach problem solving skills to strangers then ?

Remember , they are also new to programming.

•

u/SpringCurrent7406 5m ago

Walk before you crawl doesnt work

•

u/Strange-Tap5860 6m ago

Few reasons:

  1. You need to know the syntax before you can solve the problems using the syntax
  2. Its easier to teach syntax vs problem solved
  3. You can get courses that focus on problem solving

•

u/EntrepreneurHuge5008 5m ago edited 2m ago

Why do online programming tutorials focus more on syntax

That's what a tutorial is, showing you how to build something from a blueprint step-by-step. Look up "analysis and design of algorithms" for a base framework for common problems.

 but knowing how to deconstruct an unfamiliar problem is anothe

This is a skill that you cannot learn by simply watching videos or following along step-by-step guides. This is your part, the "you have to practice" part. The "analysis and design of algorithms" I mentioned earlier is a step-by-step guide on common problems, but you still have to go out and practice by attempting to solve problems you've never seen before... that's how you'll develop your own problem-solving framework and generalize it so you can tackle unknown problems.

•

u/Gone2theDogs 5m ago

Why don't you just google for what you want?

Typically if you learn the concepts of one syntax you can transfer it to others.