3 ms·
My favorite "word avalanche" is this one: "James had had had had John had had had had had had had a better effect on the teacher" With added commas, to aid pa
by epiccoleman 3y ago
My favorite "word avalanche" is this one:
"James had had had had John had had had had had had had a better effect on the teacher"
With added commas, to aid parsing:
"James had had had had, John had had had - had had had had a better effect on the teacher."
The context being a hypothetical sentence in which either "had" or "had had" were valid constructions. "Had had" was the formulation which the teacher liked best.
It really boggles the brain to see that many repetitions, but I find it easier to parse/explain than the Buffalo one.
- rawling 3y agoStart it off like > John, whereas James had had "had", had had "had "had"... and you can get them all together...
- epiccoleman 3y agoYou're right - mine was from memory, but this is closer to the original formulation - it's supposed to have been "James while John had had had had ... "
- CaptainNegative 3y agoJames, while John had had "had had" had had "had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had". "had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had had" had had a worse effect on John's computer program because the string buffer wasn't large enough. In the context of two users putting inputs into a C program that doesn't sanitize user input.
- mst 3y agoTwo strings walk into a bar and sit down. The bartender says, “So what’ll it be?” The first string says, “I think I’ll have a beer quag fulk boorg jdk^CjfdLk jk3s d#f67howe%^U r89nvy~~owmc63^Dz x.xvcu” “Please excuse my friend,” the second string says, “He isn’t null-terminated.”
- dang 3y agoA real-life example: https://news.ycombinator.com/item?id=1097374 https://news.ycombinator.com/item?id=1097374