3 ms·
I'm talking about stuff like passing instance variables from controllers to views, method_missing, monkey patching, use of send, and meta programming. This magi
by treis 6y ago
I'm talking about stuff like passing instance variables from controllers to views, method_missing, monkey patching, use of send, and meta programming. This magic makes code pretty and allows a lot of stuff to just work. But when you have to debug or update code that someone else wrote it makes it really difficult to see what's going on.
As an example, if you what to refactor a method it's impossible to be 100% confident that you've found all the places it's used. That makes it very hard to be productive as the team size grows or when you're working in legacy code bases.