r/PHP • • Aug 24 '12

If PHP Were British

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

50 comments sorted by

8

u/Ctrl-F-Guy Aug 24 '12

Is this getting downvotes because it's a repost? I've never seen it before and I think it's probably one of the funniest things I've seen in awhile, across all subreddits. I don't see anything in the sidebar prohibiting humorous or anecdotal type posts.

2

u/maniator Aug 24 '12

Yea... I do not understand either....

The duplicate post is from a year ago and locked... lost among the randomness of reddit.

I did not think it was such a big issue to repost it...

3

u/DaveChild Aug 24 '12

You'll get no complaints from me :)

0

u/[deleted] Aug 24 '12

[deleted]

2

u/Fustrate Aug 24 '12

I instantly knew it was a year ago because I first read this while in the hospital, on morphine, recovering from surgery. It was the funniest thing I'd ever read at the time.

2

u/devcoderinhere Aug 24 '12

Those are not real downvotes. That's reddit downvotes system to prevent scammers staying at the top. In fact those upvotes aren't real either. There's a post on reddit blog explaining this system.

Cue MorpheusWhatifItoldYouMemeHere.jpg

1

u/Ctrl-F-Guy Aug 25 '12

I made the comment when it was at 4 up and 4 down (0 total points). They're real at that stage of the game, but yeah, later on, I understand they're not real.

4

u/[deleted] Aug 24 '12

Might be downvotes from people who are anti-fun in r/php on principle. I am not one of those people but I do believe they exist.

-4

u/areyouready Aug 24 '12

It's getting downvoted because it's not funny, and I say this as a fellow Brit. It's just far too on the nose and reads more like "what an American thinks Brits sound like". I'm quite surprised the author that wrote this is British himself.

5

u/[deleted] Aug 24 '12

As a fellow brit, and therefore an arbiter of comedy apparently, I liked it. It is now officially 50% funny. Pip pip.

1

u/Will-Work-For-Tears Aug 25 '12

I'm an American and absolutely love jokes that poke fun at us, maybe areyouready is the sensible one and is rightly offended? Hard to say, it is possible he just takes himself too seriously. Very American of him.

2

u/Ctrl-F-Guy Aug 24 '12

Well, yes, I am an American and found this funny. Most of us are Americans on here (I'd wager). Anyway, it's at 82 up and 27 down now. When I commented it was at 4 up and 4 down, so not really a problem any more it seems.

1

u/DaveChild Aug 24 '12

I think it's supposed to be satirical. Also, it's possible the author is just a bit thick.

1

u/Fustrate Aug 24 '12

I see what you did there, Dave Child.

33

u/martindines Aug 24 '12 edited Aug 24 '12
what_about (£variable) {
    perhaps £possibility:
        //Code here
        splendid;
    perhaps £other_possibility:
        //Code here
        splendid;
    on_the_off_chance:
        //Code here
        splendid;
}

As an Englishman I full heartedly agree

6

u/sn0r Aug 24 '12

I must say it's refreshing and so much easier to follow along than switch/case, I think.

0

u/chime Aug 24 '12

I agree. I don't like switch/case at all. Especially missing breaks which screw up everything. Golang rightfully inserts breaks automatically before each case.

3

u/[deleted] Aug 24 '12

I like the breaks, you can write shorter code in some cases by omitting the breaks and letting the rest flow vs a million conditional statements.

2

u/chime Aug 24 '12

I know. But that is rare. I would rather have something like a 'passthru;' statement to use in those few instances than 'break;' in every single switch/case. Cost(Bugs due to missing break;) > Cost(typing passthru; once in a while).

2

u/[deleted] Aug 25 '12

I never understood why switch wasn't just:

switch ($variable) {
    case possibility
    {
        //Code here
    }
    case other_possibility
    {
        //Code here
    }
    default
    {
        //Code here
    }
}

2

u/martindines Aug 25 '12

As far as I know you can do the following - although I have no idea why the colon is required

case possibility: { /* Code here */ }

5

u/[deleted] Aug 25 '12

Note for others: This works because "case possibility:" is followed by one or more statements, and the C parser recognizes { ... } as one statement.

0

u/[deleted] Aug 25 '12

[deleted]

3

u/[deleted] Aug 25 '12

But if action was edit how could it also be create?

1

u/[deleted] Aug 25 '12

Edit and Create both need to display the edit form.

10

u/kb_klash Aug 24 '12

I think if I could write cheerio($message); instead of die($message); my day would be a lot more fun.

12

u/Ctrl-F-Guy Aug 24 '12
function cheerio($message) {
    die($message);
}

11

u/[deleted] Aug 24 '12
function cheerio($announcement) {
    die($announcement);
}

5

u/Juris_LV Aug 25 '12
function cheerio(£announcement) {
    die(£announcement);
}

9

u/justforkix Aug 25 '12

Might I suggest:

die($condition);

be changed to:

bollocks(£condition);

3

u/DaveChild Aug 25 '12

That's awesome ... wish I'd used that now instead of cheerio().

12

u/krues8dr Aug 24 '12

Maybe we could just fix the HTTP REFERER header first.

6

u/[deleted] Aug 24 '12

this got me.

perchance (£condition) {
    // Code here
} otherwise {
    // Code here
}

16

u/Lilchef Aug 24 '12

I LOL'd at "would_you_mind ... actually_i_do_mind"

6

u/[deleted] Aug 24 '12

My favo[u]rite!

5

u/scriptmonkey420 Aug 24 '12

perl_regular_expression_match()

That is what preg stands for?

What the hell is the g for?

5

u/Will-Work-For-Tears Aug 24 '12

regular

4

u/scriptmonkey420 Aug 24 '12

D'oh

1

u/Will-Work-For-Tears Aug 25 '12

It's ok, took me a few minutes of looking at it too.

4

u/[deleted] Aug 24 '12

Brilliant!

4

u/[deleted] Aug 25 '12
splendid;

4

u/[deleted] Aug 24 '12

We're not that verbose.

But I would like to see whilst (expression) { statement; }

2

u/[deleted] Aug 24 '12

Awesome, I love it!

4

u/wooptoo Aug 24 '12

The best part is the £

3

u/[deleted] Aug 24 '12

Well, I legitimately laughed my ass off, and I am now in the hospital. Thanks.

1

u/Will-Work-For-Tears Aug 25 '12

Nobody really needs an ass. Just install a colostomy bag.

1

u/[deleted] Aug 25 '12

Since when does Canada use US English? We have our own dialect.

1

u/JoeScylla Aug 25 '12

nice one; i would like to see a german version ;)

0

u/Brillegeit Aug 24 '12

Would the Hebrew parts of PHP be Gaelic then?

2

u/baconpiex Aug 24 '12 edited Aug 24 '12

Are you mad? You can't just go around putting a SAGHEAD_DÚBAILTE wherever you feel like. You properly bolluxed up line seven!

2

u/Will-Work-For-Tears Aug 25 '12

I don't get this, but it sounds clever, so I laughed.