HN white knights JavaScript but hates PHP. I can't figure it out. Each language is horrible in similar ways.
Rambling On [PHP] Internals
81–90 of 169 posts
Re: Rambling On [PHP] Internals
#82Re: Rambling On [PHP] Internals
#83Earlier quoted context omitted.
Facebook is entirely written in PHP. It uses all sorts of databases and other systems to handle stuff, but so does every other website. It's still written in PHP. Facebook has their own PHP fork, which they use/and modify. I do not believe that Facebook pushes their modifications to PHP as a whole.
Those "databases and other systems" make up a significant portion of their code base, and in many cases Facebook either contributes to their development or created them internally. To claim that Facebook is written entirely in PHP is false. Examples: - Cassandra (Java) was created by Facebook http://en.wikipedia.org/wiki/Apache_Cassandra - Giraph (Java) has significant contributions from Facebook and I believe was fo…
The backend is written in everything from Erlang to C++.
Re: Rambling On [PHP] Internals
#84HN white knights JavaScript but hates PHP. I can't figure it out. Each language is horrible in similar ways.
I've used both. Each of these languages has its quirks. But JS's design makes PHP's design look like it was done with crayons.
Re: Rambling On [PHP] Internals
#85Writing in PHP is a war against the platform - that's why PHP code tends to look like a battlefield...
Taking one of the worst language out there , and creating these well crafter libraries , that's insane. I think type hinting and basic POO saved PHP.
Re: Rambling On [PHP] Internals
#86Re: Rambling On [PHP] Internals
#87Earlier quoted context omitted.
All the "forum" software that I have seen (opposed to more "ephemeral discussion" software like HN/Slashdot/Reddit) provides such a goddamn awful reading/browsing/discoverability experience that any benefits it may have over mailing lists are completely lost. Just for starters, mailing lists allow the discussion to thread (as do sites like HN, Slashdot, and Reddit) and don't force you to use a shoddy web interface th…
I'm not all that happy with mailing lists. Mail clients generally think of a "thread" as a list, which works OK for a back and forth discussion between two people, or for a discussion among a small group of people that are focused on a narrow problem. For a thread that gets big (in participants or in scope), that tends to suck. A tree is a better representation. A second problem with mailing lists is that unless you…
Re: Rambling On [PHP] Internals
#88Re: Rambling On [PHP] Internals
#89I read php-internals every day, and.. this is totally understandable. There's a lot of opinionated people on that list with totally different visions - nikic, stas, that one guy Lester who is convinced 5.3 and E_STRICT was the worst thing in the world... PHP just appeals to too many people to have a consensus. Possibly the point this was made most clear was when the property accessors RFC was declined on a hairpin vo…
Ahahaha, it's all coming back now. I used to find his emails funny.
I also remember why I unsubscribed from php-internals as well, though...
Re: Rambling On [PHP] Internals
#90PHP is addictive. You can create whole web app in one PHP file from scratch and it will have everything including API and DB management layer and be secure and fully functioning. And it will work on all servers and on all operating systems. Millions are made by average developers developing themes and plugins for wordpress. Hard to beat all that. #drama is for queens :)
And it's very, very difficult to do that properly, because PHP seems to go out of its way to make all of those things (APIs, DB management, security, functioning) difficult.
>And it will work on all servers and on all operating systems.
Except for UNIX, where function X does Y instead of Z, which it does on Windows. Usually, except in PHP 5.5 and above.
WARNING! If php.ini variable A is set to B, then the above does not apply and instead behaviour C takes effect.