74 karma · joined October 25, 2010
f = open('foo.txt')
try:
contents = f.read()
finally:
f.close()
So yes, extra reason to prefer the context manager.If there is a good service and I have to pay no problems. I am willing to give out $10 to Amazon every time there is a ebook I want. Give me a better service so I can follow the 2-3 TV series I want, and watch the occasional movie, I will pay.
But my 2c, is that even if the project does not work out as hoped, what ever they are doing can put turned into ad add-on.
I am having a shot at it with django. Rather early yet, but doing something like this is the goal. It only really exists on svn right now http://codefisher.org/svn/djangopress/
But since when was advertising honest?
10 years is too long though for a simple thing like this.
I like using a drop shadow on headings or other important bits of text that have been placed on something that causes the contrast to be low. But I try to make it so it is not obvious it is there, just subtle.
What is much harder to learn, and is largely language independent is: 1) Problem solving - the ability to break problems down into simple task that then can be trivially solved. 2) Data structures - programs are unless unless they have data to work with. Knowing how to best represent it is vital, do you use an array, linked list, tree etc. 3) Algorithms - known ways of operating on data to produce some out come. Everything from using a loop to add numbers, to sorting lists, or adding a node to a red-black tree. 4) Design Patterns - know ways to structure code, in a tried and tested fashion. 5) Architecture and Interface design - how to structure your project as a whole (what goes where) and how to set how one portion interacts with all the others.
Along with many other things. Point being the first language you learn matters little, if you learn to program that cross any language barrier. I have not touched the first language I learned for almost a year, but have learned 2 others in that time.
Having said all that, I am most at home in Python because there I know many of the language specific features.
the article is clearly rather dated, and a number of the points (as jws notes) are rather irrelevant now.