I've only used Ruby for a short while, but the mixin style seems really toxic to understanding where a declaration was made.
For example: I'm looking at someone's sourcecode and I see some reference to "foo". What is foo? Is it a variable? Is it a function? Where was it declared? I don't see any other reference to "foo" in this file I'm in, so it must be in one of the included modules. Inevitably I've found myself having to search through all the included modules source trying to figure out where "foo" came from and what it is.
View all comments
Show parent comment
1
u/HostisHumaniGeneris Apr 30 '14
I've only used Ruby for a short while, but the mixin style seems really toxic to understanding where a declaration was made.
For example: I'm looking at someone's sourcecode and I see some reference to "foo". What is foo? Is it a variable? Is it a function? Where was it declared? I don't see any other reference to "foo" in this file I'm in, so it must be in one of the included modules. Inevitably I've found myself having to search through all the included modules source trying to figure out where "foo" came from and what it is.
Maybe there's something I'm missing here.