3 ms·
Although he does helpfully preface several with 'this is a bad example' and 'this is not really a good idea'. I like how #1 is about 'taking the pain out of th
by pvg 17y ago
Although he does helpfully preface several with 'this is a bad example' and 'this is not really a good idea'.
I like how #1 is about 'taking the pain out of the process' where the 'pain' to be removed appears to be 'the method name that describes what your code is doing'.
I also learned that "Array#*, when supplied with a number, multiplies the size of the array by duplicate elements". I can only assume this is a very common and useful operation out there in GPU Vector Magic Land.
I was somewhat disappointed that #12 suggested using ranges for number comparison instead of the obviously more idiomatic solution of manipulating metaclasses so every number has a working 'decade' method.