Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PHP should get the COBOL treatment. Keep the existing software, but... Why would you use it for anything new, when almost anything else would serve better?
PHP: a fractal of bad design (fuzzy notepad)
Posted Apr 17, 2012 7:40 UTC (Tue) by khim (subscriber, #9252)
PHP awfulness and it's popularity are two sides of the same coin: PHP is built to keep chugging along at all costs. When faced with either doing something nonsensical or aborting with an error, it will do something nonsensical. Anything is better than nothing.
This is what makes it usable for non-programmers (it's actually pretty easy to create something which works if you use it just right) and this is what makes it bad fit for the large projects. Sadly successful small projects tend to grow thus we are stuck with this abomination.
Posted Apr 17, 2012 9:20 UTC (Tue) by tialaramex (subscriber, #21167)
Excel has lots of the same frustrating properties. For example reluctance to announce failure (always better to eat reference errors, invalid inputs, etc. and spit out a superficially plausible answer anyway). But backwards compatibility is vital, so most of the problems can never be fixed, or if they are, they'll cause even more unexpected pain and misery for existing users.
Posted Apr 17, 2012 15:47 UTC (Tue) by drag (subscriber, #31333)
Most people would think that the large banks, financial execuatives, and top teir accountants would use all sorts of fancy custom software for doing taxes, accounts, figuring out contracts and business loans...
This is far from the reality.
The truth is that while they have custom apps like any other large business, Excel front-end tied to real databases is the principal application. That is app #1.
Posted Apr 17, 2012 16:58 UTC (Tue) by sorpigal (subscriber, #36106)
(3) Viewable by Timmy the intern
(3) Deletable by Timmy the intern
(3) Gone (and no one can find Timmy)
This is what happens when rank amateurs are left in charge of database design on a DBMS which allows you to get away with anything and relegates access control to an optional afterthought.
To keep this topical, I think the bad reputation of PHP web apps can be partly blamed on MySQL. If ever a language like PHP could meet its perfect partner in doing friendly disservice to its users, mysql is it.
Posted Apr 17, 2012 10:31 UTC (Tue) by bersl2 (subscriber, #34928)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds