Rurple NG

Aug. 13th, 2009 02:31 pm
ciphergoth: (Default)
[personal profile] ciphergoth
I've been writing a program for teaching people how to program:



And I've blogged about it on the work blog. I start by quoting Cory Doctorow's Little Brother:
If you’ve never programmed a computer, you should. There’s nothing like it in the whole world. When you program a computer, it does exactly what you tell it to do. It’s like designing a machine — any machine, like a car, like a faucet, like a gas-hinge for a door — using math and instructions. It’s awesome in the truest sense: it can fill you with awe.

A computer is the most complicated machine you’ll ever use. It’s made of billions of micro-miniaturized transistors that can be configured to run any program you can imagine. But when you sit down at the keyboard and write a line of code, those transistors do what you tell them to.

Most of us will never build a car. Pretty much none of us will ever create an aviation system. Design a building. Lay out a city.

Those are complicated machines, those things, and they’re off-limits to the likes of you and me. But a computer is like, ten times more complicated, and it will dance to any tune you play. You can learn to write simple code in an afternoon. Start with a language like Python, which was written to give non-programmers an easier way to make the machine dance to their tune. Even if you only write code for one day, one afternoon, you have to do it. Computers can control you or they can lighten your work — if you want to be in charge of your machines, you have to learn to write code.

Date: 2009-08-13 06:46 pm (UTC)
From: [identity profile] ciphergoth.livejournal.com
Python, no doubt about it. A beautiful, clean and simple language that's good for total beginners to programming but is also well suited to real work. There are many, many libraries for a huge variety of tasks. The program I wrote is written in Python and teaches Python. Google write everything in either C++, Java, or Python. There are things other languages do better, but you'd be very hard pressed to regret learning Python first.

Graphical stuff sadly is hard in any modern environment, but you can get very nice results out of Cairo, which is what I use for my electoral charts - in Python, naturally :-)

Date: 2009-08-13 06:50 pm (UTC)
From: [identity profile] haggis.livejournal.com
Thanks, I'll look into it.

One of the things I wanted to make was one of those simple ecological models (sharks eat the fish so the fish population drops so the sharks die out a bit so the fish population booms) that I could make much more customisable. The logic is easy, trying to write a program to display it was such a nightmare I gave up.

Date: 2009-08-13 06:55 pm (UTC)
From: [identity profile] ciphergoth.livejournal.com
If you want to display it as a graph, the Python library "matplotlib" is not too hard to use and produces absolutely fantastic results, as well as being very flexible. A lot of my electoral charts used it.

Date: 2009-08-13 08:10 pm (UTC)
From: [identity profile] meico.livejournal.com
Graphical stuff sadly is hard in any modern environment

I think Processing make grapical stuff very very easy. Simple to invoke, deploy, and with tons of great examples online. :)

Profile

ciphergoth: (Default)
Paul Crowley

January 2025

S M T W T F S
   1234
5678 91011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 13th, 2026 10:47 pm
Powered by Dreamwidth Studios