原创 JavaScript: The Good Parts 讀書筆記(1)

the good part: 1.functions It is Lisp in C's clothing.呵呵,披着c外衣的li

原创 今年的願望

突然感覺自己還太不成熟了,有時候也會經常想起自己還有很多責任,但是沒幾天又拋到一邊了。 現在就寫下來吧,希望能提醒下自己。 今年的計劃:

原创 明天去看燕姿...嘿嘿

第一次那麼奢侈..明天去看燕姿...嘿嘿 (*^__^*) [img]http://www.iteye.com/upload/attachment/

原创 irb中不能顯示歷史命令

前幾天從源碼安裝了ruby1.9, 但是在irb下,按向上的方向鍵,顯示不出歷史命令,而是[[A,弄了好幾天,弄死我了,論壇裏好像也搜索到一個帖子也是

原创 Java的動態代理機制

       第一篇blog文章,自己是個菜鳥,希望大家能有指出文章中的錯誤,大家一起進步。   上圖是代理模式的實現,代理模式主要是用於客戶端對真實對象訪問之前進行一些控制,例如日誌輸出,權限控制等,如上圖,客戶程序只能通過Subje

原创 no such file to load -- zlib (LoadError)

ubuntu下從源碼安裝ruby:./Configure –prefix=/usr/local/ruby-1.9.1sudo make && make

原创 JavaScript: The Good Parts 讀書筆記(2)

第2章沒什麼東西,第三章主講了下object literal還有prototyep,基本沒什麼太多內容,都是犀牛書上講過的,倒是瞭解到了一個小細節:我

原创 stack的java實現

import java.lang.Exception;class MyStack{ private static final int MAX_SIZE = 5; private int[] t = new int[MAX_SIZE]; p

原创 JavaScript:The World's Most Misunderstood Programm

[size=x-large]JavaScript:The World's Most Misunderstood Programming Languag

原创 Class access

However, if a static member of that class(class which has no access specifi

原创 2.5

Show that we can represent pairs of nonnegative integers using only numbers and arithmetic operations if we represent t

原创 split真詭異, - -!

''.split(',').length 返回的竟然是一個長度爲1的數組。 - -!

原创 JavaScript: The Good Parts 讀書筆記(3)

第四章主要講的是Function. function有四種調用的pattern,重點是要注意這4種pattern下,function中的

原创 1.6

Alyssa P. Hacker doesn't see why if needs to be provided as a special form.

原创 SICP習題1.5

(define (p) (p)) (define (test x y) (if (= x 0) 0 y)) (test 0 (p))      分別在使用applicative-order