|
EGG-PLAN
My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly...
After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg.
How many eggs he giving away - at least?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
7, assuming eggs are not divisible. If they are, 0.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Actually eggs are divisible very easily... but I don't think you can give them away after that...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
I would say the same, it's only this sentence that is vague enough to lead us into a trap[^]:
Quote: After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. The 'otherwise' is not as clear as we are led to believe.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: The 'otherwise' is not as clear as we are led to believe. I hope so
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
How many people are in the families?
Slogans aren't solutions.
|
|
|
|
|
An average of six each... Why?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
African or European chickens?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I'm not sure... This kind: chickens[^]... Do you recognize?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Do grilled chickens lay eggs?
Perhaps they lay fried eggs...
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
No, he said "eggs", not "coconuts".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
If the number of recipients is greater than 1, then 301.
301 mod 2 = 1
301 mod 3 = 1
301 mod 4 = 1
301 mod 5 = 1
301 mod 6 = 1
301 mod 7 = 1
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Daniel Pfeffer wrote: 301 mod 7 = 0 1 FTFY... Nothing like Copy-Paste
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: Nothing Exactly like Copy-Paste FTFYC
|
|
|
|
|
Perfect except
Quote: 301 mod 7 = 1
|
|
|
|
|
Copy-paste strikes again...
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
The result is the smallest multiple of 7 which satisfies the rule : This result minus one is also a multiple of 2,3,4,5 and 6. So a=(2*3*5*k)+1=n*7, with n and k integers >= 1, and k a product of 2, 3, and/or 5 only.
In increasing possible values of k:
k=2 : a=61, which is prime.
k=2x2 : a=121 = 11x11.
k=5 : a=151 which is prime.
k=2x3 : a=181 which is prime.
k=2x5 : a=301 = 7x43, n=43, and we have a winner.
|
|
|
|
|
... in a new methodology: CommitStrip OTD[^]
Now we all know that's going to happen, don't we?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: Now we all know that's going to happen, don't we? They're going to to screw it up!
And then the next one too... And when they finally get the hang of it there will be a new framework, library, methodology, language or other tool that they'll screw up.
All projects will be screwed up to infinity!
|
|
|
|
|
I have exactly this situation - a local running club want me to put together a race timing/admin system - really simple job that could be done in WPF over entity framework in a hot afternoon.
I'm thinking UWP over F# / event sourcing. It will probably never get completed
|
|
|
|
|
They'll screw up three projects with it, then move on to "the next big thing", and screw up three projects with it.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that.
... Then move on to "the next big thing", and screw up three projects with that
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I wonder why CREATIVE programming wasn't enough? Why they came up with all those variants at the first place?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
The only 'keeper' methodology seems to obfuscated programming.
Used, most commonly, in local programming sections.
Possibly because it's incorporated into so many applications across so many languages and a great span of time.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Yep, today's Legacy code is like 2 years ago.
|
|
|
|