4 ms·
That seems like unnecessary use of metaprogamming and DSLs in my opinion[0]. That problem could be solved with good ol' object-orientation. Also, capturing blo
by rubiquity 12y ago
That seems like unnecessary use of metaprogamming and DSLs in my opinion[0]. That problem could be solved with good ol' object-orientation.
Also, capturing blocks and instance_eval are notoriously slow.
0 - https://www.youtube.com/watch?v=yuh9COzp5vo https://www.youtube.com/watch?v=yuh9COzp5vo
1 - https://speakerdeck.com/sferik/writing-fast-ruby https://speakerdeck.com/sferik/writing-fast-ruby
- grandpa 12y ago> Also, capturing blocks and instance_eval are notoriously slow. ...and, in this case, are evaluated once, at startup. It's so fast that you couldn't possibly notice a difference.