r/ProgrammerHumor • • Mar 27 '13

If PHP Were British

http://www.addedbytes.com/blog/if-php-were-british/
63 Upvotes

14 comments sorted by

7

u/nuclear_splines Mar 28 '13

You know, it would be awful, awful form to do this, but I'm tempted to put #defines in my code just so I can end cases with splendid;

1

u/themismatch Mar 29 '13

Can you do this in PHP?

2

u/Kwpolska Mar 29 '13

Everything in this article can be done if you will bother modifying the source code of the interpreter and recompiling it.

5

u/[deleted] Mar 27 '13

I... Actually think something along the lines of "hereditary" makes more sense.

2

u/escozzia Mar 27 '13

You're right, you know. I wonder why 'protected' ever came in use in the first place.

Private makes sense, as does public, but protected? Protected from whom? Evidently from outside classes, but counter-intuitively from children as well

1

u/[deleted] Apr 13 '13

Be glad it never ended up with "friend" classes. What's makes it a friend? Friends can access each other's privates.

4

u/[deleted] Mar 27 '13

Some of these really would help the language. I never could take preg_replace, preg_match and so on seriously---not to mention I kept expecting there to be a preg_abort function.

2

u/[deleted] Mar 28 '13

I laughed way harder than I should have.

1

u/Kwpolska Mar 29 '13

human_regexp_*() and wheatley_regexp_*() would be much better.

3

u/louiswins Mar 29 '13

I lost it at upper_class. Beautiful.

1

u/[deleted] Apr 15 '13

Why would the British use 'nouveau'? That's a (dirty) French word!

2

u/Laugarhraun Jun 13 '13

http://en.wiktionary.org/wiki/nouveau

Borrowing from French nouveau. Recognized as English in 1828.

(no, I'm not late to the party)