Live data from Hacker News

Is Python The New Basic? ("Python For Kids")

scienceblogs.com

31–40 of 53 posts

Re: Is Python The New Basic? ("Python For Kids")

#31
post #19

I tried it as "first language" and it's a freaking pain, I still don't understand the "everything is an object" stuff and why to use modules for everything instead of solving problems with your own code. BASIC is way better for beginner's, especially kids.

>why to use modules for everything instead of solving problems with your own code. That simply doesn't make sense. You could make that argument against every single programming language.

True.

Re: Is Python The New Basic? ("Python For Kids")

#32
post #28
post #19

I tried it as "first language" and it's a freaking pain, I still don't understand the "everything is an object" stuff and why to use modules for everything instead of solving problems with your own code. BASIC is way better for beginner's, especially kids.

The way to get around the "everything" is an object thing is to just ignore it. Object Orientation is mostly a convenience at that level of programming and you can do almost everything without even bothering about it.

Indeed, it's still very annoying though, I can see how OOP can be good for larger scale but when you want to learn pragramming it shouldn't be something that gets in the way, it did for me.

Re: Is Python The New Basic? ("Python For Kids")

#33
post #15

Earlier quoted context omitted.

Agree 100%. You don't have to install anything. It's on every machine with a modern web browser, even mobile devices. It's even got the "nastiness" factor down. :-) We're also starting to see things like Snap written in pure JavaScript/HTML5: http://snap.berkeley.edu/snapsource/snap.html

Not to forget the rapid evolution of the language, ECMAScript 6 will get ... 1. classes http://wiki.ecmascript.org/doku.php?id=harmony:classes 2. modules http://wiki.ecmascript.org/doku.php?id=harmony:modules and more ( http://wiki.ecmascript.org/doku.php?id=harmony:proposals ).

Javascript doesn't even need classes as a prototype-based (http://en.wikipedia.org/wiki/Prototype-based_programming) language.

I get the feeling that because Javascript is in such high demand, a lot of "classicly trained" programmers have started taking it up and started b*tching about how things aren't they way they're used to.

That's probably the same group of people who on this board complain about Python's indentation syntax, etc.

Re: Is Python The New Basic? ("Python For Kids")

#34
post #23
post #19

I tried it as "first language" and it's a freaking pain, I still don't understand the "everything is an object" stuff and why to use modules for everything instead of solving problems with your own code. BASIC is way better for beginner's, especially kids.

1. If you think Python is a pain, I don't think there is any other language you can learn. I've learned lots of different languages, but Python was one of the easiest to pick up and get started--not so different from BASIC. 2. Unless things have changed since I last worked with python, your statement "Everything is an object" is not true. Actually this is one thing I like about Python over Ruby (In Ruby, everything a…

I get your point, but why should you even bother using modules when you are trying to learn programming? The scenario you suggests isen't a task for a beginner, especially not a kid with no experience. Anyway, I just want to say a quick apology, I relize my first post sounded a bit more aggresive than intended, sorry about that.

Re: Is Python The New Basic? ("Python For Kids")

#35

I'd rather take Lua as "The new Basic", since it has a syntax closer to Basic, and it's a simpler language.

I don't fully understand why Lua hasn't taken over the world. Seems that a large part of it is a sort of weak ecosystem (maybe larger than it seems, but too spread out), and maybe the table thing weirds people out. People want to learn something they can use in "real life" as soon as possible, at least in my experience. But if Lua had taken over that wouldn't be a problem. Grrr.

Re: Is Python The New Basic? ("Python For Kids")

#36
post #30
post #2

Javascript is.

The problem with Javascript is that you basically can only use it to interact with websites (thus forcing people to also learn HTML and CSS along with it). There is also the problem of it being a language full of warts and implementation incompatibilities and missing lots of features you would want from a modern language.

BASIC had plenty such warts, incompatibilities and lack of 'modern' features. Javascript is still not as immediately available and direct to use as the BASICs of old were. As a beginner, to easily make anything useful and interesting (by today's standards) in Javascript, you need to run it in a browser as a saved file, wrap it in some html, and add a bunch of boilerplate (create a canvas, make stuff move, access the DOM).

Re: Is Python The New Basic? ("Python For Kids")

#37
post #16

Earlier quoted context omitted.

Maybe the modern equivalent of "boot straight in to a REPL." is starting a browser, everybody and his grandma knows how to do that, and if that is done, Javascript is closer than any other programming language. I can imagine a default, browser based Javascript REPL just being one mouseclick away. that can be done and probably will be done sooner or later.

> browser based Javascript REPL Cmd-Opt-J[0]. While easy to get to, it's not the same as being forced into a REPL every time you use your computer; you still have to know it's there, lessening the temptation to jump right in and break things. [0] or insert browser/platform appropriate shortcut for JS console/debugger here

My PC booted to DOS. Basic was an installed program.

My apple booted to the program on the disk you inserted.

Re: Is Python The New Basic? ("Python For Kids")

#38
post #15

Earlier quoted context omitted.

Not to forget the rapid evolution of the language, ECMAScript 6 will get ... 1. classes http://wiki.ecmascript.org/doku.php?id=harmony:classes 2. modules http://wiki.ecmascript.org/doku.php?id=harmony:modules and more ( http://wiki.ecmascript.org/doku.php?id=harmony:proposals ).

Javascript doesn't even need classes as a prototype-based ( http://en.wikipedia.org/wiki/Prototype-based_programming ) language. I get the feeling that because Javascript is in such high demand, a lot of "classicly trained" programmers have started taking it up and started b*tching about how things aren't they way they're used to. That's probably the same group of people who on this board complain about Python's inde…

Prototypes aren't classes and they aren't always what you want, and conventions can't always be optimized by the compiler as well as structured language elements.

Re: Is Python The New Basic? ("Python For Kids")

#39

These days, it seems that when I ask great 20-something-year-old programmers (or whatever term we use) at what age they started to program computers, I the answer is usually 10+. I wonder if it will be the same in 20 years? How young will it go?

It was the same 10 years ago. Presumably it will be as low as it was when programmable computers were first deployed to homes with kids. It might get older if kids get too much video games that don't inspire them to program the machine.

Re: Is Python The New Basic? ("Python For Kids")

#40

I'd rather take Lua as "The new Basic", since it has a syntax closer to Basic, and it's a simpler language.

I don't fully understand why Lua hasn't taken over the world. Seems that a large part of it is a sort of weak ecosystem (maybe larger than it seems, but too spread out), and maybe the table thing weirds people out. People want to learn something they can use in "real life" as soon as possible, at least in my experience. But if Lua had taken over that wouldn't be a problem. Grrr.

No standard library, nor even a standard class/object model. Lua is more of a language engine than a complete language. In that capacity, it is quite a success.
Post reply on HN