Divine Programming 101: EndOfUniverse()

Deleting everything makes it better!!
Deleting everything makes it better!!
/*
I've been toying with the idea of cataclysmic annihilation for some time now, but never got around to completing it. Something always got in the way - famines, floods, planting dinosaur bones around the place - and I was only able to make the most modest of adjustments. 

So much for spare time! 

But I'm finally proud to announce the release of a beta candidate. After several thousands of years, we're ready to test Armageddon, people! 

The code probably needs a tidy up here and there, but then so does the Universe. Ha ha!

I considered pair-programming with Allah, but he's a terrible coder, and would have probably just copied and pasted some awful snippet straight from Stack Overflow.

(Note to the wise: running this code will only affect your current reality. This system doesn't yet support parallel universe programming, if you believe in that sort of thing anyway.)

Thanks to everyone who believed in me, and kept rooting for the final destruction of time, space and all matter, dark or otherwise.

Yours in theoretical eternity,
God.

*/
/**
 * @description: This class, when instantiated, 
 * will trigger the end of the known Universe.
 * @version: 1.0.0
 * @author God
 */

class EndOfUniverse extends BeginningOfUniverse{
 
    constructor(super) {
       
        // first pause the
        // ongoing universe
        super.pause();
       
       // assign the current universe
       // to this instance
       this.universe = super.universe;

       // let's save the 
       // date so we know
       // exactly when
       // Armageddon took place.
       this.endTime = new Date();

       this.forgiveAllSins();
       this.startTheRapture();
       this.bigReverseBang();
    }

    forgiveAllSins() {
       console.warn('Hi! You are all forgiven!');
    }

    startTheRapture() {
       this.universe.filter(atom => {
          // filter out Christians from 
          // the universe
          // before destroying it.
          // Sorry in advance to all
          // other faiths, but
          // after the Jesus() update
          // there was no going back!
          return atom.contains('Christian') === false;
        }); 
    }

    bigReverseBang() {
       // this is the method
       // that basically
       // reduces everything to
       // nothing
       this.universe = this.universe.reduce(
          (reducedUniverse, atom) => {
              if (atom === undefined) {
                  return atom;
              }
          }, 
       []);
    }

    reset() {
        // Sorry, I haven't found a way 
        // to build a reset function
        // that doesn't take 14 billion years
        // of CPU time, let alone seven days! :)
    } 
} 

Atheist Children’s Books

Fiction put on hold. The quill hovers over the digital notepad… writing has been placed somewhere on the shelf up near my sheet music and other crusty life goals while I attempt to realise yet another project – Atheist Children’s Books.

Yes, the product of months of procrastination, an idea born of frustration, illumination and wonder, atheistchildrensbooks.org, is finally in progress. With it and through it I hope to promote authors of exceptional works of fiction and illustrated fiction, and maybe, just maybe, help to sprinkle a little reason around the world.

Atheist Children's Books - To whom do you bow?

I want to help!

Great! At the moment the site is very much in development, however if you’d like to contribute to getting it up and running, or are an author of secular, humanist, science or atheist books for kids and would like to promote your book on atheistchildrensbooks.org, please get in touch.

Once I have the site in a reasonable state and all the associated media and assets are ready, I’ll be running a kickstarter campaign or the equivalent in order to raise funds for marketing and development. The aim is not to rule the world, but to make it a nicer place to be.

Peace!

Trout the existence of cod

A man enters the only restaurant in town on a Sunday evening.  It is not a fine restaurant, the varnish on the chairs and tables is faded and the menus are covered in plastic film, but he finds the atmosphere congenial and the food accessible. As he takes his regular seat in the corner, underneath the print of The Siesta, the waiter approaches him.

“Good evening, sir. Would sir like to see the specials this evening?”

“No, thank you. I’ll have the usual please, a half-litre of merlot and the cod.”

“I’m afraid there is no cod.”

“Since when? I ate here, why, last week on Tuesday. There was cod then. And the week before. And the week before that.”

“The chef, you see, has taken rather a sudden aversion to the whole idea of cod and only yesterday struck it from the menu. Here, you can see the red ink, right through ‘Fried cod and potatoes’.”

“An aversion to cod? Who ever heard of such a thing? Why, this is a cod-loving town, has been for ages. Don’t tell me he’s suddenly become one of those meat-dodging salad grazers, has he? Every time I turn my head, there seems to be someone preaching on high from a crate of bean sprouts the evils of flesh and how our digestive systems are in some way so fragile that we can’t even so much as touch a pork sausage without causing intestinal cancer.”

“Yes, sir. He was unfortunately rather adamant about it.”

“Eh? And what , pray, is his reasoning? Why did he feel it necessary and appropriate to change the menu in such a radical fashion?”

“He says that cod has had its run and that it is time for something new. We have a new fish-based dish however, fresh trout from the river. It looks delicious, I must say. The chef says he has never seen such a good and healthy eating fish; that it’s beyond.”

“Beyond what?”

“Beyond trout, of course.”

“That’s the most ridiculous statement I think I’ve ever heard. Here we are in cod country, we are cod people! What makes him think that cod is suddenly out of fashion?”

“I really don’t know, sir, I’m just the waiter.”

“Well you should know if you’re serving it! Or not serving it in this case. He probably heard it somewhere in the city. Ha! You know, this town is full of fine-upstanding citizens who run about, doing their upstanding business, contributing to our town’s well-being and what happens at the end of a hard day, just when a serving of cod would be most pleasing and adequate? They’re told to forget it because some city folk say it’s no longer in fashion! That … that … that only the sublimely ignorant and clay-eating peasants have any need for cod in their pathetic lives. Now it’s all about having some healthy trout!”

“Well it has been catching on, sir. It’s quite popular with those who have already tried it.”

“And what next? If someone in the city suddenly declares, say, milk to be the new evil, what then? Would we immediately ban the intake of whipped cream and start burning dairy cows in the fields? Oh, here: take this delicious tofu, it’s the latest thing, tastes fantastic and you will soon learn to love it as much as you loved all those cheeses! I mean, lactose intolerance is one thing, but this!”

“Would you like to order the trout then, sir?”

“I most certainly would not like to order the trout! If cod’s not on the menu then I will just have to starve to death!”

“And the half-litre of wine?”

“Oh go on. And bring me a loaf of bread too while you’re at it.”