News for hackers. Stuff that matters.
Re:If PHP Were British by wbhart on Saturday August 20, 2011 @09:13AM (#2906562)
If it were truly British then upon an exception it would apologise excessively and offer to dust you off.

Queues would also be ubiquitous. Data could not be accessed in order, but would have to be retrieved from an unordered queue, which would necessarily involve a long wait.

There would also be a congestion charge for drivers at certain hours of the day and interfacing with Rails would cause unexpected delays.

Re:If PHP Were British by gmac on Saturday August 20, 2011 @02:14PM (#2907266)
Hmm. Queuing might well be ubiquitous but data would be accessible only in meticulous order: from the head of a queue and from nowhere else.
Re:If PHP Were British by sesqu on Saturday August 20, 2011 @01:56PM (#2907215)
unordered queue

What is that? Do you mean a regular, non-priority, queue?

Re:If PHP Were British by halostatue on Saturday August 20, 2011 @10:26AM (#2906698)
Funny, but completely ignorant of the fact that Canadian English is distinct from Amrican English. We generally spell it 'colour' here, but draw the line at 'connexion', and have two spellings for 'seriali[sz]e', depending on the audience and style guide you follow. Joe Clark has a wonderful book about this, Organizing Our Marvellous Neighbours (http://en-ca.org/).
Re:If PHP Were British by rll on Saturday August 20, 2011 @10:38AM (#2906725)
Yeah, the opening paragraph to this one lost me. I have a Canadian passport and I was living in Canada at the time and we spell it "colour" there. But yes, I chose to go with American English over Canadian/Danish/Inuktituk simply because I was already used to that from other languages. Like others have mentioned, non-American programmers don't tend to think of the terms in programming languages as an extension of the language, but simply as tokens that do things. Having those tokens consistent across languages makes sense.
Re:If PHP Were British by joshaidan on Saturday August 20, 2011 @10:42PM (#2908358)
Yeah, it makes me wonder if we'll ever see a programming language that uses "colour." Are there any out there? We must do something to reverse this trend!!!
Re:If PHP Were British by Kliment on Sunday August 21, 2011 @07:55AM (#2909028)
Re:If PHP Were British by ralph on Tuesday August 23, 2011 @07:08AM (#2916125)
Programming languages created in England use "colour", e.g. BBC BASIC.

http://www.bbcbasic.co.uk/bbcbasic/manual/bbckey1.html#colou...

Yes, BBC as in British Broadcasting Corporation.

Re:If PHP Were British by cperciva on Saturday August 20, 2011 @08:08PM (#2908109)
Interestingly, Canadian English is almost en-GB-oed -- which is the closest thing the world has to "international standard English", seeing as it's the dialect preferred by both the United Nations and the International Organization for Standardization,
Re:If PHP Were British by BerislavLopac on Saturday August 20, 2011 @10:22AM (#2906686)
I'm amazed that no comment has yet mentioned my favo(u)rite take on the subject, the immortal Lingua::Romana::Perligata http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.... ;)
Re:If PHP Were British by corin_ on Saturday August 20, 2011 @09:02AM (#2906539)
I find myself getting genuinely annoyed when having to write things like "color" in CSS.

I wonder, though, as fun as it is to think about these jokes, what serious implications it had. Let's say, for example, it actually had been started with variables using a £ rather than $, would it have made any difference at all?

Re:If PHP Were British by citricsquid on Saturday August 20, 2011 @09:09AM (#2906557)
really? I'm British and I'm quite amazed at how I can (without ever thinking about it) switch between colour and color. I wonder if maybe some people approach programming as a different language (eg: color isn't colour, it's color, it is a unique thing) and then some approach it as an extension of their own language.
Re:If PHP Were British by polymatter on Saturday August 20, 2011 @09:29AM (#2906589)
Also a Brit here. I used to get annoyed, but eventually I think it seeped into my system as a different language as you put it. About 2 years ago I had a colleague get very angry with me for writing code analogous to:

Color colour = new Color();

To me, it makes perfect sense, and tbh didn't realise I was even doing it. I definitely endorse everyone standardising on American spelling though, now its been pointed out to me.

Re:If PHP Were British by copper on Saturday August 20, 2011 @11:23AM (#2906820)
Strangely, I do that too. I tend to blame my education :)

Amusingly enough, (though not strange, if you consider its origins) Haskell uses the British spelling. Off the top of my head, the colour types are defined in the Data.Colour module.

Re:If PHP Were British by ender7 on Saturday August 20, 2011 @12:00PM (#2906902)
After seeing him give a talk, I've come to the conclusion that Simon Peyton-Jones is possibly the most British man alive.
Re:If PHP Were British by amirhhz on Saturday August 20, 2011 @01:39PM (#2907154)
If anyone is interested:

http://ontwik.com/haskell/simon-peyton-jones-a-taste-of-hask...

I don't know if this is the one you meant, but I watched it a while ago and I think it's well worth the time: SPJ is great to listen to and you actually pick up a good amount Haskell and functional concepts.

Re:If PHP Were British by jacques_chester on Saturday August 20, 2011 @10:58PM (#2908383)
He'll have to apologetically briskly out-stroll Stephen Fry first.
Re:If PHP Were British by benjiweber on Saturday August 20, 2011 @02:01PM (#2907229)
class Colour extends Color {} // problem solved.
Re:If PHP Were British by Lewisham on Saturday August 20, 2011 @03:59PM (#2907560)
I never had much of a problem with 'color', but grey/gray got me every single time. Always went with the British spelling.

However, at this point, I actually can't remember which spelling is which. I have to look it up. 'a' is the American one, right? (gosh, I hope I'm right)

Re:If PHP Were British by hazexp on Saturday August 20, 2011 @11:50PM (#2908467)
There's an easy to way to remember which is which. GrEy is English, grAy is American.
Re:If PHP Were British by pash on Sunday August 21, 2011 @01:54AM (#2908616)
Of course, both spellings are common in American English.
Re:If PHP Were British by elliottkember on Saturday August 20, 2011 @09:52AM (#2906631)
I've often wondered this. I had a friend who couldn't spell to save his life when he was writing prose - but when he wrote code he was fine. Never understood how that worked.
Re:If PHP Were British by MattJ100 on Saturday August 20, 2011 @01:22PM (#2907099)
I'm glad you said this - I'm exactly the same. I automatically type "color: gray" when coding, I wouldn't dream of using them them outside my text editor.

It may not be limited to natural vs programming language though. I also have no issue daily switching between 0-indexed and 1-indexed languages, but I hear an endless stream of complaints about the latter language from people who insist they can't do that.

Re:If PHP Were British by troels on Saturday August 20, 2011 @10:06AM (#2906659)
Are you saying that you don't? I most definitely think of code as being an extension of language. Code occupies this rather unique field where it is part machinery and part language. Approaching it only as machinery, limits your possibilities.
Re:If PHP Were British by citricsquid on Saturday August 20, 2011 @10:12AM (#2906665)
Maybe that's why I'm a terrible programmer then.
Re:If PHP Were British by SoftwareMaven on Saturday August 20, 2011 @11:01AM (#2906775)
I doubt it. While it may limit your parent's capability (if he thought of it as a second language), I think it would a little presumptuous for him to imply it limits yours. I know lots of people who approach coding differently than I do, yet they still do just fine (even if I can't watch them code because it drives me crazy :).
Re:If PHP Were British by troels on Saturday August 20, 2011 @02:01PM (#2907228)
It would be presumptuous if I was to say that not thinking that way would make you a bad programmer; I'm sure there are many ways to enlightenment. And many types of enlightenment, for that matter. But I would venture to say that being able to think of programming as language, is a strength. Whether you use this paradigm as the primary frame for writing software, is a different matter. I find it very powerful.

See also: Literate programming, or - more recently - Domain Driven Design (In particular: Ubiquitous language).

Re:If PHP Were British by corin_ on Saturday August 20, 2011 @09:11AM (#2906558)
Maybe I just don't code enough to have got used to it.
Re:If PHP Were British by radiowave on Saturday August 20, 2011 @09:30AM (#2906593)
In BBC basic it was indeed COLOUR, which took me some unlearning.
Re:If PHP Were British by handelaar on Saturday August 20, 2011 @12:26PM (#2906960)
VDU 17 would have saved the day there.

</old_fart>

Re:If PHP Were British by to3m on Saturday August 20, 2011 @04:09PM (#2907595)
Just type C. - stands for either, takes up less space than having a VDU17 in the program!
Re:If PHP Were British by handelaar on Thursday September 01, 2011 @08:18PM (#2952369)
Well, sure, but that gets expanded into 'COLOUR' when you do a LIST
Re:If PHP Were British by tristanperry on Saturday August 20, 2011 @03:42PM (#2907503)
When I was younger it'd annoy me. I'd always forget and slip back into writing colour. Then I'd wonder why the text or background colour of something wasn't changing. A few minutes later (of checking I was editing the right file, that I was changing the property of the right id/class, etc etc!), I'd finally realise I was simply 'misspelling' it. DOH!

Now, though, things have clicked and I find I can very easily switch between color and colour when needed.

Even to the point that if I'm typing on a US based site, I tend to use color (and Americanized spellings), and on non-US sites I tend to British spelling. Can take a while to get used to though.

Anywhoo, I loved this blog post :) Especially the:

Words fail me at this point. How is any self-respecting gentleman expected to make head or tail of these "words". It beggars belief that anyone could allow such distortions of words to be entered into a programming language. They, along with the myriad of similar errors, should be reverted to their proper forms immediately:

Bit!

Re:If PHP Were British by randlet on Saturday August 20, 2011 @11:21AM (#2906813)
I write a fair bit of wxPython code and one of the things that always struck me as surprising is that you can use widget.Color or widget.Center interchangeably with widget.Colour and widget.Centre!
Re:If PHP Were British by abhaga on Saturday August 20, 2011 @01:49PM (#2907184)
> Let's say, for example, it actually had been started with variables using a £ rather than $, would it have made any difference at all?

I cannot see £ sign on my keyboard, so that would be slightly inconvenient. :)

Re:If PHP Were British by gmac on Saturday August 20, 2011 @02:19PM (#2907279)
Indeed, nor is it in ASCII. So it might at least have encouraged attention to be paid to character encoding issues a decade or so earlier!
Re:If PHP Were British by Someone on Sunday August 21, 2011 @02:23PM (#2909793)
Who cares about ASCII (American standard code for…) in a British product? This, of course, would use BS-4730 (BS = British Standards Institute.) it has £ where ASCII has #.
Re:If PHP Were British by willyt on Saturday August 20, 2011 @03:32PM (#2907465)
There's no # on mac British keyboards! You have to hit option-4 (did I get that right, don't have a keyboard in front if me) to e.g. comment ruby code...
Re:If PHP Were British by JimDabell on Sunday August 21, 2011 @05:23AM (#2908830)
It's ⎇-3, not 4. ⎇-4 is ¢.
Re:If PHP Were British by andyking on Saturday August 20, 2011 @03:58PM (#2907555)
It is option-4. But I almost went and bought a new keyboard before I discovered that.
Re:If PHP Were British by rbanffy on Saturday August 20, 2011 @12:51PM (#2907023)
> Let's say, for example, it actually had been started with variables using a £ rather than $, would it have made any difference at all?

I think that had more to do with the $ usage in Perl rather than with currencies.

Re:If PHP Were British by Sodaware on Saturday August 20, 2011 @11:52AM (#2906884)
The biggest problem would be that the £ symbol is not on US keyboards. The # symbol takes its place, but is called the pound sign rather than hash.
Re:If PHP Were British by voyou on Saturday August 20, 2011 @05:52PM (#2907825)
That would be an advantage, not a problem. No-one wants vulgar yanks sullying a classy language like PHP.
Re:If PHP Were British by arethuza on Saturday August 20, 2011 @12:30PM (#2906970)
Map $ to £ - problem solved!
Re:If PHP Were British by mapgrep on Saturday August 20, 2011 @12:45PM (#2907005)
If you do that, you must hit the $ key 1.6 times to get £ to appear, which is kind of a pain.
Re:If PHP Were British by arethuza on Saturday August 20, 2011 @12:59PM (#2907047)
Good point.

How about you press $ eight times - that gives you five £s and then you hit backspace four times leaving you with one £.

Re:If PHP Were British by j_col on Saturday August 20, 2011 @08:35AM (#2906498)
Brilliant! Given my sadness today around HP destroying the mobile platform I love (webOS), this has really cheered me up ;-) I especially like the cheerio() function.
Re:If PHP Were British by AlexC04 on Saturday August 20, 2011 @08:48AM (#2906517)
I too thought it was brill. Next, lets play "if PHP were cockney"
Re:If PHP Were British by justincormack on Saturday August 20, 2011 @09:18AM (#2906570)
we could replace the semicolon with "innit!"

$oranges = "lemons" innit!

Re:If PHP Were British by FuzzyDunlop on Saturday August 20, 2011 @02:36PM (#2907335)
I prefer the Manc version of PHP (which syntactically has bugger all in common with PHP coz thats how we roll in Manc):

    alright ar kid?
      im not being funny but x = y
      z is like 10 * 10 int it
      
      you got a spare minute?
         can you just do this for us
            // codage
         while im sorting this out
            // conditionage
      ta son

      if /*function*/ is acting the goat
          bloody_nora (error)
      
      summat wrong? nah : damn fucking right flower
Re:If PHP Were British by tarkin2 on Saturday August 20, 2011 @11:46AM (#2906876)
$ is superior though, simply for its ease of access using the left index finger.

£ would require the use of the middle finger.

To British sensibilities, it would mean swearing at PHP on every variable declaration! Actually, that said...

Re:If PHP Were British by benjoffe on Saturday August 20, 2011 @12:09PM (#2906923)
£ isn't even available on my keyboard, I would need specific software or IDE features just for this.
Re:If PHP Were British by uxp on Saturday August 20, 2011 @01:37PM (#2907148)
I agree that ease of accessibility of the key is very important in choosing a variable symbol.

The first time I ever stepped into ERB, typing <% was a chore, since it was just a bit further than I had been used to typing tag characters. For en_US Americans on OS X, the £ character is a simple Option+3 though. Can anyone tell me what the key combination for the character is on en_US Windows platforms?

Re:If PHP Were British by benjiweber on Saturday August 20, 2011 @02:06PM (#2907246)
I'm always amazed how hard it is to type a | pipe on an american keyboard. On British keyboards it's next to left shift so you can type it with just one keystroke.
Re:If PHP Were British by w1ntermute on Saturday August 20, 2011 @02:17PM (#2907275)
Oh god, I had to use a British keyboard while working on a project this summer, and that damn backslash/pipe key next to the left shift was the bane of my existence. I don't know how many times I accidentally hit that when trying to hit the left shift. Why would you ever put it there?

And the tall Enter key - uggh, why? Even if you need an extra key because of the pound symbol, you could just put it where the backslash/pipe key normally goes, instead of having a misshapen Enter key. And swapping " and @ - completely nonsensical. ' and " should be on the same key.

Re:If PHP Were British by thristian on Saturday August 20, 2011 @11:31PM (#2908427)
As I recall, the UK keyboard layout was designed to allow entry of every character in the ASCII and EBCDIC character-sets, which explains why it includes "¬" and both vertical bar ("|") and broken bar ("¦").

Putting double-quote above "2" makes perfect sense if you've ever looked at an ASCII table. A lot of 8-bit micro-computers did that, even in America - for example, the Apple II.

Re:If PHP Were British by w1ntermute on Sunday August 21, 2011 @01:54PM (#2909725)
> As I recall, the UK keyboard layout was designed to allow entry of every character in the ASCII and EBCDIC character-sets, which explains why it includes "¬" and both vertical bar ("|") and broken bar ("¦").

Seems kind of pointless. If you're going to include some extra keys, how about a few Greek letters, or accented English letters (without AltGr)? Of course, that's not to say there aren't pointless keys on the US English keyboard (what the hell is "`" for?).

> Putting double-quote above "2" makes perfect sense if you've ever looked at an ASCII table.

But there's no reason to base the keyboard layout on ASCII tables. The keyboard should be designed to be as intuitive as possible, rather than staying true to some obscure technical details.

Re:If PHP Were British by thristian on Sunday August 21, 2011 @08:44PM (#2910784)
Presumably they didn't include any Greek or other letters because they weren't in the basic ASCII or EBCDIC sets. I guess they wanted their keyboard to be standard across both kinds of computers: micros and mainframes.
Re:If PHP Were British by benjiweber on Sunday August 21, 2011 @09:38AM (#2909161)
I find it hard to believe that you really think that the tiny hit-target for the enter button on an american keyboard is a good thing. It is one of the most frequently used keys.

If you think hitting the huge left shift button is hard then imagine how hard it is for someone used to a British keyboard to hit enter on an american keyboard.

Re:If PHP Were British by w1ntermute on Sunday August 21, 2011 @01:50PM (#2909711)
> imagine how hard it is for someone used to a British keyboard to hit enter on an american keyboard.

Not too difficult, I'd say, because you can just move your right pinky directly to the right from the home position and you're good to go. The problem with the British Enter key is that it's tall instead of wide, so you have to reach even further to the right. I don't see any benefit to the increased height, because I'm always going to hit the Enter key from the home position anyway.

It's a similar issue with having the backslash/pipe key next to the left Shift. I move my left pinky down and a little to the left to hit the left Shift, but instead there's a backslash/pipe key there, which means I have to move it even more to the left, which is just uncomfortable.

Re:If PHP Were British by __rkaup__ on Saturday August 20, 2011 @01:39PM (#2907153)
On my UK keyboard, $ is <shift-4> and £ is <shift-3>. They're right next to each other.
Re:If PHP Were British by benjiweber on Saturday August 20, 2011 @02:04PM (#2907240)
That's the joke (Most touch typists will do shift-4 with index finger, and shift-3 with middle finger)
Re:If PHP Were British by lubutu on Saturday August 20, 2011 @08:58AM (#2906530)
The only language I know which actually uses "colour" in its standard library, is Occam, designed in Bristol. Are there any others?

(Nitpick: "socialize" is the original spelling; "socialise" was a change in spelling on our side of the pond.)

Re:If PHP Were British by corin_ on Saturday August 20, 2011 @09:03AM (#2906542)
There's actually many cases where we (Brits) hate on the American version without realising that actually theirs is the version we were using back when we sent people over to America, and it is us we have changed over the years not they. Still annoys me though :)
Re:If PHP Were British by SoftwareMaven on Saturday August 20, 2011 @11:03AM (#2906779)
When I learned that, I found it extremely humorous. What was even funnier was that the extra U's showed up as Britain attempted to be more French-like. Isn't that a slap in the face today!
Re:If PHP Were British by rbanffy on Saturday August 20, 2011 @12:57PM (#2907039)
I still insist to write "behaviour" despite the protests of my spell-checkers. And I am a Brazilian/Hungarian educated mostly in Portuguese to whom English is a third language.

I blame my high-school English teacher.

But then, when in the browser, I also catch myself submitting forms with control-x control-s.

Re:If PHP Were British by mahmud on Saturday August 20, 2011 @09:09AM (#2906555)
America is a preservation jar for per-Enlightenment Britain.
Re:If PHP Were British by andrewem on Saturday August 20, 2011 @10:37PM (#2908348)
Quite. See this supposed American barbarism from Daniel Defoe's 1722 novel "Journal of the Plague Year": "besides, it being in the time of the vacation too, they were generally gone into the country". (http://www.gutenberg.org/files/376/376-h/376-h.htm)
Re:If PHP Were British by pash on Sunday August 21, 2011 @02:31AM (#2908654)
The large majority of -ize/-ise verbs come from Greek words ending in -ιζειν [-izein] (sometimes via Latin, in which they end in -izare). English adopted many of these words via the French, which lacks "Z" as a native letter, and so the -ise spelling.

Americans reverted to the -ize spelling on the principle of spelling words as they sound (a foreign concept to the language, we must all agree), and much of educated Britain likewise used the -ize spelling on etymological grounds. (Thus Oxford spelling [en-GB-oed].) Esteemed English institutions such as the Oxford University Press and Cambridge University Press still use the -ize spelling, as did The Times, until it came to be perceived as an Americanism in the 1980s.

International English, such as that used by the United Nations, follows Oxford spelling and so uses -ize.

Re:If PHP Were British by profquail on Saturday August 20, 2011 @09:19AM (#2906574)
Well, it's not "colour", but there are actually a few types in the .NET Base Class Library (BCL) which use the British spelling. Example: the StackBehaviour enumeration (http://msdn.microsoft.com/en-us/library/system.reflection.em...)
Re:If PHP Were British by ajanuary on Sunday August 21, 2011 @07:20AM (#2908984)
I remember hearing a story about how bits of the BCL were written in Britain and originally used "Colour", but they were made to change it to standardise upon american english across the BCL.
Re:If PHP Were British by georgefox on Saturday August 20, 2011 @11:11AM (#2906792)
The popular ggplot2 library for R uses colour, though I think color is also accepted in some places.

http://had.co.nz/ggplot2/scale_gradient.html

Re:If PHP Were British by iwwr on Saturday August 20, 2011 @09:27AM (#2906585)
POV-Ray script accepts both spellings.

http://www.povray.org/documentation/view/3.6.0/230/

Re:If PHP Were British by mahmud on Saturday August 20, 2011 @09:05AM (#2906548)
The British dialects of English have undergone far more change than English elsewhere. Some British dialects were heavily influenced by French, or imitated the francophone "upper" classes so much so that they no longer trill their 'r'. [Citation Needed]

Also, India preserves the vocabulary of the old English bureaucracy, now lost in Britain. [Citation Needed]

Re:If PHP Were British by pestaa on Saturday August 20, 2011 @09:57AM (#2906639)
Ogre 3D (C++ library for realtime graphics) also uses the word colour, designed by a bright guy from Channel Islands, South England.
Re:If PHP Were British by pointyhat on Saturday August 20, 2011 @09:28AM (#2906588)
BBC BASIC, which does the reputable thing of accepting it both forms equally.
Re:If PHP Were British by mambodog on Saturday August 20, 2011 @09:53AM (#2906637)
Re:If PHP Were British by uriel on Saturday August 20, 2011 @01:12PM (#2907076)
And if PHP was Japanese it would commit Seppuku.
Re:If PHP Were British by thelovelyfish on Saturday August 20, 2011 @11:16AM (#2906801)
If it were British there would be alcohol involved somehow.
Re:If PHP Were British by voyou on Saturday August 20, 2011 @05:49PM (#2907819)
We're talking about PHP, so I think we can take it as read that there was substance abuse involved somewhere.
Re:If PHP Were British by thelovelyfish on Thursday August 25, 2011 @04:04PM (#2926211)
lolz
Re:If PHP Were British by premchai21 on Saturday August 20, 2011 @10:16AM (#2906670)
preg_match might actually be better expanded as practical_extraction_and_reporting_language_regular_expression_match. (I'd comment on the original but it's currently too overloaded for it, I gather.)
Re:If PHP Were British by ojbyrne on Saturday August 20, 2011 @12:08PM (#2906921)
Actually, my understanding is that the p in preg actually stands for perl. php.net refers to PCRE (Perl Compatible Regular Expressions).
Re:If PHP Were British by premchai21 on Saturday August 20, 2011 @12:26PM (#2906961)
Yes, and “Perl” has often been expanded as “Practical Extraction and Reporting Language” (I don't recall whether this is a half-joke or not, but I think it is).

If you like you can add the “compatible” though, which would conveniently add to the length.

Re:If PHP Were British by tingletech on Saturday August 20, 2011 @12:54PM (#2907032)
$ perldoc perl

  NAME
       perl − Practical Extraction and Report Language
...
Re:If PHP Were British by fferen on Saturday August 20, 2011 @10:19PM (#2908330)
From Wikipedia: "There is some contention about the all-caps spelling "PERL", which the documentation declares incorrect[28] and which some core community members consider a sign of outsiders.[29] The name is occasionally backronymed as Practical Extraction and Report Language, which appears at the top of the documentation[27] and in some printed literature.[30]"

http://en.wikipedia.org/wiki/Perl#Name

Re:If PHP Were British by roel_v on Saturday August 20, 2011 @02:54PM (#2907379)
Yes, I'm quite sure that is the actual meaning. Back in the day there was 'ereg' as well, but that has been deprecated for a long time I think. IIRC, in 1998-1999 it was a commonly asked question when to use preg_ or ereg_ functions.

But I guess the php docs themselves have caused people to think that the p stands for 'perform' - from the php docs 'preg_match - Perform a regular expression match.'. So yeah.

Re:If PHP Were British by rbanffy on Saturday August 20, 2011 @12:53PM (#2907027)
"pathologically_eclectic_rubbish_lister_regular_expression_match" would be my first choice.
Re:If PHP Were British by justincormack on Saturday August 20, 2011 @10:22AM (#2906687)
Not overloaded, just form an orderly queue and wait please.
Re:If PHP Were British by DaveChild on Sunday August 21, 2011 @05:48AM (#2908862)
I moved the site to Linode and set my swap incorrectly, so as soon as the memory ran out it fell over. Oops.
Re:If PHP Were British by code_duck on Saturday August 20, 2011 @11:18AM (#2906804)
yeah, where does 'perform' come from?
Re:If PHP Were British by Luyt on Saturday August 20, 2011 @11:46AM (#2906875)
COBOL. But I think the author didn't know that the preg_*() functions use regular expressions the same way Perl does.
Re:If PHP Were British by DaveChild on Sunday August 21, 2011 @05:50AM (#2908867)
I did know that, but wasn't sure the "p" stood for "perl". The manual page for preg_match leads with "preg_match — Perform a regular expression match", so I went with that.
Re:If PHP Were British by code_duck on Monday August 22, 2011 @04:16PM (#2913935)
True, and you never know with PHP.

The preg functions are wrappers around the Perl Compatible Regular Expressions library, though (PCRE) vs the older POSIX greg PHP functions, so I do think they mean Perl.

Re:If PHP Were British by fdb on Sunday August 21, 2011 @08:17AM (#2909052)
He does have a point with the abbreviations.

The use of abbreviations and underscores in PHP is maddeningly inconsistent.

Example:

  pdf_stringwidth
  strlen
  str_replace
Re:If PHP Were British by reinhardt on Saturday August 20, 2011 @01:07PM (#2907068)
How long until some bored hacker writes a british<->us PHP compiler and posts it here? I give it a week.
Re:If PHP Were British by jordinl on Saturday August 20, 2011 @11:36AM (#2906847)
A colleague once complained because I wrote 'initialize' with a z...
Re:If PHP Were British by cafard on Saturday August 20, 2011 @11:46AM (#2906871)
If we change the sigils, can we refer to objects as "quiddities"?
Re:If PHP Were British by zandorg on Saturday August 20, 2011 @12:48PM (#2907014)
In Common Lisp, 'Fourth' is the fourth item in a list, rather than 'Forth'.
Re:If PHP Were British by tricolon on Saturday August 20, 2011 @01:03PM (#2907063)
Re:If PHP Were British by arethuza on Saturday August 20, 2011 @01:48PM (#2907182)
Presumably confusion with the river named after the progamming language.
Re:If PHP Were British by georgieporgie on Saturday August 20, 2011 @02:43PM (#2907348)
I always thought the dollar sign originated as a variable marker because it was used in BASIC to mark a string. Is there an earlier origin?
Re:If PHP Were British by 4J7z0Fgt63dTZbs on Sunday August 21, 2011 @01:42AM (#2908604)
Now if PHP were Japanese?
Re:If PHP Were British by PedroCandeias on Saturday August 20, 2011 @09:00AM (#2906535)
Joke about php devs not being savvy enough to actually go and make these changes in 3... 2... 1...