r/learnprogramming • u/aodare90 • 2h 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.
12
Upvotes
19
u/EntrepreneurHuge5008 2h ago edited 2h 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 2h ago
Few reasons:
10
u/Zatarita_mods 1h 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 2h ago
How would you teach problem solving skills to strangers then ?
Remember , they are also new to programming.
4
u/SpringCurrent7406 2h ago
Walk before you crawl doesnt work
3
u/SprinklesFresh5693 1h 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 2h 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 2h 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 2h 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 2h 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 2h 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 2h 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 2h ago
because they can do that it is the easiest to show
2
u/mayankkaizen 2h 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 2h ago
I haven't tried recently, but try to google "problem solving tutorials". I think you will be surprised.
2
u/Remote-Panic5416 1h 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 1h 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 1h ago
Because syntax is where you start and where you fuck up first
1
u/MillerJoel 1h 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
•
u/Positive_Passion4817 59m ago edited 53m 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.
•
u/aqua_regis 56m 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
•
u/W31337 44m 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
•
u/PhilNEvo 32m 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.
•
u/Old_Efficiency2445 23m ago
You can't do anything without basic syntax.
You could take a logic course if you needed that.
1
u/ReddyKiloWit 1h 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.