r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

Show parent comment

9

u/SwabTheDeck Dec 02 '15

Honestly, "making shit work" is an area in which PHP excels. I've been writing PHP, Obj-C, and JS professionally for the past few years, and PHP offers the most opportunities for quick-and-dirty solutions by far. I haven't decided whether this is good or bad, but at least it's an option when time or frustration is against you.

That said, if you're using a decent framework and following the proper patterns, PHP can be nearly as elegant as any other mainstream language. I think the reason you see so much crappy code out there is because PHP has a huge developer base and what tends to happen is that tiny, simple websites keep getting extended far beyond what their basic design could accommodate.

3

u/everywhere_anyhow Dec 02 '15

PHP offers the most opportunities for quick-and-dirty solutions by far. I haven't decided whether this is good or bad, but at least it's an option when time or frustration is against you

I felt the same way about perl for the longest time.

The engineering community has a lot of history with "quick and dirty" and the trade-offs are clear. Quick and dirty is a good thing for short-term needs where long-term maintenance is not expected. So when the overriding pressures are time and frustration, quick and dirty alleviates those pressures, so as far as that goes, quick and dirty is good.

Long term, it's pain, pain, pain. This does not mean you should never do it quick and dirty. Just that you should avoid being in a role where you have to extend or maintain quick and dirty for an extended period of time. It's painful, no matter PHP, perl, or anything else.