r/learnprogramming • u/aodare90 • 3h 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.
9
Upvotes
21
u/EntrepreneurHuge5008 3h ago edited 3h ago
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.
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.
4
u/Strange-Tap5860 3h ago
Few reasons:
2
u/aqua_regis 2h ago
Only crappy tutorials focus on syntax. Good courses focus on teaching the actually relevant skills - see the MOOCs from the University of Helsinki over at https://mooc.fi/en
11
u/Zatarita_mods 2h ago
Because that's what a language is. A language consists of mostly of syntax and it's standard library. If you're learning that language that's what you need to learn.
If you want to learn "problem solving" you're going to look to more specific things like data structures and algorithms, graphics programming, system architecture, etc. For the most part you aren't "problem solving" you're putting pieces together to design a system to do a thing. Problem solving, as you're probably thinking of it would be algorithms and data structures. This exists outside the scope of the language itself. The lambda calculus is an example of computation without a "programming language", computation and syntax exist on two different planes. Syntax is just the language of the computation. Like how we learn how to read a math expression before we try and learn algebra.
7
u/ninhaomah 3h ago
How would you teach problem solving skills to strangers then ?
Remember , they are also new to programming.
4
u/SpringCurrent7406 3h ago
Walk before you crawl doesnt work
3
u/SprinklesFresh5693 2h ago
Because once you know the basic symtax, youre supposed to do projects and learn problem solving skills. A tutorial cannot teach that, its by doing how you learn how to solve problems
5
u/Separate_Expert9096 3h 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.
2
u/Gone2theDogs 3h 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.
2
u/AlexMTBDude 3h ago
I think different tutorials focus on different things. I teach two different Python courses, a basic one and an advanced one. The basic one focuses on Python basics and syntax, because that's what a beginner Python coder needs. The advanced course focuses on algorithms, performance and best practices. Typically what someone who already knows the syntax needs.
2
u/KiwasiGames 3h ago
Mostly it’s assumed you learned your problem solving schools back in high school. You already have problem solving, syntax is the new bit.
Oddly enough AI is flipping that paradigm on its head. Syntax is now easy, and people aren’t learning problem solving at high school.
2
u/DTux5249 3h ago
Because you can't really teach problem solving. Most of that is just understanding how other problems are solved, which you can't really internalize into people beyond giving them a solution and telling them to use it.
Additionally, most tutorials are geared towards beginners. They focus on syntax because they're assuming that's the hurdle.
2
u/Gznork26 3h ago
Start with the logical forms, use them to show ways to break down the problem, and then teach how to turn the logical blocks into code with the correct syntax.
2
u/duane11583 3h ago
because they can do that it is the easiest to show
2
u/mayankkaizen 3h ago
There is no strucutued way to teach you how to solve a problem and technical tutorials are aimed to teach you technical aspects of language. Problem solving skills come from experience and domain knowledge. Besides, most tutorials are for noobs so teaching syntax and basic stuffs are more important.
2
u/baubleglue 3h ago
I haven't tried recently, but try to google "problem solving tutorials". I think you will be surprised.
2
u/Remote-Panic5416 3h ago
Part of deconstructing an unfamiliar problem lies in understanding the syntax, the more you understand the concepts in depth the better you'd be at solving it. Though It's true that it's is a separate skill on its own, most tutorials are designed to make you understand the language not the process of tackling a problem.
There's a great many tutorials on the internet that also teach you the skills you're looking for. From my understanding, I think the reason tutorials overemphasize specific languages and syntax (which I think is important) is because solving a problem requires much more effort than simply teaching syntax since it's just a bunch of rules anyway.
Not to mention most problem solving advice is just a gross generalisation of somebody's experience, what matters more is your own approach to problem solving
2
u/autonooc 2h ago
Partly it's the format — syntax fits a neat 10-minute video with a clean right answer. Problem-solving is 40 minutes of staring at an error message, going down the wrong path, and backtracking — and nobody watches that twice. So tutorials sell the part that films well, and the messy part is left as homework.
1
u/ZestycloseEvening155 2h ago
Because syntax is where you start and where you fuck up first
1
u/MillerJoel 2h ago
Because syntax is the first thing you learn, it’s like math, they teach you the numbers and to count before they introduce addition, multiplication, etc and they introduce word problems after you can perform the operation.
I think tutorials rarely go beyond the basics and a lot of hard problem solving in computation requires discrete math , data structure and algorithms
1
u/Positive_Passion4817 2h ago edited 1h ago
Because problem solving is far more awkward to teach. You can't teach people to be logical.
All the people here saying you can't do problem solving without syntax seen to be forgetting pseudocode.
1
u/W31337 1h ago
Because syntaxis is the language to communicate your intent with. It's very important.
You can't write a storyline without learning to write.
Try a sloppy language like JavaScript where shit syntaxis just gets accepted and you end up with bug galore
1
u/PhilNEvo 1h ago
You're basically asking why we teach kids in early primary school the alphabet and spelling, instead of how to write a good story.
The people looking up tutorials are basically "programming babies", so you to start at the very foundation.
1
u/Old_Efficiency2445 1h ago
You can't do anything without basic syntax.
You could take a logic course if you needed that.
1
u/pixel293 1h ago
I think problem solving, i.e. getting from point A to point B is a sign of intelligence. We use it all the time. How do I get from here to the grocery store. How do I get from the grocery store to Mdonald's. How do I move this large thing to my shed. Basically what steps are involved to do X and X isn't necessarily a program.
With programming, once you learn the syntax and the logic, you need to figure out how to use that to get from point A to point B. A tutorial is only going to be helpful if your goal is the same as the tutorial.
So figure out what you want to create, figure out what steps you need to do, and do it.
•
u/builders6 22m ago
Syntax is easy to grade in a browser box. Problem decomposition takes ten minutes to explain and still leaves half the class staring at a blank screen.
•
u/Temporary_Pie2733 4m ago
Because most tutorials are designed to demonstrate how to use a particular language for people who already know how to program, not teach people how to program.
If the stated goal is to teach programming, and it focuses more on syntax than problem-solving skills, then it’s probably a bad tutorial.
Also, traditionally tutorials were not meant to be comprehensive, standalone courses that explained everything, but just brief explanations that gave you enough information to guide you in searching more comprehensive documentation.
1
u/ReddyKiloWit 2h ago
The first programming class I ever took was language independent. Probably one of the reasons I can switch between languages easily. Certainly affected my approach to programming, which is to put coding third or fourth down the list of things to do while programming.