The main examples in my book, “Invent Your Own Computer Games with Python” (free to read under Creative Commons at http://inventwithpython.com) present the complete source code to simple games like “Guess the Number” and “Tic Tac Toe”, and then explain how these programs work.
March 5, 2012
March 5, 2012
A few years ago I used to be a hothead. Whenever anyone said anything, I’d think of a way to disagree. I’d push back hard if something didn’t fit my world-view. It’s like I had to be first with an opinion – as if being first meant something. But what it really meant was that I wasn’t thinking hard enough about the problem. The faster you react, the less you think. Not always, but often.
March 2, 2012
March 2, 2012
In my first job at General Dynamics I knew a young dynamic manager who worked seven days a week and always put in long hours. One day in a meeting he dropped dead. So what did he get out of all those hours? No thank you, not for me. I work hard and go home. You should too.
Feb. 29, 2012
Feb. 29, 2012
We recognize the importance of transparency and our mission is all about empowering users — both with tools and with information. The Ford Foundation is supporting Mozilla to develop the Collusion add-on so it will enable users to not only see who is tracking them across the Web, but also to turn that tracking off when they want to.
Feb. 29, 2012
Feb. 29, 2012
Samuel Beckett had the right attitude: “Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.”
Feb. 24, 2012
Feb. 24, 2012
The problem with praising kids for their innate intelligence — the “smart” compliment — is that it misrepresents the psychological reality of education. It encourages kids to avoid the most useful kind of learning activities, which is when we learn from our mistakes.
Feb. 24, 2012
Feb. 24, 2012
The physicist Niels Bohr once defined an expert as “a person who has made all the mistakes that can be made in a very narrow field.” Bohr’s quip summarizes one of the essential lessons of learning, which is that people learn how to get it right by getting it wrong again and again.
Feb. 24, 2012
Feb. 24, 2012
Your responsibility will be limited only by your ability.
Feb. 22, 2012
Feb. 22, 2012
Even though we recognize that we are inexcusably greedy, we still want to have it all. About two and a half years ago, we set out to create the language of our greed. It’s not complete, but it’s time for a 1.0 release — the language we’ve created is called Julia. It already delivers on 90% of our ungracious demands, and now it needs the ungracious demands of others to shape it further. So, if you are also a greedy, unreasonable, demanding programmer, we want you to give it a try.
Feb. 19, 2012
Feb. 19, 2012
if files have not changed, Git doesn’t store the file again—just a link to the previous identical file it has already stored.
Feb. 10, 2012
Feb. 10, 2012
Git thinks of its data more like a set of snapshots of a mini filesystem. Every time you commit, or save the state of your project in Git, it basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot.
Feb. 10, 2012
Feb. 10, 2012
As you learn Git, try to clear your mind of the things you may know about other VCSs, such as Subversion and Perforce; doing so will help you avoid subtle confusion when using the tool.
Feb. 10, 2012
Feb. 10, 2012
However, this setup also has some serious downsides. The most obvious is the single point of failure that the centralized server represents. If that server goes down for an hour, then during that hour nobody can collaborate at all or save versioned changes to anything they’re working on. If the hard disk the central database is on becomes corrupted, and proper backups haven’t been kept, you lose absolutely everything—the entire history of the project except whatever single snapshots people happen to have on their local
Feb. 10, 2012
Feb. 10, 2012
Some of the goals of the new system were as follows: Speed Simple design Strong support for non-linear development (thousands of parallel branches) Fully distributed Able to handle large projects like the Linux kernel efficiently (speed and data size) Since its birth in 2005, Git has evolved and matured to be easy to use and yet retain these initial qualities.
Feb. 10, 2012
Feb. 10, 2012
Salary Negotiation: Make More Money, Be More Valued
Jan. 29, 2012
Jan. 29, 2012
It is widely believed that modern society has a larger quantity of knowledge than more primitive societies, that this quantity of knowledge is growing, and that the knowledge "required" for the average citizen to live in a modern society is also growing.
From Knowledge And Decisions
Jan. 16, 2012
Jan. 16, 2012
人,总是跳不出自己的思虑之茧。从这个意义上说,百助和秀隆毫无二致。一个太信任他人,另一个则疑心太盛,可是,两人都没有意识到这一点。
Jan. 13, 2012
Jan. 13, 2012
To bring this back to programming languages, one thing that always bothers me is why new ones keep appearing. I start saying things like "I guess language n-1 wasn't that great since language n came along and people jumped to it".
Jan. 11, 2012
Jan. 11, 2012
Notice that by making this machine more versatile, we've also slowed it down. Using the same oscillator, it adds numbers at only one-fourth the speed of the first automated adder I showed in this chapter. This is the result of an engineering principle known as TANSTAAFL (pronounced tans toffle), which means "There Ain't No Such Thing As A Free Lunch." Usually, whenever you make a machine better in one way, something else tends to suffer as a result.
Jan. 10, 2012
Jan. 10, 2012
夏日的阳光透过树枝的空隙,把刺目的光线投射到地上,使官兵卫想起了方今的秀吉。此人运势极强,又有超群的能耐,今后的动向,值得一睹……
Jan. 10, 2012
Jan. 10, 2012