by jrockway · 18y ago · 0 comments
My reading of the article was "I didn't know how to use Hibernate or ActiveRecord, but I tried anyway, and they didn't work right." Yeah, that's the software's fault, not yours. Riiight.
As for magic_quotes, the problem was it was too general, not that it was too magical. Have you ever written this:
run_query("SELECT * FROM foo WHERE foo=?", "'bar'")
Congratulations, the "'bar'" is magically quoted! It works because you are specifying exactly what you want quoted and why.All in all, this has got to be one of the worst articles I've ever read in my life. And that is saying a lot.
The idea here is not that abstractions are bad, it's that those that are frequently described by the people who made them as "smart" or "magic" are often not very helpful, and tend to do more harm than good. There are some exceptions, but good abstractions, while they may be described as "smart", don't usually include that in their name, and are rarely if ever called "magic".
The problem is not with these two packages, but with the developers who use them without taking the time to figure out exactly what they do. Just because something makes a task convenient or easy, does not mean you aren't required to understand how they work.
It's copy/paste, cargo-cult programming, and you can't blame the tools.