News for hackers. Stuff that matters.
Re:Including “And. And. And. And. And.” in a Google doc caus... by croddin on Thursday May 05, 2022 @05:29PM (#31278617)
Also, Therefore, And, Anyway, But, Who, Why, Besides, However.

Each in caps 5 times with the same word with a period and space after each word and newline at the end is what I have found so far.

Can anyone find others?

Edit: added words that work found in other comments, and found more.

Re:Including “And. And. And. And. And.” in a Google doc caus... by rob74 on Thursday May 05, 2022 @07:21PM (#31279440)
How about "Whereas", "Insofaras", "Notwithstanding", "Thetruthofthematter", or "Despiteallobjections"? Didn't try them, but these were "reserved words" in Go (actually an easter egg) until 2017 (https://stackoverflow.com/questions/2489803/notwithstanding-...).
Re:Including “And. And. And. And. And.” in a Google doc caus... by astrange on Thursday May 05, 2022 @09:16PM (#31280112)
This is the strangest parsing fact I've learned since PHP having a token named T_PAAMAYIM_NEKUDOTAYIM. (Because the parser was developed in Israel.)

https://stackoverflow.com/questions/592322/php-expects-t-paa...

Re:Including “And. And. And. And. And.” in a Google doc caus... by nonsince on Friday May 06, 2022 @02:38AM (#31282005)
I don’t speak hebrew but someone online said that this is an unnecessarily literal translation of "double colon" and it’s not what most developers would call it. Take that with a grain of salt though.
Re:Including “And. And. And. And. And.” in a Google doc caus... by pferde on Friday May 06, 2022 @03:30AM (#31282368)
The history of that entire fiasco is quite comprehensivly summarized at https://phil.tech/2013/wtf-is-t-paamayim-nekudotayim/ .
Re:Including “And. And. And. And. And.” in a Google doc caus... by inimino on Friday May 06, 2022 @03:51PM (#31289038)
What a childish rant that blog post is though...
Re:Including “And. And. And. And. And.” in a Google doc caus... by neycoda on Saturday May 07, 2022 @08:08PM (#31299870)
That was a nice history lesson actually. I remember being confused at the error message, looking it up, being confused at the explanation... because I hadn't learned static calls yet. I may not have even understood classes at that point, but that was way back in the day.

If PHP support has to handle the same stupid question about the meaning of a very unnecessary term that's confusing people and causing more support requests than anything else... then it made sense to change it.

I'm glad I read the blog post; it clears up a LOT of thoughts I had about the error... calling it childish seems off. Maybe you had a dog in the fight at some point?

Re:Including “And. And. And. And. And.” in a Google doc caus... by inimino on Monday May 16, 2022 @10:24PM (#31405404)
> Maybe you had a dog in the fight at some point?

No! But read the part where Rasmus Lerdorf "beams into" the conversation and his opinion is dismissed with "let's take a vote".

I mean, if you wanted a language that wasn't intentionally designed by Rasmus Lerdorf, you kinda picked the wrong one. This is what I was referring to.

Re:Including “And. And. And. And. And.” in a Google doc caus... by mike_hock on Friday May 06, 2022 @02:58AM (#31282135)
Seems plausible since afaik the other constants were in English, so this seems to be a developer's joke.
Re:Including “And. And. And. And. And.” in a Google doc caus... by neycoda on Saturday May 07, 2022 @08:10PM (#31299893)
It was a joke, a troll really, that just gave PHP haters something else to deride the language with to people who don't know it that well.
Re:Including “And. And. And. And. And.” in a Google doc caus... by krageon on Friday May 06, 2022 @04:46AM (#31282891)
If you look it up, this token can have two names. It is indeed a double colon :)
Re:Including “And. And. And. And. And.” in a Google doc caus... by stavros on Friday May 06, 2022 @02:40AM (#31282017)
Oooh now I wonder if it literally means "dual intestine".
Re:Including “And. And. And. And. And.” in a Google doc caus... by Pyrious on Friday May 06, 2022 @02:52AM (#31282091)
Nope, it's literally "twice colon" where colon is specifically the punctuation mark. פעמים נקודותיים
Re:Including “And. And. And. And. And.” in a Google doc caus... by stavros on Friday May 06, 2022 @02:53AM (#31282102)
Ahh dreams dashed.
Re:Including “And. And. And. And. And.” in a Google doc caus... by CSSer on Friday May 06, 2022 @02:58AM (#31282139)
I thought we were talking about colons?
Re:Including “And. And. And. And. And.” in a Google doc caus... by raverbashing on Friday May 06, 2022 @03:29AM (#31282366)
Dashed? Em-dashed? Hyphenated? Or just subtracted?
Re:Including “And. And. And. And. And.” in a Google doc caus... by cobbal on Friday May 06, 2022 @10:33AM (#31285597)
U+1F4A8
Re:Including “And. And. And. And. And.” in a Google doc caus... by omnicognate on Friday May 06, 2022 @03:20AM (#31282315)
Widely known because the token names were surfaced to users in error messages, so some common syntax mistakes would produce deeply unhelpful "Unexpected T_PAAMAYIM_NEKUDOTAYIM" errors. Hopefully they eventually did something about it, but it was like that for years and was one of the many things that put me off PHP for life.
Re:Including “And. And. And. And. And.” in a Google doc caus... by JadeNB on Friday May 06, 2022 @05:42AM (#31283237)
> Widely known because the token names were surfaced to users in error messages, so some common syntax mistakes would produce deeply unhelpful "Unexpected T_PAAMAYIM_NEKUDOTAYIM" errors. Hopefully they eventually did something about it, but it was like that for years and was one of the many things that put me off PHP for life.

One can like or dislike PHP for a variety of reasons, but surely being put off it for life because a non-English string is exposed to the end user is a bit much.

Re:Including “And. And. And. And. And.” in a Google doc caus... by omnicognate on Friday May 06, 2022 @06:29AM (#31283534)
As another commenter said it was "one of many things". Also, it's not the fact that it was non-English that was off-putting. It's more the fact that the T_ identifier was used, presumably via a macro.

People are often defensive about PHP, but at the end of the day we choose our tools. I wrote a significant amount of PHP for a brief period and out of maybe 20 or so languages I've used professionally I found it by a wide margin the least pleasant to work with. Supposedly it has improved a lot, and I'm glad if so. But I have no desire to use it again, and am unlikely to ever have a reason to.

Re:Including “And. And. And. And. And.” in a Google doc caus... by josefx on Friday May 06, 2022 @01:09PM (#31287540)
Also the only information available to the developer when it was added in PHP 3 in 1997, good luck Googling that error. They didn't add the actual token to the error message until PHP 5.4 over a decade later.
Re:Including “And. And. And. And. And.” in a Google doc caus... by chris_wot on Friday May 06, 2022 @06:01AM (#31283367)
No, it shows a certain sloppiness around the language. This has all been cleaned up and a lot of effort has gone into resolving most issues in PHP.
Re:Including “And. And. And. And. And.” in a Google doc caus... by j0057 on Friday May 06, 2022 @06:11AM (#31283425)
"One of the many things", so not the only thing, but a thing nonetheless.
Re:Including “And. And. And. And. And.” in a Google doc caus... by bradfitz on Thursday May 05, 2022 @11:39PM (#31281051)
They weren't reserved words. The lexer just discarded those tokens entirely.
Re:Including “And. And. And. And. And.” in a Google doc caus... by cormacrelf on Friday May 06, 2022 @01:05AM (#31281510)
Given the gay abandon with which people like to sprinkle them in fancy sounding sentences, perhaps this was for the best.
Re:Including “And. And. And. And. And.” in a Google doc caus... by Cthulhu_ on Friday May 06, 2022 @04:32AM (#31282819)
whomst'd've'ly'yaint'nt'ed'ies's'y'e
Re:Including “And. And. And. And. And.” in a Google doc caus... by JoshuaDavid on Thursday May 05, 2022 @07:18PM (#31279419)
Probably the weirdest one I've found is "Dearness."

"Although", "Besides", and "Moreover" also trigger the behavior.

Re:Including “And. And. And. And. And.” in a Google doc caus... by ineedasername on Thursday May 05, 2022 @09:15PM (#31280107)
How did you stumble on Dearness?
Re:Including “And. And. And. And. And.” in a Google doc caus... by JoshuaDavid on Thursday May 05, 2022 @09:45PM (#31280304)
Started running through the entire dictionary in batches of 500 words to see if each batch of 500 triggered the behavior, then binary search within the batch to find the problem word(s). Got bored partway through D.

Edit: Got unbored. Discovered that "Firstly", "Secondly", "Thirdly", and "Fourthly" trigger the bug, but "Fifthly" and above do not.

Edit 2: The first word can actually be any of the "problem" words -- "Also. And. And. And. And." also has the issue.

Re:Including “And. And. And. And. And.” in a Google doc caus... by hnaccount_rng on Friday May 06, 2022 @02:07AM (#31281818)
Upvote for unbored. And a perfect illustration for HN xD
Re:Including “And. And. And. And. And.” in a Google doc caus... by ineedasername on Thursday May 05, 2022 @10:09PM (#31280465)
That sounds about right for HN, well done.
Re:Including “And. And. And. And. And.” in a Google doc caus... by cmg on Thursday May 05, 2022 @06:15PM (#31278967)
Interestingly, "Or. Or. Or. Or. Or." doesn't trigger it.
Re:Including “And. And. And. And. And.” in a Google doc caus... by hoosieree on Thursday May 05, 2022 @08:40PM (#31279876)
By DeMorgan's laws, typing this in a Google Doc causes OneNote to crash.
Re:Including “And. And. And. And. And.” in a Google doc caus... by DonHopkins on Friday May 06, 2022 @05:33AM (#31283171)
By DeMorgan's Law and Bill and Ted's Excellent Low Precedence Right Associative Postfix Sarcastic Not, "Or. Or. Or. Or. Or. Not!" crashes.
Re:Including “And. And. And. And. And.” in a Google doc caus... by chris_wot on Friday May 06, 2022 @06:04AM (#31283388)
I love this comment and I live Bill and Ted’s Excellent Adventure so I transitively love you.