2008-03-30

Basics of the Unix Philosophy

关键字: unix
Rule of Modularity: Write simple parts connected by clean interfaces.As Brian Kernighan once observed, “Controlling complexity is the essence of computer programming” [Kernighan-Plauger]. Debugging dominates development time, and getting a working system out the door is usually less a ...
2008-03-24

Ruby Quiz---Solving Tactics

关键字: ruby quiz
There is a pencil and paper game, Tactics, played on a 4×4 grid. The play starts with an empty grid. On each turn, a player can fill in from one to four adjacent squares, either horizontally or vertically. The player who fills in the last square loses. Your task is to write a Ruby program that, give ...