4 ms·
I totally agree. The fact that it's not possible to determine the location of a method being called inside a file until it is run perfectly illustrates the pro
by qudat 3y ago
I totally agree. The fact that it's not possible to determine the location of a method being called inside a file until it is run perfectly illustrates the problem with a hyper-dynamic language like ruby. It's a dream for people who love metaprogramming to do things magically, but a nightmare for anyone later inheriting that project.
I have a rant about it: https://bower.sh/on-autoloading https://bower.sh/on-autoloading
And don't get me started on the footgun that is ActiveRecord callbacks: https://guides.rubyonrails.org/active_record_callbacks.html https://guides.rubyonrails.org/active_record_callbacks.html