Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



James, 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.


Two 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.”



Start it off like

> John, whereas James had had "had", had had "had "had"...

and you can get them all together...


You'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 ... "




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: