Living Code

Living Code is Dethe's blog for talking about code, life, and all the rest.

Black Lives Matter. Defund the police. Free Gaza. End all Genocides.

Dethe Elza • Feb 23, 2008 • 1 min read

Programming Problems

Ruins André Roberge has started a project to embed programming challenges in his Crunchy project. Crunchy is a way to embed both Python code and an interpreter into a web page, making it great for Python education projects.  Read →

Dethe Elza • Feb 22, 2008 • 6 min read

Simple text adventure

Stairs down My kid was working on their XO and said something like, “Dad, you promised to help me with Python.” It turns out they were working on their first python program, using the bare-bones IDE for the XO, Pippy. (Aside: If anyone has a suggestion for a better environment than Pippy, that runs on the XO, I’m all ears.) I helped with the syntax of an if statement and explained how else works, and how to quote the strings they were testing against. Looking over their shoulder I see that they’ve got a minimal version of a text adventure game shaping up. I thought this would be a good opportunity to introduce lists and dicts, so I put together an email, that they’d have to refer back to later. Here is what I wrote:  Read →

Dethe Elza • Feb 21, 2008 • 1 min read

Apologies

Mandala I wanted to apologize for spamming Planet Python (and anyone else that happens to subscribe) with old posts recently. After spending many of my free hours for the past year noodling around with my weblog software (and the myriad of problems getting anything to run persistently on Dreamhost), I finally gave up and switched to WordPress. I’ve imported my old blogs for the sake of continuity (from Blogger and my own custom weblog, but not going back to Manila yet), and mapped the old URLs with redirects, so things should be fairly transparent to the casual observer.  Read →