TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

49 点作者 modernise超过 12 年前

11 条评论

RodgerTheGreat超过 12 年前
For someone who already knows how to program, Python seems to be very easy to pick up. It's still a tremendously more complex language than BASIC.<p>I help teach an after-school programming class for middle schoolers. Last year, we tried using Python. While some students got the hang of it, many seemed confused and demotivated.<p>This year, I wrote a simple TinyBASIC REPL from scratch[1], aiming to produce the simplest subset of the language that made it possible to do interesting things and illustrate concepts like looping, branching, variables, etc. It was a big hit with the kids, and the whole class has been extremely engaged. As a next step, I've built a Logo[2] implementation so that we can move into writing modular, reusable procedures and play with graphics.<p>Learning to program is almost entirely orthogonal to learning a language, and I think that starting with very small "toy" languages is a good way to approach teaching core concepts without getting lost in the quirks and complex features of popular "real" languages. BASIC is small, Python will never be.<p><pre><code> [1]https://github.com/JohnEarnest/Mako/tree/master/demos/Masica [2]https://github.com/JohnEarnest/Mako/tree/master/demos/Loko</code></pre>
评论 #4859087 未加载
评论 #4863287 未加载
darkstalker超过 12 年前
I'd rather take Lua as "The new Basic", since it has a syntax closer to Basic, and it's a simpler language.
评论 #4859519 未加载
评论 #4859685 未加载
naner超过 12 年前
There is no new Basic. Computers are massively more complex now and expectations have changed as well with the Internet and tablets and smart phones being what they are. Most first-world kids would be bored out of their minds with Basic.<p>But Python is a fine programming language for beginners. A Raspberry-pi would be another good teaching tool. Processing might be interesting to some kids as well...<p>But there is no new Basic, no new Logo, no new Oregon Trail, no new Math Blasters. Those things belong to a different era.
klrr超过 12 年前
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.
评论 #4859451 未加载
评论 #4859630 未加载
评论 #4859966 未加载
评论 #4859625 未加载
pav3l超过 12 年前
The biggest reason BASIC was popular to teach back in the day, is because it is very simple. You are allowed to use GOTO statements which will make (bad) programming a whole lot easier for absolute beginners. On the other hand Python is a well-designed language. It encourages both OOP and FP, and honestly I am not convinced that just because smart people are actively pushing Python to become "the next BASIC", it is going to be very interesting for absolute beginners with little exposure to math and logic.
评论 #4859902 未加载
prezjordan超过 12 年前
I wish SmallBASIC (there are two of them! [0] [1]) would catch on (become a household name). Very easy, approachable, and has the same charm as normal BASIC/QBASIC - with regards to the development environment. Perfect for children.<p>[0]: <a href="http://smallbasic.com/" rel="nofollow">http://smallbasic.com/</a> (Microsoft SmallBASIC)<p>[1]: <a href="http://smallbasic.sourceforge.net/" rel="nofollow">http://smallbasic.sourceforge.net/</a> (SmallBASIC - One more basic)
评论 #4859396 未加载
mhd超过 12 年前
Nothing is, that's the problem.
评论 #4858808 未加载
ConstantineXVI超过 12 年前
The one key difference between BASIC and (python lua javascript &#38; etc) has nothing to do with the language at all: modern computers don't boot straight in to a REPL. Anyone who used a C64 more than likely knows a little BASIC, can't say the same for naive Windows or Mac users.
评论 #4859078 未加载
评论 #4863491 未加载
olaf超过 12 年前
Javascript is.
评论 #4858887 未加载
评论 #4859633 未加载
评论 #4859599 未加载
hiroprot超过 12 年前
Where I went to school, they taught Turbo Pascal as the first language, and I thought it was a much better beginner language than Basic.
chris123超过 12 年前
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?
评论 #4859801 未加载