Tuesday, January 29, 2008
Not all magic code is good
magic_quotes_gpc in PHP is a setting that I am guess is very useful for confusing the (4 letter word) out of you. Sure adding a decorator that magically converts your dictionary into JSON is great. However the magic quotes is something out of a horror story that grampa tells all his little coding grandchildren what not to do. Based on the php.net documentation it is even deprecated in the next major release. So much of programming so explicit that it is hard to image a feature would ever pop up. In passing data back and fourth to a database I can see this however this seem like a natural thing for the database interface to do. Specifically since there is already a function for handling this in almost all languages. I am done ranting for now.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment