I Earwormed Myself . . .

Quarterly planning is in full swing and my manager said he thought he was done with Q4… maybe. Of course, The Song That Never Ends https://www.youtube.com/watch?v=0U2zJOryHKQ got stuck in my head as “this is the plan that never ends . . .”

The only way to get this earworm out of my head is to code it out (because listening to 20 minutes of the 10 hour loop didn’t do it).

function song(end = false, onAndOn = true, goesOnForever = true){
  if (!end) {
    console.log('this is the song that never ends')
  }
  if (onAndOn) {
    console.log('it just goes on and on my friend. \n Some     
    people started singing it not knowing what it was.')
  }
  if (goesOnForever) {
    console.log('and we\'ll continue singing it forever, 
    just because . . .')
  } else {
    return 'whoops!!'
  }
  return song()
}

You can run that in your console if you want, but it’ll just hang your browser until the call stack is exceeded… but maybe the earworm was the call stack all along!

I Earwormed Myself . . .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s