Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby on Fails

Name: Anonymous 2012-11-30 17:37

http://www.amazon.com/Ruby-Fails-Case-Studies-Enterprise/dp/0596000279

Ruby on Fails: 78 Case Studies in the Enterprise
Thomas Watson, Larry Ellison, Linus Torvalds, Theo de Raadt
forward by Donald Knuth

Book Description
Emerging web technologies promise so much, yet often deliver little. This book is a careful selection of 78 case studies of web applications in the enterprise where Ruby on Rails has failed to perform to expectations.

Name: Anonymous 2012-12-01 8:22

>>16

But there's also more than one way to do it in Lisp: a classic example is implementing a pair in scheme, with operations left and right to get the left and right part, respectively.

Cons-cell-based:

 (define pair cons)
 (define left car)
 (define right cdr)


Vector based:

 (define pair vector)
 (define (left x) (vector-ref x 0))
 (define (right x) (vector-ref x 1))


Closure based:

 (define (pair x y) (lambda (c) (if c x y)))
 (define (left p) (p #t))
 (define (right p) (p #f))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List