{{ ty's engineering log }}

non-optimized bits & pieces of my techincal side

Thursday, August 19, 2010

Back to Basics

›
Enough is enough, i seriously don’t think i’m built to use any online blogging engines. Simply because i’m built to prefer typing in my term...
Friday, August 13, 2010

Benchmarking any rake task

›
While writing serializable_proc , i wanted to find out how the RubyParser-based implementation fair against ParseTree-based one, here's ...
Friday, August 6, 2010

Reliably getting a formatted time string in ur desired lang

›
Today, i'm spent quite abit of time playing with the very simple Time#strftime : 1 2 puts Time .now.strftime( " %B %d, %Y %H:%M ...
Wednesday, August 4, 2010

Bitten by Array#*

›
Have u tried Array#* ? Its a pretty cool way to return an array, built by concatenating the original array by n times: 1 2 3 4 5 a = [ 1 ]...
Wednesday, July 28, 2010

Lazy evaluating with Enumerable#any?

›
Most of us know this: 1 2 3 4 5 6 7 8 class Awesome def self . m1 ; true ; end def self . m2 ; raise Exception ; end...
Thursday, July 22, 2010

Everyone should start writing macros

›
Did some cleaning & catching up of specs for railsbestpractices.com yesterday, added quite a number of spec macros to dry up stuff, as ...
Wednesday, July 21, 2010

Relatively unknown Object#instance_exec

›
Do u happen to know Object#instance_eval 's brother, Object#instance_exec ?? Here's a uninteresting way of coding wo Object#instanc...
›
Home
View web version
Powered by Blogger.