Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »

Andrea › Comments

Andrea
Adequately Good - Saner HTML5 History Management - by Ben Cherry - http://www.adequatelygood.com/2010...
history management how to - Andrea
Andrea
Typical Programmer - Doing it wrong: getters and setters - http://typicalprogrammer.com/...
Getters and setters are evil. Evil, evil, I say! Python objects are not Java beans. Do not write getters and setters. This is what the ‘property’ built-in is for. And do not take that to mean that you should write getters and setters, and then wrap them in ‘property’. That means that until you prove that you need anything more than a simple attribute access, don’t write getters and setters. They are a waste of CPU time, but more important, they are a waste of programmer time. Not just for the people writing the code and tests, but for the people who have to read and understand them as well. In Java, you have to use getters and setters because using public fields gives you no opportunity to go back and change your mind later to using getters and setters. So in Java, you might as well get the chore out of the way up front. In Python, this is silly, because you can start with a normal attribute and change your mind at any time, without affecting any clients of the class. - Andrea
Andrea
OAuth — An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications. - http://oauth.net/
An open protocol to allow secure API authorization in a simple and standard method from desktop and web applications - Andrea
Other ways to read this feed:Feed readerFacebook