Faye's Book

Keep It Simple, Stroopwafel

March 14, 2020

I have been doing some online conversation classes to practice speaking in German, and in this regard I’m bad at 2 things: 1) speaking in German (duh) and 2) small talks.

Raffles!

So I thought, I should list down all the topics beforehand and randomly pick from it when I need a topic to talk about! Should be easy to do… in JavaScript? (Spoiler alert: I don’t code, especially if your standard of ~rEaL cOdInG~ doesn’t involve ~jUsT mArKuP lAnGuAgEs~)

Anyway. I asked my husband the keyword I should search for to do such thing and from him I learned this function called Math.random().

Cool. Saw it quickly on MDN. Ok too comprehensive. That’s a lot of unknown terms. Saw it on W3Schools. There you go, the straightforward stuff!

Great, time to look at how other people do it! Or maybe not…

Why are there no simple examples anymore???

I looked at maybe 5 tutorials of how to make a ‘simple’ raffle in JavaScript with code snippets and link to their code on GitHub. I seriously just want a skeleton of what it works, and yet all the tutorials has shitloads of styling and I’m pretty sure someone even had to use Bootstrap.

And you freaking blame people why they just copy paste nowadays? Honey, people will have to go through these tutorials with lots of extra toppings in it that they have to dig further to find where the brownie is. Ain’t nobody got time for that! Not to mention the unnecessary cognitive overload the reader has to take.

Anyway, done with the rant, time to write about a sample of a simple tutorial.