Tag Archives: programming

The CyberConstitution Class

Each fall I teach an Introduction to Programming class, and it’s always fascinating to see the connections students make as they experience their first real exposure to programming. Today I introduced the concept of classes, and we ended up in … Continue reading

Posted in education, programming | Tagged , , , | 1 Comment

Processing a long list efficiently in Python

This post was inspired by Brandon Rhodes‘ excellent talk at Pycon 2014,  All Your Ducks In A Row: Data Structures in the Standard Library and Beyond. Python’s lists are dynamic.  You do not need to declare their length ahead of … Continue reading

Posted in programming | Tagged , , , | 3 Comments

Github streak days 31-60: What I’ve learned

About two months ago I started writing some lessons for an Introduction to Programming class I was about to teach. I was using IPython Notebook to write those lessons, so I decided to put the notebooks on GitHub. I worked … Continue reading

Posted in programming | Tagged , , , , , , , | Leave a comment

What I’ve learned from my first 30-day GitHub streak

Today marks the end of my first 30-day streak of making contributions on GitHub. I had no intentions of starting a streak, but now that I’ve got one going, it’s addictive. More importantly, I find I am learning a great … Continue reading

Posted in programming | Tagged , , , , , , | Leave a comment

How Open Can a School Be?

Applying Gittip’s “Open Company” concept to public schools Chad Whitacre, founder of Gittip, has made a name for himself recently through his commitment to running Gittip as an “open company“.  Gittip is a platform that allows people to support each … Continue reading

Posted in education | Tagged , , , , | Leave a comment

Balloon Ninja: Popping balloons

Back to Tutorial Contents Adding a sword In the previous section we created a balloon and made it rise to the top of the screen. Let’s add a sword that the player can use to pop balloons. To do this, we … Continue reading

Posted in programming | Tagged , , , , , | Leave a comment

Balloon Ninja: Creating a screen

Back to Tutorial Contents In this first section of the Balloon Ninja tutorial, we will install Pygame and create an empty screen. Installing Pygame If you are using ubuntu, you can install pygame in one line: Creating a screen Here is … Continue reading

Posted in programming | Tagged , , , , | Leave a comment

Balloon Ninja: A Simple Pygame Tutorial

Introduction If you are learning to program in Python, writing your own game is a great way to immerse yourself in the language.  Writing a game pushes you  to understand the core parts of the language such as data structures … Continue reading

Posted in programming | Tagged , , , , | Leave a comment

PHSgeek – Learning Postgres

If you  want to do anything meaningful with modern web frameworks such as Django, you have to develop some familiarity with databases.  A few goals to start off with are: Work through a tutorial, so you gain a little experience … Continue reading

Posted in programming | Tagged , , , , , | Leave a comment

PHSgeek – Updating an Ubuntu System

There will always be a way for people to update their ubuntu systems through a graphical interface, but if you are aiming to be a programmer it is better to learn how to run updates through a terminal.  There are … Continue reading

Posted in programming | Tagged , , , | Leave a comment