John Carmack's son's game in Racket
groups.google.com
groups.google.com
Dropping a newbie into Eclipse or MonoDevelop makes them feel like
they are walking around in a byzantine museum, afraid to touch
things, while DrRacket feels closer to old-school personal computers
where you felt like you were in command of the machine.
I think this is a very important observation. As with most things, it's extremely important to get in during the humble beginning stage and then tracing your way up to grok more complicated systems. Similar to the "first principle" approach.The school where I work at is incidentally piloting a intro to computer programming course that uses Blender and Python for completely green 10yr olds. I don't see this turning out well; how doesn't it just devolve into a CTRL-C/CTRL-V bonanza?
This is coming from someone who loves VS, but it is not something beginners should have to deal with. Some of my questions that distracted me from actually solving problems (note the technically incorrect usage of certain terms; this is intentional):
- Why is the options menu so huge?
- What the hell is a project?
- Oh my god I clicked in the thing and this red ball popped up and now the code won't move past it!
- Why do I need to build the project? Can't I just run my code in the file?
- Why do new menus pop up when I click "Run"?
- What the hell does "step into" and "step over" mean?
I think that a CLI or super basic IDE with minimal options and capabilities is the way to go when dealing with people who are beginners. On that same note, I do find it disheartening that many upper-division courses at college never bother with IDEs, and teachers tell students to just "figure it out on your own".
Both are valuable to know, but teaching someone how to be a mechanic without ever having them drive a car is a bit of a mess.
I'm a big fan of VS for C# and IntelliJ for Java. Neither of these are Babby's First IDE, but once you have mastered the basic ideas of working in an IDE they pretty much work the way you would expect.
JetBrains' other IDEs and plugins have also been uniformly excellent, in my experience. The VC++ parts of VS are a lot rougher, but I suppose that's to be expected.
Today I fired up Android Studio for the first time, and I literally cracked a smile and did a fistpump when I saw IntelliJ staring back at me instead of fucking Eclipse.
Unfortunately I have found that NetBeans is often missing some functionality around the edges. For example, it doesn't support parameterized JUnit tests (they run, they count towards success/failure, but don't display in the GUI). That's not exactly new functionality either, they've been around since what, 2010? It's a shame because Netbeans is definitely a more polished environment.
I would suggest that you check out PyCharm and see if it suits your needs. Everything I've tried by JetBrains has been absolutely fantastic.
I personally was introduced to programming as a hobby when I was 10y old, in an after-school class, where we used visual basic for applications. This was early 2000's and VBA editor bundled with every Office was suprisingly decent, and I remember quite fondly creatin random poem-generators spamming endless streams of message boxes :D So, if they manage to make their way around some thing ordinary but complex such as spreadsheet/presentation editor, I don't think bloated IDE's would be too much of a hinderance.
So even though in principle, I like the simplicity of repl for teaching somebody, my afternoon class 15 years ago didn't have problem with the "high cognitive load" :)
Regarding blender ... If you want to teach them basics of graphics/3d modeling first and then showcase the basic, and make them interactive with its drag&drop/node-based actor model ... it might be fun. But I haven't used blender in more than 5 years, so I don't really know, how much it supports the "game-dev-teaching" angle.
https://www.youtube.com/watch?v=K5HEyoDb-tw&index=64&list=PL...
I don't understand the appeal of learning programming without the beginning programmer being in charge of control flow.
Attaching scripts to things is useful for people with skills in using 3D tools, but now you have to introduce them to the concept of writing functions to be executed repeatedly in a loop without them being able to see the loop.
Student: How does it know to keep running my script?
Teacher: It runs every frame in a loop.
S: What's a loop?
T: teaches loops
S: Where's the loop that runs my script?
T: Deep inside the bowels of Blender.
S: Oh.
People that say this have almost never actually tried to teach kids programming from scratch. Throw someone in the ocean and they will drown. Build up starting in a kiddie pool and after practice, they could be a life guard.
The same thing happens with computer science all the time. The very first thing taught is C++. I can't think of anything worse for someone who hasn't ever seen an if statement or a loop than to burden them with a deluge of functions whos motivations aren't clear until programming a large project for two years.
Works really well with systems built from many simple parts, too. Learn the bag of small pieces (linear) then jump in and go crazy with the combinations (exponential).
I've been looking for something that gives a modern, live-coding-ish experience similar to how you used to program in BASIC on the Commodore 64. No clutter, a fullscreen immediate editor/REPL in one window, nice big text, etc.
The closest I've found to what I'm after (until now that is) is (fluxus) (http://www.pawfal.org/fluxus/). Would really really love to hear of any others.
1. http://elm-lang.org/try 2. Clojurescript + figwheel + reagent. 3. ipython notebook
nano story.txt
To start writing simple stories (she loves doing that). And yes, she saves it by pressing Ctrl-x, y, and enter. :DKeyboard.... how quaint! :)
The next step is usually Python but I'm not sure kids will get the significant whitespace. Go is an option or maybe BASIC (on RISC OS perhaps).
(Haskell does support {} and ; for those in need, though. Also, it has lots of other stuff for people to complain about first.)
At the start of this year I finished a first course in Python to learn in anticipation of [possibly] using it for home learning with my kids (it seems widely used for education). As I'm familiar with programming I searched for an IDE as I started. It told me when I had dropped a space or used a tab by accident. I tried several different environments including my standard editor choices - nano and Kate - revealing non-printing characters was a clear advantage. Others (primarily adults) who were starting fresh in programming had lots of problems with errant spaces.
With braces you can see more clearly when there is an error of addition or omission, not so much with spaces. Like I tried to say above: this is clearly tractable with the right tools but the demarcation - I feel - of braces can be a more clear and obvious sign of separation than whitespace. For younger people with less spatial reasoning and less accurate perception of text lining up it rather seems it could be pretty much harder to use whitespace structuring.
Personally I like the overall "clean" appearance of Python compared to PHP (say), debugging with tools is fine, when I was testing different environments and tripped on whitespace problems it was a nightmare rather reminiscent of trying to debug HTML tables some years back.
> With braces, you have to search for the opening and closing brace
It's probably been 20-30 years since I used an editor that couldn't highlight the matching brace, and that wouldn't show me which opening brace the closing brace I just put down matches up with.
But it's just been a day since the last cut and paste "accident" left me with a badly mis-indented piece of code... which I happily could auto-format back to sanity with a couple of keystrokes because the indentation was not all the editor had to go by.
My hesitation for using it with kids comes from anecdotal evidence (both written and in person). Kids seem to have trouble with significant whitespace (such as with Python ifs/loops/functions).
It may be better to use BASIC or Ruby. This way you avoid many of the braces and semicolons. You can still end a line with just a CR/LF but it makes it obvious where statements, functions and loops end.
Drink the koolaid, fine, but don't drink THAT MUCH of the koolaid.
Just not discounting Go based on what I've read. e.g. https://news.ycombinator.com/item?id=10054270
Does anyone have a book about the method they develop? I bet that, following it to the T or not, it would sell here with the HN crowd.
I did the coding but it was his concept, he did all the graphics (scanned pictures he drew), the font (generated from his handwriting) and sound effects (that's him making all the sounds).
He also built the levels and used a music generator to create the background music (not in the version that is on the website yet). This was all done in Unity with a lot of prefabs to make it easy for him to build the levels.
I'm totally going to introduce him to PICO-8 (see link below) next to see how he gets on :)
He is a pretty awesome kid :)
I'll see what I can do re sharing the source code...
As a child there is no bias as to 'oh it must be hard doing that because I am use to clicking X in Windows' they just learn stuff and get on with it. We should all remember to be like children sometimes. Explore ... not language wars!
I tried really hard to use and like free/open source IDEs like Eclipse, Aptana, and Netbeans. They all felt clunky, didn't work, or worse took away features in later versions. I finally forked out the money for PHPStorm, PyCharm, and IntelliJ and it's been the best money I've ever spent. Trying to learn the internals of indefero using vi was a challenge (with file_put_contents as a debugging mechanism...) - but once I figured out how to use xdebug in PHPStorm it's just been amazing. It has the feel of Visual Studio without the extra bloat.
You say you've forked out money for both PHPStorm/PyCharm and the expensive IntelliJ. I thought IntelliJ automatically supports all the language addons, so why separate copies of the language-specific bundles? Am I wrong about IntelliJ, or did you just happen to buy that one last?
I could be wrong - but the way I understand IntelliJ language plugins is just really code autocomplete/syntax highlighting. PyCharm and PHPstorm have strong integration with the languages (debugging, inspectors, etc).
As an aside - for an individual license for IntelliJ $200 isn't a lot. Totally not rubbing it in but I've spent thousands of dollars on Visual Studio subscriptions (and I think they gave me a lifetime subscription of $50/month to Azure...). Check out bizspark - I definitely recommend it. Microsoft even waived the graduation fee for me.
I am so jealous when I hear these damn stories. Another 5 or more years to go. Does anyone have a book about the method they develop? I bet that, following it to the T or not, it would sell here with the HN crowd.
It's great to inspire your kids to program (computational thinking is literacy, after all), but it's deeply misguided to believe that normal ten-year-olds exhibit the kind of intense interest that Carmack's son seems to display here -- and indeed, believing that a "method" can yield this kind of interest in a child can result in the kind of paternal (or maternal) disappointment that does lasting emotional harm.
Good on Carmack's son for showing such interest and talent, but let's encourage that to be fostered relatively privately -- and thereby allow him to be what he is first and foremost: a ten-year-old kid.
Let the kid decide. Maybe he wants to become an astronaut instead, or a penniless country musician. We'll see, all in good time.
I totally agree that kids should decide and that as parents we should never force them to fulfill our dreams. But at the same time as adults we still need to show them what options there are, guide them through obstacles and push them a little when it's boring or scary in order to make them grow.
Far too often today I see parents (myself no exception though I try no to) treat their children as small adults, as if they already possess all the knowledge and skill to make informed decisions about what's best for them. When I take the time to really listen to my kids it always strikes me how much their view of the world differs from mine. It's easy to think that a certain event we experience together has the same impact on us, but a lot of the things I consider trivial has a lasting effect on my kids.
I guess what I want to say is that it's easy to say "if the kid wants to program, she will program" but it doesn't always work that way if she doesn't know that you can program.
On a more serious note, sadly the majority of Chinese/Asian parents i know would take the first sentence seriously.
Asian parent: "You doctor yet?"
Kid: "No"
Parent: "Talk to me when you doctor!!11"
(Family guy reference)
[1] https://en.wikipedia.org/wiki/L%C3%A1szl%C3%B3_Polg%C3%A1r
If you are forced even more, that Resistance to the "system" attitude and the results, might even become part of the core personality.
Force is used by those who can not encourage by example. If you can encourage by example, all that force will lead to someone who is very good at circumventing bigot rule-systems. Who will then pass that attitude to his son/her daughter.
My son is 6 tomorrow and is also using Dr. Racket to learn programming. I post on twitter and Facebook about it. I'm proud of my son. But more than that, I'm amazed at Racket as an environment for learning and teaching programming.
This week I revisited my scheme automounter I have running on my raspberry pi that I wrote when I first learned scheme. I made the code half as long and made it not suck and now I am struggling with not starting an ever-growing project of replacing systemd with it...
That is hilarious.
Sincerely, a Haskell developer.
My 11 year old son submitted his first LudumDare Jam game this morning. It's a Javascript / HTML5 clicker/incremental game (think Cookie Clicker) built on a game engine I created. He's been getting so much better at coding all summer long. I had to help a lot at first, but now he's implementing everything on his own, and only comes to me when he can't hunt down a bug - which 99.9% of the time is a missing end-quote, ) or }
I'm not sure I want him to have a public website though with photos and an email address posted :/ I guess I'm not as trusting of... well... the entire world. Then again, maybe it's a good idea. I don't want him to leave the house at 18 and be surprised at how nasty the Internet can be.
This motivates the design of my Scheme IDE, Glass Table [https://github.com/bitwize/glasstable], which is modelled on old-school micro BASICs (notably from Microsoft).
GT is implemented as a series of hooks into the REPL, which listen to all typed input for variable, procedure, or macro definitions and log them in a "workspace" which can then be saved as a Scheme file. Individual definitions in the workspace can then be edited with an inferior editor (or, if you are working from inside emacs, with emacsclient).
Not to take anything away from DrRacket of course. Any programming tool that puts direct, immediate command of the machine at your fingertips is a good thing.
A bit off-topic here, but still related I guess. I have a 1 year old daughter and I keep wondering what would be the right time to introduce her to computers and programming in the future?
I have always thought that she should spend time reading books, playing in the backyard and lego before she delves into computers.
Have any other programmer parents thought about this as well? Or any other experiences on how they introduced programming to their kids?
Simple things, but things like make a switch that turns on and off a lamp or opens a door. Or simply building larger things out of smaller things.
I mean programming is really a matter of logic and composition. Something like "This switch will turn off all of the lights, but these switches will turn on and off individual lights." is a sort of "If (mainswitch is on) then {lights settings is the same as its switch} else {light is off}"
Apart from some pretty simple logic, it's really just composition. A turing machine is comprised of some really simple functions, and apart from that it's just a matter of understanding how to compose those into more complex ones, and understanding programming is just recognizing the processes of breaking down those complex compositions into simpler ones.
A class provides better structure with an end goal in mind. We enrolled him in several "make a game" camps that I think he enjoyed more than open-ended exploration.
These days, he takes CS courses in high school and enjoys them, I think getting them into programming at a young age is fine but not a necessary condition if you would like them to have it as a skill later in life.
As a parent, I'd say to introduce them to many different sorts of experiences and indulge them if they show interest, and be willing to let them change their mind. Be interested in what they do.
From my experiences in university so far (Comp Sci), this experience seems to be pretty rare. If I ever have kids, I hope to be able to guide them in a similar way I learned as a kid. If they want to mod Minecraft, sure, let's start with that and not a boring tutorial for TodoApp#5034.
It's a bit less polished, but far, far better when it comes to hacking. I found it significantly easier to create a mod for Minetest than to use a mod in Minecraft. Once my kids grasped the idea that they could add whatever items and behavior they could dream up, they really took a shine to it. The Lua coding used is very approachable.
The only issue though, is that I think a lot of his motivation stems from potentially sharing what he has made - pretty much everyone his age has a copy of Minecraft.
One advantage that may help is not needing a license; if you have siblings that have to share a Minecraft account they can play Minetest on as many machines as they have without bugging their parents to pay for a new account. Plus it can run on much older machines.
But yeah, it can be a tough sell just because people don't want to bother.
My youngest daughter prefers to rip the keys off my laptop, so she gets to do less typing....
I’m still taking a little heat from my wife for using an obscure language instead of something mainstream that is broadly used in industry,
That's adorable. Of course John Carmack's wife would be ribbing him about what programming language he uses.I had the same impressions as Carmack, I think, about the suitability of the DrRacket environment for young programmers. It's nice seeing that it can work for young, motivated programmers.
It's pretty cool how he added squealing sounds when the FLY character dies. I died several times while being in Ghost mode. This game is hard!
When I was 10 I was probably still reading choose-your-own-adventure paperback books. Ryan's already wrote his own game in a functional language.
Nice job!
My 10 year old daughter has a lot of ideas for games, but since I have no game programming experience I literally have no idea where to start with her. Does anyone have any suggestions for a good framework / toolset to get started for a simple game?
Construct 2[1] is a game framework for HTML5 and javascript, and Unity[2] has tutorials[2a] for basic games and it uses javascript, C# and "boo" (basically python) for scripting.
[0] http://www.yoyogames.com/studio
[1] https://www.scirra.com/construct2
[2a] for versions prior to 5 - I don't know how many tutorials for the current version of Unity there are - you may want to check first and consider an older version.
Processing seems pretty good.
I'm teaching my younger brother with PyGame and Python, and that's ok, but not perfect.
I also felt that the approach to drawing taught in HtDP became awkward as things got complicated, so I appreciate some of the advice given in the thread. I may try some of these things this semester. I may also try jumping out of BSL into full Racket at some point so that we can use some more advanced features.
My guess is that Ryan is primarily interested in programming as a means of making games. And since his father basically wrote the book on that topic, he's in a perfect position to nurture that interest. If John instead wrote, say, the world's best accounting software, I think Ryan would be more likely to pursue a different hobby.
I think back to my past, my dad is obsessed with baseball statistics. He would spend hours studying everything baseball... honestly I don't get why he likes it, but it's where he spent ALL his time. I was also interested in computers and video games, he found no value in either so he would never participate. If I wanted to spend time with him (and every boy does) i'd have to go to baseball games with him. So for several years I did. Honestly though, I hate baseball.
I would love that since Racket is obviously a much better language than Lua for learning, but Love is still a bit more approachable for graphics than Racket's universe library.
Yes, two-player competitive Lemmings on my Amiga 1000 was friggin awesome. Shame that PCs still haven't caught up.
Yes. I tried to get that working in GNOME once, naively expecting that because it's trivially easy to state well-defined behavior for multiple mouse cursors, it must also be possible to have multiple mouse cursors. But no. I'm still bitter that this seemingly obvious concept seems to be so thoroughly precluded at very basic levels.
Can someone explain this? How are things drawn in functional programming?
The thing that I see most, and in this activity, the thing that displease me most is: parents that work as programmers and they pretend that their children must be programmers too. They bring them because they tried in all ways to make them interested and didn't succeed. One parent, a programmer, was worried with the quality of the teaching and wanted to be present a day. After the end of the meeting(I like to call them meeting. Kids see school as prison rather than joy, and I don't want to make them feel uneasy) the programmer seemed pleased of the experience and made a praise about the kids being happy and interested. He told me that he would send his son, in the hope that this time he would listen and asked about the price. I told him the truth and true nature of that meeting: they are all kids that really wanted it: When I am the new batch I usually try to talk of other things and wait something that makes me happy: a kid asking me when we begin. This is the clear sign that there is something in the room that is happy to learn. The programmer looked a bit puzzled and I told him my opinion. Are you sure that this is what your son want? If you imprison your son in something, he will totally hate it, wasting an activity that he could have enjoyed at a later time. I finished the speech saying that I'm doing it for free. My reward is making them have a good time and hopefully, giving them a better future. Kids in front of other people can have problems and feel anxiety. So, Carmack, I'm worried if having an entry bar of all the Internet watching your son, could be a burden too high. Are we sure that this is what he wants? Is he ready to compete?
Kids are precious, they will be the mark of our efforts and their mirror. I think that your son should enjoy as much as he can what he is doing and be kept away from the Internet consumerism for now ...
Have a nice day.
It's enough that he's an amazing 10 year old programmer but he's also funny!
What is the age they start reading proficiently?
What is the age they start writing effortlessly?
What is the edge they can read a web manual for, say, Racket and actually understand it?
] 10 PRINT "HELLO"
] RUN
It was that easy from my Apple ][/cAnd this was pretty much fun
] CALL -151
* Tlibcairo-2.dll
libeay32.dll
libexpat-1.dll
libffi-6.dll
libfontconfig-1.dll
libfreetype-6.dll
libglib-2.0-0.dll
libgmodule-2.0-0.dll
libgobject-2.0-0.dll
libgthread-2.0-0.dll
libharfbuzz-0.dll
libiconv-2.dll
libintl-8.dll
libjpeg-9.dll
libpango-1.0-0.dll
libpangocairo-1.0-0.dll
libpangoft2-1.0-0.dll
libpangowin32-1.0-0.dll
libpixman-1-0.dll
libpng16-16.dll
ssleay32.dll
zlib1.dll
In DrRacket you can choose the "Create Executable..." to package your Racket program with the files needed to run the program (without the user installing Racket).
Since this is a just-for-fun project, they just made installers for Windows and OS X.
If you have, say, an Windows machine - you need a friend to make the executable.
http://download.racket-lang.org/
So, it looks like an open-source cross-platform thing -fantastic :)
I regret that I have only one downvote to give.
Valve stats on different platforms:
http://store.steampowered.com/hwsurvey
It shows an accumulated 0.89% market share for all the linux distros combined.
that's a self-fulfilling prophecy. i begrudgingly bought a windows license for the family gaming box only because we couldn't play some games we wanted otherwise.
The lack of common API that _all_ of the linux distros [...]
every single AAA game i've installed from Steam has its own copy DirectX and base libraries (Redistributable Runtime), which leads me to believe there is a lack of common API that a few recent versions of Windows would support equally, yet they ship. this approach, btw, is exactly what most proprietary software for UNIX or UNIX-like systems i've seen has done: static linking or bundling your own copies. is there something i'm missing that precludes applying this to games for GNU/Linux?