On 05/28/2014 10:57 AM, Levi Pearson wrote:
I'm not seeing anything here that fundamentally disagrees with your quote of Stuart. PHP started out extremely brain-damaged and reached the height of its popularity in that state. A whole lot of really bad code was written and a whole lot of people learned it as their first exposure to programming. It remains backward-compatible with all that, and a lot of people who had no idea what they were doing but managed to slap some pages together and get paid for it are happy to share how they did it. There are sensible alternatives available now in PHP to people who know how to recognize them, but it's not an environment I'd recommend a novice wade into unprepared, especially since there are very nice ways to build web services in other languages without all the baggage.
I'm not disagreeing with the gist of his message. I'm just saying that there are a lot better examples than addslashes(), which actually made a little bit of sense.
Steve /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
