4 ms·
One of the worst examples I've seen is the functional programming paradigm being crowbarred out of PHP .. why. Most likely related to the Innter-platform effec
by mootothemax 14y ago
One of the worst examples I've seen is the functional programming paradigm being crowbarred out of PHP .. why.
Most likely related to the Innter-platform effect: ...the tendency of software architects to create a system so customizable as to become a replica, and often a poor replica, of the software development platform they are using.
http://en.wikipedia.org/wiki/Inner-platform_effect http://en.wikipedia.org/wiki/Inner-platform_effect
One of the classic PHP examples being the Smarty templating system:
Smarty has been criticized for replicating features that PHP does natively very well, which leads to inefficiency:
http://en.wikipedia.org/wiki/Smarty http://en.wikipedia.org/wiki/Smarty
- billpatrianakos 14y agoGetting functional programming from PHP and Smarty are two very different things. I don't know how people shoehorning PHP into the functional paradigm is an example of the inner platform effect. I could see where it fits with Smarty but in defense of pretty much all PHP templating engines, they really are helpful despite mimicking native functionality. If you work with someone who is a front-end only person they'll appreciate being able to get up and running with Smarty quickly as its similar to templating languages for most other languages and you'll be happy not to have straight up PHP code in your HTML. Granted, the PHP does what the Smarty tags do but the cleanliness of the code really does make a noticeable difference and Skarty tags are far easier to pick out than PHP tags within HTML. So it really isn't all about the functionality there which is why I think your argument is weak.
- anthonyb 14y agoHey bill - looks like you've been hellbanned. Something that you said on http://news.ycombinator.com/item?id=4213223 http://news.ycombinator.com/item?id=4213223 ticked someone off. Maybe talk to info@ycombinator.com and get it sorted out. PHP still sucks though ;)