What is Toluu?
Toluu is a free service for sharing the feeds you read and discovering new ones.
Get Invite

raganwald.com

Code and words about code from Reg "raganwald" Braithwaite


You can't be serious!?November 28
In Practical Recursive Combinators, we enhanced multirec (a/k/a “Divide and Conquer”) and linrec (“Linear Recursion”) to accept as arguments any object that supports the #to_proc method. Today we’re going demonstrate why: We will look at how removing the ceremony around lambdas makes using combinators like multirec more valuable for code we share with others.
raganwald?i=pHfmN raganwald?i=SUxZn raganwald?i=3mnXN raganwald?i=sGR3n raganwald?i=a1r0n raganwald?i=FdgsN
Links for 2008-11-27 [del.icio.us]November 28
468038116
Practical Recursive CombinatorsNovember 27
In Refactoring Methods with Recursive Combinators, we saw how recursive combinators like #divide_and_conquer and #linear_recursion are abstraction wins. In this post, we’re going to optimize our combinators’ performance and make them a little easier to use with goodies like string_to_proc. To do that, we’re going to work with closures, defining methods with define_method, and implement functional programming’s partial application. We’ll wrap up by converting linrec from a recursive to an iterative implementation.
raganwald?i=u7zcN raganwald?i=SipBn raganwald?i=JkDrN raganwald?i=sunln raganwald?i=Xc09n
Links for 2008-11-24 [del.icio.us]November 25
464703954
Links for 2008-11-23 [del.icio.us]November 24
463543273