Live data from Hacker News

Rambling On [PHP] Internals

blog.ircmaxell.com

81–90 of 169 posts

Re: Rambling On [PHP] Internals

#83

Earlier 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…

Alright, let me correct myself then. The "frontend" of Facebook is written entirely in PHP.

The backend is written in everything from Erlang to C++.

Re: Rambling On [PHP] Internals

#84

HN 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.

I will never forgive JS for the `this` pointer.

Re: Rambling On [PHP] Internals

#85

Writing in PHP is a war against the platform - that's why PHP code tends to look like a battlefield...

That's why i'm impressed with Symfony and Doctrine.

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

#86
Move to Python, I'm sure the community can benefit from your skills. I see no future in PHP development. If the core is rotten ,you can have the best libs in the world (symfony,doctrine,...) in the end you still need to face PHP architectural problems. Or back to the JVM maybe.

Re: Rambling On [PHP] Internals

#87
post #44
post #23

Earlier 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…

Gmane has NNTP feeds for all their mail list archives: http://gmane.org/features.php

Re: Rambling On [PHP] Internals

#88

Earlier quoted context omitted.

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.

I will never forgive JS for the `this` pointer.

I will never forgive PHP for all kinds of shit.

Re: Rambling On [PHP] Internals

#89
post #65

I 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…

>that one guy Lester who is convinced 5.3 and E_STRICT was the worst thing in the world

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

#90
post #14

PHP 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 :)

>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'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.

Post reply on HN