ASP vs. PHP

Status
Not open for further replies.

puffinus

Ars Praefectus
4,381
Subscriptor
[url=http:/civis/viewtopic.php?p=27445425#p27445425:3nl5zmpd said:
ShuggyCoUk[/url]":3nl5zmpd]
[url=http:/civis/viewtopic.php?p=27442887#p27442887:3nl5zmpd said:
Ardax[/url]":3nl5zmpd]Well, since we're having this PHP discussion here, and I just found this little nugget...

[url=http://news.php.net/php.internals/70691:3nl5zmpd said:
Rasmus[/url]":3nl5zmpd]Back when PHP had less than 100 functions and the function hashing mechanism was strlen(). In order to get a nice hash distribution of function names across the various function name lengths names were picked specifically to make them fit into a specific length bucket. This was circa late 1994 when PHP was a tool just for my own personal use and I wasn't too worried about not being able to remember the few function names.
(emphasis mine)

;_;

I think I threw up a little

Then you might want to stay away from this:
(description of how the PHP devs "solved" an overflow problem)

http://use.perl.org/use.perl.org/_Arist ... 33448.html
 

Rubel

Ars Scholae Palatinae
857
[url=http:/civis/viewtopic.php?p=27440745#p27440745:2bijax8q said:
Pont[/url]":2bijax8q]PHP works. Rather, it can be made to work. Being OSS and widely used, it's had its critical bugs fixed. It's not as bad as some closed source, proprietary package from a dead company that was last updated in 2007.

Agreed. A lot of people would really just rather have something simple that works decently (like PHP-based Joomla) as the foundation of a website than design everything with with a more modern and fancy language and framework. Letting perfect be the enemy of good enough, or however that expression goes.
 
[url=http:/civis/viewtopic.php?p=27453047#p27453047:24wd5kmr said:
Rubel[/url]":24wd5kmr]
[url=http:/civis/viewtopic.php?p=27440745#p27440745:24wd5kmr said:
Pont[/url]":24wd5kmr]PHP works. Rather, it can be made to work. Being OSS and widely used, it's had its critical bugs fixed. It's not as bad as some closed source, proprietary package from a dead company that was last updated in 2007.

Agreed. A lot of people would really just rather have something simple that works decently (like PHP-based Joomla) as the foundation of a website than design everything with with a more modern and fancy language and framework. Letting perfect be the enemy of good enough, or however that expression goes.

That might have been a good excuse 10 or even 5 years ago, but nowadays its just as easy (or easier) to get your JVM, Python, or Ruby web application hosted through something like Heroku or OpenShift. Django, Play, and Rails are far better and simpler to get started with than the crapware that all the major PHP CMSes are (if your definition of "web developer" is more than "I can install and configure WordPress and plugins").
 

dmitriyk

Ars Tribunus Angusticlavius
8,804
I spent about nine years of my career in PHP hell. It was 2001 and I didn't know any better, so me and my company made it work. I ended up writing a huge body of PHP code (including direct JS DOM manipulation, for that matter) that ran three high-complexity, high-volume sites. So yeah, I was the shit.

And then I left the company and my eyes were opened to what good (as opposed to pragmatic) web development is like. And it was glorious. These days, when we need a website or a web service, we'll generally build it out using Scala on top of Play or Spray with jQuery and Bootstrap on the front end, if required. It's clean, fast, scalable, safe (!), and it makes sense.

It doesn't sound like mortress is around anymore, but I just wanted to offer that up to the forum. Four years ago, it might have been me defending PHP as a useful tool for making websites; I don't think it's because I was an idiot, but more that I wasn't exposed to the best practices. What I've been able to recognize since then is that PHP is an ungodly mess of crazy syntax and logical loopholes (the so-called "character," which I have exploited liberally in my days). However, what should be the first and last word in any discussion of PHP is how the language enabled and encourages developers to write unsafe code. So many of the tricks offered up as advice or solutions to developers rely on loosely-defined edge case behavior, as well as simple cockups like mysql_escape_string. It makes it simply impossible for me to trust 98% of the PHP code out in the wild. Nothing else needs to be said.
 
Status
Not open for further replies.