Hacker News new | ask | show | jobs
by ubernostrum 5551 days ago
The biggest problem is that web2py openly encourages learning practices which do not transfer over into general Python programming and, in fact, are the literal opposite of how actual Python programmers work. Things like magic imports seem great at first, of course, but in the long run A) get you lost quickly if you ever have to write real Python and B) have the same problem any bit of hidden magic does: sooner or later something's going to go wrong and you're going to have one hell of a time figuring out which bit of implicit "helpful" code is causing it.
1 comments

Has anyone actually run in to this problem or is it speculative?
It's like running with the scissors. I'm not sure if anyone ever hurt themselves that exact way, but any grown up person knows it's a bad idea and you should not try it (or a similar action). If the general idea can be explained and makes sense, do you really want to look for specific examples where doing the opposite failed?

You could probably check the number of questions about php's autoloader on stackoverflow to get an idea why magic is not good.