Prepare Scheme Environment on Mac

Structure and Interpretation of of Computer Program (SICP) is a classic textbook in computer science. It was formerly used in the introductory programming class of Massachusetts Institute of Technology (MIT) and other schools. Scheme, one of the main dialect of Lisp, was chosen as the language in this book. If you want to “enjoy” this classy ...
「點我閱讀更多」

Erb tips for Sinatra Users

Sinatra provides different perspective and workflow to Web development with a tiny and elegent domain specific language for HTTP(s) actions. Although no strict MVC pattern enforced, Sinatra supports many template languages for its dynamic views. Among these template languages, Haml and Slim are popular choices because their succinct Ruby-like ...
「點我閱讀更多」

Test-Driven Development (TDD) in CoffeeScript with Jasmine

Test-driven developememnt (TDD) is a software development process. In this process, you write automated tests for expected functions; then, you write minimal code that satisfy these tests; finally, you refactor your code to meet your need (and still suffice your tests. Initially, developing in TDD way needs to write some extra code as tests; h...
「點我閱讀更多」

A Simple Comparision Among AWK, Perl, Ruby, and Python

Recently, I saw a interesting post on StackOverflow, which compares the difference among sed, AWK, Perl, Python. I decided to learn the “old tricks”. Then, I tried some simple tasks in AWK, Perl, Ruby, and Python. Why Ruby among these? Although Ruby is not a standard tool in a tranditional Unix toolbox, Ruby becomes more popular among these ...
「點我閱讀更多」