73
15
"Baby Shark" is a children's song about a family of sharks. Having long been popular as a campfire song, it has been popularized since the mid-2000s by social media, online video and radio. - Wikipedia
Write program that takes no input, and writes the following text to the standard output or an arbitrary file:
Baby Shark doo doo doo doo doo doo
Baby Shark doo doo doo doo doo doo
Baby Shark doo doo doo doo doo doo
Baby Shark!
Daddy Shark doo doo doo doo doo doo
Daddy Shark doo doo doo doo doo doo
Daddy Shark doo doo doo doo doo doo
Daddy Shark!
Mommy Shark doo doo doo doo doo doo
Mommy Shark doo doo doo doo doo doo
Mommy Shark doo doo doo doo doo doo
Mommy Shark!
Grandpa Shark doo doo doo doo doo doo
Grandpa Shark doo doo doo doo doo doo
Grandpa Shark doo doo doo doo doo doo
Grandpa Shark!
Grandma Shark doo doo doo doo doo doo
Grandma Shark doo doo doo doo doo doo
Grandma Shark doo doo doo doo doo doo
Grandma Shark!
This is code golf — shortest code wins.
Found this on Reddit^1^2, and it seems like an interesting challenge to golf.
Updates:
No newline between stanzas, that makes it too easy :)
Leading/trailing newlines are okay.
6Is a newline between each stanza (each shark) acceptable? (That's always how I've seen the lyrics written) – Quintec – 2019-02-16T02:00:28.743
1(See above comment, since you've responded to my other ones but seem to have skipped this one) – Quintec – 2019-02-16T15:15:56.260
Updated original post. I know you could save a few bytes by doing \n before every stanza (that way you don't have to avoid making a newline at the end), but people already started doing it this way so I think keeping it as is is fair. – njha – 2019-02-16T15:46:03.160
6Eh, missing a few verses, like all the ones about the swimmers swimming and losing limbs in shark attacks. – mbomb007 – 2019-02-16T17:23:43.203
1Are leading or trailing newlines or spaces permitted? Can we return an array of lines? – Shaggy – 2019-02-16T19:57:37.293
Leading/trailing newlines are okay, arrays wouldn't be (unless they printed to stdout/a file in the correct format. – njha – 2019-02-16T20:54:45.330
Why is the mommy/daddy and grandma/grandpa order switched in your post? I'd be susprised if any of the answers change byte counts if you corrected it. – MooseBoys – 2019-02-17T06:43:15.460
2"doo doo doo doo doo doo" is really over-simplified. – R.. GitHub STOP HELPING ICE – 2019-02-17T23:54:29.520
27As a parent, I feel the strongest urge to downvote this one. I'm repressing the urge because that's not how Stack Exchange works. But if I find myself humming "doo doo doo doo" later today, I'm coming back here and holding you accountable! – Cort Ammon – 2019-02-18T17:22:42.113
5How many people's days ruined now that this is on HNQs? – CactusCake – 2019-02-18T19:49:07.147
@CactusCake, our days are often ruined here by some of the challenges that make into HNQ! :D – Shaggy – 2019-02-18T21:53:19.247
2I find myself restraining myself to say "doo doo doo doo" after reading this challenge. – MilkyWay90 – 2019-02-20T03:36:48.987
2@CortAmmon I personally found the song so bad I couldn't listen to it long enough for it to become an earworm. I see "doo doo doo" and think "come on and do the conga" instead. Well, that or "push pineapple, shake a tree" – Baldrickk – 2019-02-20T12:07:15.580
1How does the Wikipedia article for this not have any lyrics or describe the hand motions? I guess adults are just that tired of this song... – JPhi1618 – 2019-02-20T15:11:27.437
1The new FizzBuzz? :) – Captain Man – 2019-02-20T17:01:32.343
@CortAmmon been there, done that, got the t-shirt (Christmas present from my daughter). In fact now I'm humming in danger of humming it to a metal backing track! – Chris H – 2019-02-21T12:09:19.840
Amazing! I can't believe this is the first time this was thought of. – AJFaraday – 2019-11-20T16:09:54.737
@nija I don't think removing the newline makes it any harder... – None – 2020-01-23T06:03:17.357