I love how in Ruby doing class DoesStuffService def call(x, y) # ... end end is good design but if you do def do_stuff(x, y) end you're a monster
-
-
Replying to @sgrif
Although I mostly agree, ensuring everything is in a class/module does at least give us a bit of consistency and less chance of conflicts given that in Ruby everything is dumped into the global namespace once it's been required anywhere
2 replies 0 retweets 0 likes -
Replying to @BobWhitelock @sgrif
Would be nice if we had better namespacing in Ruby and then there would be no reason not to just use functions when needed, rather than objects pretending to be functions, but oh well
1 reply 0 retweets 0 likes
The problem isn't even a lack of namespacing, but scoped imports. Diesel has a lot of DSLs where you might want to import things for a single function that make no sense as permanent methods on your object
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.