The self initiated work I've seen kids create out of Scratch is seriously impressive and creative.
Kids Coding: Simple Java
21–30 of 31 posts
Re: Kids Coding: Simple Java
#22How to turn a kid off programming for life - choose Java as the teaching language. This kid had already started with Python, which is the natural choice for a first language, so why not just: import typing
I do not see Python as the natural choice for a first language. I've even had adult colleagues squint when I tried to explain decorators, or objects and all the self/static/class/method binding nonsense. OOP in Python is something I really cannot like. I teach the language to children and as soon as I get to objects (which is not avoidable in Python, as many libraries and the language itself use objects) the number o…
I don't think Python is a great language longer term, but its simple syntax and lack of ceremony makes it pretty much ideal for beginners.
Re: Kids Coding: Simple Java
#23I'm trying to get my kids to play Human Resource Machine. I hate the name but the game is okay. Because it's basically drag and drop assembly language the amount of steps for the challenges quickly rises. That's a bit of a shame, but the upside is it does sort of teach how a primitive computer would work at a low level for a kid who was grabbed by it. The blog author and a commenter make a good point about how back i…
I picked up Human Resource Machine when it came to the Nintendo Switch a few months ago, and I loved it pretty immediately. I think it does a great job of abstracting out the fact that you're writing assembly, masked by their very dark sense of humor (Little Inferno, anyone?). Whenever one of my friends (other grown-ups, not even kids) say things similar to wishing they knew how to program, I suggest they pick the game up and give it a try. It's like jumping in the deep end, but does a good job of showing how to think like a computer would think.
Re: Kids Coding: Simple Java
#24I think Kotlin would be a much better language to learn programming. Kotlin avoids much of the noise and is very readable. The hello world example is symptomatic: public class Example { public static void main(String ...args) { System.out.println("Hell, World!"); } } vs fun main(args: Array ) { println("Hello, World!") } Some more examples: // java for (Element element : collection) // kotlin for (element in collecti…
Re: Kids Coding: Simple Java
#25I think Kotlin would be a much better language to learn programming. Kotlin avoids much of the noise and is very readable. The hello world example is symptomatic: public class Example { public static void main(String ...args) { System.out.println("Hell, World!"); } } vs fun main(args: Array ) { println("Hello, World!") } Some more examples: // java for (Element element : collection) // kotlin for (element in collecti…
I TAed an intro to CS class in Python for a number of years. I am rather ambivalent toward Python as a developer, but as a first language to be taught it worked pretty well. There are others, but having the minimum amount of noise for some basic coding examples I think is incredibly helpful (though I admit, I think I'm basically just saying "I think dynamically/optionally typed scripting languages > statically, explicitly typed compiled languages for this task").
Re: Kids Coding: Simple Java
#26Earlier quoted context omitted.
I do not see Python as the natural choice for a first language. I've even had adult colleagues squint when I tried to explain decorators, or objects and all the self/static/class/method binding nonsense. OOP in Python is something I really cannot like. I teach the language to children and as soon as I get to objects (which is not avoidable in Python, as many libraries and the language itself use objects) the number o…
I disagree, I think Python is an excellent first language. While there are many oddities, I think Python lets you ignore them, or defer them to later in the learning process. Python can be pretty much as simple as you need it to be, and I think that's important for teaching programming. I would not expect to get to objects _properly_ (maybe things like list()) in an introduction to programming course, I think you can…
When I was there, at least, the focus was on basic programming concepts, functions, variables, loops, recursion, conditionals, and library interaction was largely imperative, more focused on successful execution than on the organization of the code.
Re: Kids Coding: Simple Java
#27Earlier quoted context omitted.
I do not see Python as the natural choice for a first language. I've even had adult colleagues squint when I tried to explain decorators, or objects and all the self/static/class/method binding nonsense. OOP in Python is something I really cannot like. I teach the language to children and as soon as I get to objects (which is not avoidable in Python, as many libraries and the language itself use objects) the number o…
I disagree, I think Python is an excellent first language. While there are many oddities, I think Python lets you ignore them, or defer them to later in the learning process. Python can be pretty much as simple as you need it to be, and I think that's important for teaching programming. I would not expect to get to objects _properly_ (maybe things like list()) in an introduction to programming course, I think you can…
> While there are many oddities, I think Python lets you ignore them
Yes, thankfully. But libraries that will make programming interesting for children usually have a rather sophisticated design, including an object-oriented interface. Pygame is slightly too complex for my taste and installing it on Windows is a pain (not Python's fault). I've tried Pyglet on that platform, despite its hard API, and am I right now comparing two students, one on each framework (although the Pygame one uses pgrun).
Once they've used Python as a means to get a game displayed, it seems easier to teach Python's useful minutiae as it helps them code. Not enough experience to assert this with certainty though.
> Then, once you do want to introduce objects, I think Python's class system can be kept simple enough to begin with, and the parts that are inherently tricky (like self) have equivalently tricky parts in most other languages anyway.
Python's OOP really has more complexity than needed. Smalltalk does objects simpler. Alan Kay used it to teach programming to children (the seventies version, the public '82 version had more stuff, meant for adults.) Children can learn to program _starting_ with OOP, not structured programming, but Python (or Java, or...) will not help you there. It seems to expect its user to understand OOP in terms of structured programming, which a practicing programmer certainly can, but a child with limited abstract thought?
Interestingly, Alan Kay was a lisper, which brings me to...
> I don't know a lot about Smalltalk, but Scheme is an interesting idea for a first language.
Can't be sure without trying it, but probably. The scheme community has projects in teaching CS through game programming, with at least one scheme dialect for games and accompanying IDE where images are first-class objects, displayed in the code.
> I think a course teaching programming that goes into async IO, needs to discuss 'global' (something I've still used only twice in 5 years of Python), talks about decorators, etc, is doing something seriously wrong.
I can see how it came out that way, but I don't teach async IO to children; I try to teach some Python to colleagues from time to time.
As for 'global', was your programming activity the one of a beginner? When you have someone that successfully wrote a single script with variables and control structures, you will want them to start writing functions to complete the introduction to structured programming. You will want to make them reuse the existing state, and once they discover the limitations of it, slowly introduce local variables, scoping rules and so on. My students often have the right reasoning at this stage but forget 'global', _repeatedly_ (that's the important part -- hint of a bad UI), which means I have to explain scoping rules, which seem to them like unnecessary wanking at this point.
Guido's attention to newbie-friendliness is obvious, but Python is old and has accumulated cruft, and its developers have blind spots. Zed Shaw listed some of them. Also don't forget that a professional in IT has developed a thick skin when it comes to complexity, or less charitably, learned helplessness in the face of shitty design. Where we think a system's idiosyncrasies are mere details (or worse, the right way to do things), an innocent mind will refuse to engage.
Re: Kids Coding: Simple Java
#28Earlier quoted context omitted.
I do not see Python as the natural choice for a first language. I've even had adult colleagues squint when I tried to explain decorators, or objects and all the self/static/class/method binding nonsense. OOP in Python is something I really cannot like. I teach the language to children and as soon as I get to objects (which is not avoidable in Python, as many libraries and the language itself use objects) the number o…
If you're trying to teach someone OOP with their first language, I think you're doing it wrong. If someone is new to programming, it's far more important that people get an understanding of simple procedural logic first. Anything that gets in the way of that is just likely to put people off. I don't think Python is a great language longer term, but its simple syntax and lack of ceremony makes it pretty much ideal for…
Why is it far more important that people get an understanding of simple procedural logic first? (And what is it exactly? I've had a 'procedural' feeling when seeing: - assembly code - structured programming (Algol 60 and descendants) - even some kinds of logic programming)
Re: Kids Coding: Simple Java
#29I think Kotlin would be a much better language to learn programming. Kotlin avoids much of the noise and is very readable. The hello world example is symptomatic: public class Example { public static void main(String ...args) { System.out.println("Hell, World!"); } } vs fun main(args: Array ) { println("Hello, World!") } Some more examples: // java for (Element element : collection) // kotlin for (element in collecti…
Kotlin or not, I feel like Java is just the wrong choice. Even Kotlin, there's a lot of noise to start with. What's a function? What's an Array? What's a String? I have to either explain all those things, or handwave it as "magic; ignore it for right now" to students. I would find that incredibly frustrating as both a student, and a teacher. I TAed an intro to CS class in Python for a number of years. I am rather amb…
program HelloWorld;
begin
end.
I was puzzled: why would you need to write something for it to do nothing? But it becomes clear very easily: all programs need to have a special structure to be correctly defined. This structure happens to be a block of code with a name. And that explanation was enough to satisfy me for the moment. I turned a few pages, and sure enough all examples had that structure with something else inside. I was already feeling good with myself for being able to recognize well structured programs.Re: Kids Coding: Simple Java
#30Earlier quoted context omitted.
On Linux, there's `espeak`, which is essentially equivalent to `say` on Mac.
Somehow I don't think he was too worried about 9-14 year olds using Linux. Probably was mostly thinking about Windows.