Time to take a look at Python I guess
I was reading Reddit today and came across an interesting article titled Solving Every Sudoku Puzzle. My girlfriend and I enjoy doing Sudoku quite a bit, so an article about solving them obviously caught my eye. I clicked through and arrived at what appeared to be an essay written by Peter Norvig who is (was?) an artificial intelligence (AI) researcher and now works at Google. If you’ve ever taken an AI course in school you’ve probably heard his name before. Norvig’s algorithmic genius is apparent by his simple attack of this potentially expensive problem. The elegance of his solution speaks to his years of programming experience and inherited wisdom.
The thing that most caught my eye was that Norvig has chosen Python to implement the solution in. The syntax is a little confusing and would probably require a quick read of the reference manual to follow along. The required use of white space really helps to make the code more readable which should help out beginners a fair bit. His choice tells me that there is something to Python that is worth looking into.
Recently I’ve been curious about alternatives to ASP.Net and PHP, one of which is Ruby on Rails (RoR). A lot of people are talking about RoR and there are some clear lines in the sand. A lot of people criticize its problems with memory use and the unorthodox way dynamic pages are served. Others extoll the virtues of the languages syntax, its tight integration with AJAX libraries and its scaffolding technology for rapid development. I’ve not had enough time to formulate an opinion but I can definitely see the validity of points on both sides of the argument.
Python has a web framework similar to RoR called Django. One of its major proponents in the web industry is Jeff Croft who has used it to great success for his blog. Django, much like RoR, has an unorthodox page serving technique which makes it difficult to find a hosting company. From the information I could find via Google it appears that AJAX is also integrated along with scaffolding. It looks like Python is worth taking a look at, time to find somewhere to host Django and test it out. Thanks Mr. Norvig.
Categories
Recent
- Blackberry JDE API - User Interface Field Reference
- Getting started with the Blackberry Java Development Environment (JDE)
- ASP.Net DropDownList annoyance
- Mambo to the beat of the internet
- ASP.Net has 9 to 5 appeal
- ASP.Net CheckBoxes should be able to have values
- Time to take a look at Python I guess
- Country list formatted for MySQL import
- Kinetic Typography: typographic treatment of an audio sample
- MSN Video Sucks
- Five things about me
- ASP.Net file download protection through authentication
- ASP.Net Dynamic Controls (Part 4)
- Rollyo Comment Spam
- ASP.Net Dynamic Controls (Part 3)



The following article on another guys reasons for using Python might also help you:
http://blog.cbcg.net/articles/2007/04/22/python-up-ruby-down-if-that-runtime-dont-work-then-its-bound-to-drizzown
- Paddy.
It’s funny because I just read that article the other day on Reddit and it was in the back of my mind when I was writing this post.
Thanks for digging up the link :o)
The biggest benefit of Python is the community. While Rails and Ruby are both very nice, Ruby doesn’t have the community Python has in terms of people developing interesting things and solving hard problems. I would imagine Ruby will continue to improve in this regard, but at the moment the maturity of the Python community is a huge resource.
I actually read a few of these articles recently too. And I think in the end it’s close to a rivalry in a way. Each has it’s own benefits and it’s just a matter of what you prefer to implement.
Seeing the kind of work we do in housing, I don’t really see the advantages Python would offer, since we don’t do complex work really, just a lot of DB queries.
Still, I think it’s best to know X + Y, and I think in my case I’m sticking to Ruby/PHP.
A great read about a programmers journey from C++ to Perl CGI to Python.
http://www.devchix.com/2007/05/24/beautiful-python-the-programming-language-that-taught-me-how-to-love-again/