The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

ON DELETE CASCADE in MySQL? by Michiel2005-02-28 12:32:17
  Yes, by LionsPhil2006-11-19 12:55:59
    Hm... by Michiel2005-02-28 12:44:16
      PHP itself is a PITA for anything nontrivial, mind by LionsPhil 2005-02-28 13:08:15
Have an excerpt from my Uni wiki (my contribution, edited)...
Seeing as people keep asking why I think that PHP Fails It, here are some reasons (I think it's fine for "SSI with extra bits", but not as a serious web application development language, even for relatively trivial applications like online discussion forums):

(Firstly, this list was drawn up while PHP 5.0 was very new and very buggy, and thus largely unavailible for any real business application (i.e. now).)
  • Horribly inconsistent API. Half the functions are of the form array_thingy, half arraythingy, and some plain thingy thrown in for good measure. (While Java's API has cruft in it, it's not this bad. Perl has no such sillyness, with a small core of functions and proper, modular use of packages (each with its own namespace) to add to it.)
  • Appalling MySQL integration. No placeholder binding! You're just BEGGING for someone to inject malicious SQL. There's no decent database abstraction layer like JDBC or Perl DBI.
  • Concerning implementation. There are crazy limitations that stink of a poorly implemented underlayer. For example, the way you can't do foo->bar()->baz(), where foo->bar() returns something you can do baz() to. (Neither Perl nor JSP are thusly broken.)
  • Virtually no type-checking. While scripting languages are not known for good type-checking, any serious project requires actual programming not hacking. PHP forces you to do the latter. (Perl allows some type-checking; JSP's is much stronger.)
  • No exceptions. This is error handling dating back to the BASIC days. (Meanwhile, JSP and Perl allow throwing exception objects.) Even in PHP5, they aren't thrown by most standard functions.
  • You can't pass NULL as an argument when the function expects a reference.
All in all, PHP is a language designed and implemeted by and for script kiddies. OK for a quick hack (heck, my website uses it), but no good for real web application development.
Holy warriors, light your torches! ;)
[ Reply ]
        Well, I don't have time to learn another language by Michiel2005-02-28 13:26:35
          Yeah, sort of. by LionsPhil2005-02-28 13:30:20
          pay no attention to the perl devotee by deadweasle2005-02-28 13:32:49
            Nice ad-hom there. by LionsPhil2005-02-28 13:34:17
              I use a word like squonkified and... by deadweasle2005-02-28 13:46:33
                ColdFusion is like that? by LionsPhil2005-02-28 14:58:54
                  ColdFusion also uses things like by rorajoey2005-02-28 19:52:04

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)