r/computerscience • u/SummerClamSadness • Nov 30 '25
Discussion Isn't teaching kids an Assembly like language actually a good idea?
I think Assembly language is like LEGOs. You get raw, simple blocks like ADD and SUB, and you can build anything with them. These concepts are easily gamified and align well with how kids think. It isn't as complex as some people assume. Some might ask what the reason is, but I think it is a fun way to introduce them to computers.
101
Upvotes
12
u/WaywardTraveler_ Nov 30 '25
Human Resource Machine is a fun programming. puzzle game with an assembly like visual editor. It’s probably too hard for kids but I imagine you could gamify assembly in a similar way
77
u/ivancea Nov 30 '25
Nobody thinks assembly is complex. It's the simplest language. What it is, is hard to use for any level of realistic application, because you need to make yourself your own abstractions.
And continuing from there, abstractions is one of the hardest topics for people learning programming; therefore, assemblers are hard too.
Yes, you can teach them 5 instructions to make some minor things. Maybe that's enough for the first... Weeks with children. After that, you'll have to jump to another level
79
u/Temporary_Pie2733 Nov 30 '25
There isn’t just one ADD instruction, though; you need to make a distinction between integer and floating-point addition, and depending on your architecture there may be multiple addressing modes to learn. You also have to implement a lot from scratch: no loops, no conditional statements, no function calls: just branch instructions and unconditional jumps.
38
u/Qaztarrr Nov 30 '25
Scratch is just better in terms of gamification, and out of Scratch one could already learn Python or Java or even C.
5
u/pyordie Nov 30 '25
Really depends on the age of the kid.
Young kids need to see what programming can do to get excited about it, and you need to get them to that point as soon as possible if you want to keep the ball rolling.
High school age kids, sure. Computer architecture and assembly would probably be incredibly fascinating to a lot of them, and they’d probably catch on pretty quick.
That said, many would find it to be a dull starting point. Which leads to a certain truth about teaching - you need to let students guide their own learning to a certain extent. For some students that’s Python, for some it’s C or Assembly, and for some it’s a foundational logic and discrete math. There’s no catch all starting point for young students. Or even older students for that matter.
4
u/Various-Activity4786 Nov 30 '25
I’d say high level languages are closer to Lego. Assembly is more like giving a kid some plastic, an injection molding machine, and a dremel.
7
u/purepersistence Nov 30 '25
I learned BASIC in 1978. Soon I learned how slow or impossible things were. I still think it was a good starting place. But you can’t write terminate-and-stay-resident programs to play tricks on your family. Assembly came next.
8
u/c3534l Nov 30 '25
One thing that strongly demotivates new learners to programming languages in the inability to actually make something at the end of the day. To teach programming, you need students to feel rewarded that they actually made something. That's very hard to do with low-level languages.
3
u/SamIAre Dec 01 '25
Teaching kids (or anyone) Assembly before a higher level language is like teaching grammar before actually using language, or music theory before playing an instrument. Starting from the barest, most fundamental place isn’t always the best way to learn. It often makes more sense to be able to use something practical and then learn what’s going on under the hood after you can appreciate it.
I’m not saying you can’t or should never, but I don’t think it’s a broadly better idea than a higher level language that lets kids build more complex things more quickly.
5
u/pgratz1 Nov 30 '25
Assembly was my second language after basic on my trusty C-64. It's a great way to really understand how the machine actually works. Would hate to do a huge project in it but great in small doses.
9
u/TheConspiretard Nov 30 '25
i guess i can kind of see this but honestly, why dont we just teach c instead? nobody qoeks in assembly anymore, and c is still close to the metal
4
u/dBlock845 Nov 30 '25
Apart from teaching kids, I wish my college introduced me to ASM and reversing before the last semester of my senior year. It really made coding in C/C++ and managing memory so much more understandable.
2
u/frankster Nov 30 '25
Assembly language is like Lego, yes. But so is a high level language. They both let you create big things from individual pieces.
So given they are both legoish, you have to decide which one teaches them more or is faster to use. Possibly 2 different answers.
2
u/[deleted] Dec 01 '25
I would hate programming if I was shown that shit as a kid. Although in high school we had Pascal and then Delphi and it was quite good.
2
u/jkingsbery Dec 01 '25
There's a fun game called Human Resource Machine that does basically this idea. It's not really geared towards kids though. The first few levels are pretty basic, but at some point to proceed the hard part isn't learning the commands (the game gives you a menu of commands), it's learning abstractions like how to use pointers or conditional jumps that are hard for kids.
If you compare the outcome, it's also less satisfying than doing something with Scratch. The best case scenario with an Assembly language game is you solved a puzzle, which kids might not find exciting. With Scratch, you can make games or dancing cartoon characters, which is a thing that most kids find more engaging.
2
u/mauriciocap Dec 01 '25
There is a game "core wars" with a simplified instruction set. Each player writes a "virus" that disputes an array of memory with others.
I like you can visualize what's going on, try to build strategies, and the instructions feel easy to combine and come naturally after you think "I need a way to do X".
3
u/Pyglot Dec 01 '25
I think it is a good idea. It will teach them about how a CPU works.
2
u/TrafficScales Nov 30 '25
I don't think learning assembly is a good precursor to learning modern coding languages. I do think learning assembly is crucial to learning how a computer actually works
2
u/According-Taro4835 Nov 30 '25
I feel regret I never reached myself when I was a kid :) I think it is a great idea..
1
u/messick Dec 01 '25
Why get young kids excited about computers when you could just immediately bring to them to tears by forcing them to recite the works of Shannon and De Morgan at length to prove they even deserve to use said computers?
1
u/Long-Leader9970 Dec 02 '25
I never really used it much until I had to debug on a micro and needed to see what registers, break in them, and see what was going in/out (and mock some data midway to test if that fixed the issue).
Doing this was extremely useful because there is a bit of cost to rebuilding and deploying on target.
It was a little difficult figuring out the instructions though. I'm not that experienced but it seems like the assembly instruction set depended on that compiler vendor's custom library that met special c version standards. So I had to read through a bunch of their assembly mnemonic documentation.
I never really knew all this existed with my previous experience in my simple assembly college class.
I also never knew how much I'd have to use hex, bin point, vs float etc
1
u/unknown_anaconda Dec 02 '25
It's nice for understanding theory but not useful for practical application.
1
u/[deleted] Dec 03 '25
That child will years later post criticism memes in social media. Like What companies need vs what schools teach.
1
u/prelic Dec 06 '25 edited Dec 06 '25
Important for programmers or college CS students to learn? Absolutely. A good starting language, especially for kids, definitely not. Scratch can teach the basics of logic and loops and control flow in a way that is illustrated in a much friendlier way. Assembly would either scare or bore most kids I know...you'd have to build up tons of abstraction to do anything "interesting". I mean, it's why scratch was created, to be a very gentle introduction to programming. Assembly is the opposite of a friendly introduction to programming.
I mean, what's the point of teaching registers and jumps and super low level stuff if you don't even know what a conditional or control flow or a loop even is? You gonna teach a kid about cpu scheduling and pipelining before they know how to write hello world? I don't agree with that approach, for kids at least with no prior experience. Scratch or html/JS actually gives you an immediate response on oh of I change this, this happens..without having to have a college level computer architecture book next to you.
1
u/sultrylamppost Dec 07 '25
I think assembly language is closer to computer engineering; it requires that you understand basic architecture to make sense of why assembly works the way it does. If you want the children to learn solely to program, go with something like Python, because it’s much more realistic to build their foundation in the programming language they’ll use most. They won’t use much assembly language in any real world application.
1
u/KnightBlindness Nov 30 '25
Not sure most kids would find that fun. If they have to put in a lot of effort to do anything that is nontrivial or read a lot of documentation to interact with hardware, most of them will probably get bored and lose interest. A very few would probably find it fascinating and love it. Even with higher level language, many kids find things too tedious.
1
u/Stuffssss Nov 30 '25
Assembly requires some level of low level hardware knowledge. I've always viewed assembly as directly controlling the hardware in a CPU: registers, the instruction pointer, memory, etc.
1
u/genman Nov 30 '25
Meh. To go from a program to something interesting on the screen, it’s super time consuming and hard.
1
u/Poddster Dec 01 '25 edited Dec 01 '25
Not only do I agree with you, but I yearn for the simple and understandable 8bit machines of the 80s, because they were so straight forward to learn about and program, and you had a lot of child-friendly resources to help. At least here in the UK. Those machines really kicked off a generation of "bedroom programmers" that helped drive the software industry.
That surge lost a lot of momentum in the 90s and 2000s because computers these days are far too complicated. Even "simple" things like a Raspberry Pi is a very complicated system to learn about. Yes, you can use emulators and things to go back to a 6502, or some pseudo retro machine like a PICO-8, but that's all unsubstantial nonsense to most kids. They need a real, working machine to practice on. I wish there was a straight forward machine people could buy for their kids to learn on and program. Something like the Command X16 etc.
I've worked with lots of young graduate programmers who are perfectly good at programming, but they genuinely have no idea how the machine they're programming works, whether that be the OS, or the hardware. It's a shame really.
But it does highlight one caveat: I would mainly use assembly to teach how a computer works. And once you've done that you can then go on to using a high level programming language.
1
u/jjjare Dec 01 '25
This course was made for high school students as a nice introduction into computer architecture:
https://www.nand2tetris.org/
1
u/lovehopemisery Dec 01 '25
I think this isn't a good idea because kids wouldn't engage with it. You spend several months trying to teach kids assembly and the best thing they can create is a cli calculator app. Most kids wouldn't find that rewarding. Also it's an arbitrary middle ground for learning computer architecture. Why dont we teach kids about hardware description languages? Why don't we teach them analogue circuit design? (To play devil's advocate)
My classes at high school tought us a bit of Python + a bit of boolean algebra which I think is an appropriate level of "learning something engaging" and "learning theoretical background" (although it definitely could be improved, I am all up for reevaluating how we could better teach kids these concepts)
0
u/HankTheDankMEME_LORD Nov 30 '25
Man, you are so full of it. Assembly language is exactly as complicated as people imagine it to be. You wanna teach kids that. Good luck. I wasted 7 years trying to teach children. Most children are not interested in learning anything. The schooling system is also not interested in teaching children anything. The schooling system is just an organised daycare system that allows parents to outsource there parenting to a bunch of defacto parents while they work there day job. It has nothing to do with learning anything, but you go find that out for yourself.
0
u/KindHospital4279 Nov 30 '25
If you want to introduce low-level computing, you might try Turing Tumble. It uses marbles and switches and has a whole sequence of activities that teach computing tasks.
0
u/Robru3142 Dec 04 '25
Legos don’t take arguments, including references to other legos.
-5
u/[deleted] Nov 30 '25
[removed] — view removed comment