1,035 karma · joined Mar 11, 2009 (17y ago) · 496 submissions
comment 6y ago · link · parent
There're optimizations on the storage level, compression etc, but on logic level those are transparent
comment 6y ago · link · parent
There're some actually exotic data structures, like pseudo-hashes. And perl can do this! $x = \$x
But having switched to ruby 15 years ago I never missed this particular quirk.
comment 6y ago · link · parent
So, from all the perspectives, they are just functions. But they're not defined as such usually, only because it'd be slightly awkward in ruby for those functions(methods, actually) to have private functions inside. Because there's no import mechanism in ruby, only mixins, which "imports" all the private methods in the module as well, polluting namespace of your class.
As a side measure, those service classes usually have a class method "call", which just passes all the args to the new instance of the class and calls the "call" on it, so you can later just do "ServiceObjectClass.call(args)" or even weirdly looking "ServiceObjectClass.(args)"
It looks very awkward IMHO, but I haven't seen better alternatives yet.
comment 6y ago · link · parent
comment 6y ago · link · parent
Metasearches more or less killed OTA's since. Nobody cares about user experience anymore, if tickets are 1 dollar cheaper on some other OTA, traffic will go there.
comment 6y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
I've actually taught how to use git to many teams, and I always start with merkle trees. They are actually easy to grasp even for designers and other nontechnical people, and could be explained in 10 minutes with a whiteboard. And then suddenly git starts to totally make sense, and I'd dare to say, become intuitive.