Archive for the ‘python’ Category

Build Systems: Make vs. SCons

In the process of recent work on an upcoming project, I decided that I wanted a build system that would do things that GNU Make either doesn’t do or at least doesn’t do readily. Doing a bit of investigation, I discovered that there really aren’t a whole lot of options out there. In fact, the four major systems I found were:

(more…)

Nifty little python program

Create a python script with the following contents, and call it, say, quine.py:

1
2
3
a = """a = %c%c%c%s%c%c%c
print a %% (34, 34, 34, a, 34, 34, 34)"""
print a % (34, 34, 34, a, 34, 34, 34)

Now run it. The output is the program itself!
For double the fun, try this at a command prompt:
python quine.py | python - | python - | python -
(ad nauseum)
Super Cool!

Newvow

I just stumbled across what looks to be one of the most promising Python based web frameworks I’ve seen to date: Newvow. While I haven’t had a chance to look at it much yet, it seems to be more along the lines of the “code behind” type of framework, a la ASP.NET, rather than the ModelViewController framework. I like this, as I’ve never really seen the need for the MVC pattern on the web (yes, I’m sure it makes sense for certain applications, but generally speaking…). When I’ve had a chance to poke at it some more I may write more.