6 ms·
I haven't written any ruby for over a decade and a half, when ruby 2.x was still on the horizon. But I do know the source of "eigenclass". It was first jokingl
by empw 2y ago
I haven't written any ruby for over a decade and a half, when ruby 2.x was still on the horizon. But I do know the source of "eigenclass". It was first jokingly used in an odd instructional programming book / web comic / experimental art piece by "why the lucky stiff" who was briefly prominent in ruby-land then erased himself from the internet. It's funny that it has now become an established term of art for Ruby people.
- nixpulvis 2y agoI remember reading WPGTR in college. Really inspired me to play around and learn the language. I've always kept my printed copy in a safe place.
- adriand 2y agoI read it after college when I first started working with Rails 1 after I joined a friend’s company. Funny to think that was almost two decades ago. I still remember the quirky art style, although I will admit to preferring a more prosaic book when I learned the language. But it was a fun community and the sense of creativity was really apparent.
- KerrAvon 2y ago_why's influence is indelible.
- insane_dreamer 2y agoloved _why’s stuff back when he was still around.
- Lio 2y agoI still refer to the * operator as “splat” after a presentation I saw him give in London in 2007. _why is most definitely gone but not forgotten.
- riffraff 2y agoI thought splat was actually the "official" usage these days, tho I think some people call it spread
- byroot 2y agoIt is yes [0]. > You can turn an Array into an argument list with * (or splat) operator > You can turn a Hash into keyword arguments with the * (keyword splat) operator: It's also named spat across the MRI codebase, e.g. `VM_CALL_ARGS_SPLAT` etc. [0] https://docs.ruby-lang.org/en/master/syntax/calling_methods_rdoc.html#label-Unpacking+Positional+Arguments https://docs.ruby-lang.org/en/master/syntax/calling_methods_...
- dragonwriter 2y agosplat is the official name in Ruby, spread comes from the similar JS construct (obviously, lots of people using Ruby also use JS, so its natural for terminology from one context to sometimes get applied to similar concepts in the other even where it isn’t official.)
- Etheryte 2y agoIt's called spread in Javascript [0], where the keyword is `...`. [0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- lloeki 2y agoSunny Ripert paid a wonderful tribute to _why as a talk at ParisRB 2020. https://m.youtube.com/watch?v=njr39cVU7d0 https://m.youtube.com/watch?v=njr39cVU7d0 It was not so much aimed at the "old guard" (those that knew about _why) as the "next generation" (those that never heard of him). At some point Sunny asked to raise hands if one knew about _why, maybe half did, tops. By the end of the talk the emotion in the room was palpable.