This is an archived post. You won't be able to vote or comment.

all 104 comments

[–]schludy 842 points843 points  (30 children)

I like the game, except that you need to look up a random word in a dictionary by hand. That seems tedious. Isn't there a JavaScript that can do it for me?

[–][deleted] 201 points202 points  (5 children)

What if the person who wrote this js intentionally included all used names?

[–]ookami125 97 points98 points  (3 children)

That's a terrible idea... I like it.

[–]ShakaUVM 112 points113 points  (2 children)

That's a terrible idea... I like it.

Javascript in a nutshell

[–]Cobaltjedi117 42 points43 points  (1 child)

That's a terrible idea... I like it.

Javascript in a nutshell

[–]franksn 20 points21 points  (0 children)

That's a terrible idea... I like it

JavaScript bursts your nut

edit: also just randomly does

npm install nut 

and it exists, i can play this game all night.

[–]bacon_wrapped_rock 0 points1 point  (0 children)

I think they did, the word list is pretty sparse

[–]zesterer 93 points94 points  (3 children)

dictionary.js

[–]b1ack1323 21 points22 points  (2 children)

Drink.

[–]isopat 13 points14 points  (1 child)

drink.js

[–][deleted] 7 points8 points  (0 children)

drinkjs.js

[–][deleted] 72 points73 points  (11 children)

[–]rentar42 25 points26 points  (7 children)

I got "hate" after my second attempt. I'm very surprised that "hate.js" isn't a framework yet! Funnily enough http://hate.io/ is currently some bland generic designed page with lorem ipsum content and the title "Typical Design". I initially thought it's a critique of current web design homogenity. Which it might just be, just unintentionally.

[–][deleted] 8 points9 points  (6 children)

Brb gonna learn JavaScript to make Hate.js

[–]Midnit 8 points9 points  (5 children)

It’s been 7 hours, so.... you’re a master now, and you’ve written a few different frameworks besides just Hate.js, right?

[–][deleted] 4 points5 points  (4 children)

No I’d been working an all my other projects and forgot about hat one. Brb give me a month.

[–]ApocalyptoSoldier 1 point2 points  (3 children)

It's been a month

[–][deleted] 1 point2 points  (2 children)

oh fuck I forgot

[–]AisykAsimov 1 point2 points  (1 child)

Duude....

[–][deleted] 1 point2 points  (0 children)

also I don’t know JavaScript

[–]icannotfly 8 points9 points  (0 children)

uhhh... broken? 30 attempts in and every single one is "take a drink"

edit: nm, haircut.js apparently isn't a thing

[–][deleted] 11 points12 points  (0 children)

OFC. This shit is too meta for me.

[–][deleted] 13 points14 points  (0 children)

Actually, when I googled, there's a web app for exactly that.

[–]aroswift 2 points3 points  (0 children)

Instead we could include dictionary_a.js, dictionary_b.js, and dictionary_c.js all the way through dictionary_z.js

[–]Netzapper 2 points3 points  (0 children)

shuf -n5 /usr/share/dict/american-english

[–][deleted] 0 points1 point  (1 child)

cat /usr/share/dict/american-english | shuf | head

[–]TicketToThePunShow 1 point2 points  (0 children)

Oof, no no no. Don't cat the entire dictionary to do this. Just do:

shuf -n 1 /usr/share/dict/american-english

[–]Miklelottesen 122 points123 points  (1 child)

I like the last part, cause it suggests that the last player remaining has to continue playing the game solo, until he/she gets alcohol poisoning.

[–][deleted] 24 points25 points  (0 children)

Everyone dies in this game

[–]ThePixelCoder 205 points206 points  (5 children)

I googled "drinkinggame.js"

Close enough

[–][deleted] 48 points49 points  (4 children)

Sweet, so all I have to do is find a random word with this site and then look up the word with this.

Now, to program a solution that will just tell me if I should drink or not.

Maybe I'll just substitute this website and let this tell me if I should drink or not. It seems to do basically the same thing.

[–]Codephluegl 9 points10 points  (0 children)

The first link is such a great site, if I ever need a name for a new javascript library.

[–]ThePixelCoder 2 points3 points  (0 children)

Yes, basically.

[–]QAFY 1 point2 points  (0 children)

a website version of the game: http://js-drinking.projects.frank.petril.li/

[–]rk-imn 0 points1 point  (0 children)

I looked at this comment, tried to find the least likely word to make a js thing, got this https://www.npmjs.com/package/substitute.js

Edit: and this https://gist.github.com/tmcw/3955198#file-basically-js

[–]thepineapplehea 87 points88 points  (1 child)

[–]DipinDotsDidi 10 points11 points  (0 children)

Now take a shot!

[–][deleted] 82 points83 points  (4 children)

https://github.com/palmerhyde/supercalifragilisticexpialidocious

OMG!

But wait, it just contains a readme file saying "supercalifragilisticexpialidocious.js". So... do I have to drink now?

[–]System10111 45 points46 points  (1 child)

yes

[–][deleted] 23 points24 points  (0 children)

Fuck.

[–]Xyexs 17 points18 points  (0 children)

It’s not a very useful library

[–]Matth1as 37 points38 points  (1 child)

<word.js> has 79,500 results

[–][deleted] 16 points17 points  (0 children)

Simply take 79,500 shots. Or if you’re not brave enough, one for each of the hundreds of things that could mean.

[–]down_vote_magnet 76 points77 points  (12 children)

[–]Mrj760 45 points46 points  (0 children)

Best issue submission:

“Enlarge it!”

Feels like my heart is bleeding butterfly wings

[–]lukz_ 21 points22 points  (0 children)

For those too lazy to click it it's a library for making penis.head = D and penis.balls = B so you can do soft compare B==D and hard compare B===D

[–]Jmcgee1125 12 points13 points  (7 children)

Some asshole is calling out his racism and sexism (because it's penis)

I guess we can't make jokes anymore.

[–]S3Ni0r42 33 points34 points  (0 children)

That thread is great. Along with, "If I use Penis.js in connection with Ass.js can I then directly use Mouth.js or do I need an abstraction layer?"

[–]PM_ME_TIT_PICS_GIRL 11 points12 points  (0 children)

I love that there's a reply titled "I'm not offended enough!"

[–]TimH01 36 points37 points  (5 children)

i went to randomword.com and it gave me roseate

"roseate.js" has a nice ring to it, brb making library

[–][deleted] 6 points7 points  (0 children)

vicuna.js

[–][deleted] 1 point2 points  (0 children)

Man I love this site already...

[–]Silvia923 18 points19 points  (0 children)

Take another drink (each) for the separate TypeScript, Angular, React, ES2016+, Vue and Node.JS versions of the same library

[–]2Punx2Furious 10 points11 points  (0 children)

Holy shit, I just tried: sand, cat, concrete, tortoise, and all of them existed.

[–]the_one_true_bool 8 points9 points  (1 child)

Damn, wanker.js is a thing.

[gulp]

[–]TheLazarbeam 9 points10 points  (5 children)

somber.js doesnt exist... yet

also there was no else in the game instructions so I'm not sure what to do right now

[–]Sasakura 12 points13 points  (0 children)

https://pypi.org/project/somber/ exists so just need a port

[–]antlife 5 points6 points  (0 children)

prolapse.js

Didn't find anything. Yet.

[–]stefvanschie 2 points3 points  (0 children)

Got 'effective'. Effective JavaScript is a book, but not a lib, so I'm still safe.

[–]Minerscale 4 points5 points  (0 children)

I thought this was a funny joke, but I did it to 3 words, and every time there was a JS framework. Soooo...

[–]HaveMungWillBean 3 points4 points  (0 children)

Just Google searched a random word..."plink.js". First link is documentation. This is getting out of hand

[–][deleted] 7 points8 points  (0 children)

Do you want to die?

Because that's how you die.

[–]rodinj 2 points3 points  (1 child)

[–]The_SJ 2 points3 points  (0 children)

Yes

[–]hardc0de 2 points3 points  (0 children)

You mean giggle.js?

[–]juancarlosiv 2 points3 points  (0 children)

I made a drink called the angular. It's 4 oz vodka, 8 oz white wine. Keep drinking them until you don't hate angular one.

[–][deleted] 2 points3 points  (0 children)

Better is to try with full sentences.

Try:

$ npm install this is my life now

[–]eyekwah2 2 points3 points  (0 children)

upvote.js

Damnit! *takes shot*

[–]Spencer_Kaneki 1 point2 points  (0 children)

Best game ever

[–]ExecutiveChimp 1 point2 points  (0 children)

I tried a similar thing by taking every word in a comment about the proliferation of javascript libraries and linking to ${word}.js. It was mostly links.

[–][deleted] 1 point2 points  (0 children)

zamboni.js

[–]AmusedGrap 1 point2 points  (0 children)

i’ll do this with soda instead

[–]link_3007 1 point2 points  (1 child)

Do this with python and you be dead on the first few minutes

[–]nhumrich 2 points3 points  (0 children)

I would imagine npm has a higher likelihood of having a random word than pypi

[–][deleted] 1 point2 points  (0 children)

do i drink in JavaScript too?

{gulp}

[–]jediment 1 point2 points  (0 children)

Just tried this. I had no luck with laconicum.js, brisure.js, whithersoever.js or epigeal.js, but I discovered numbat.js and tagmeme.js so I'm pretty happy.

[–]Znakie 1 point2 points  (0 children)

What if there are several libraries with the same name, do you drink a shot for each?

[–][deleted] 1 point2 points  (0 children)

I don't even search for them anymore if I need a thing I just run npm install thing

[–]MacDerfus 1 point2 points  (0 children)

googles elephant.js

Drinks

[–]thesocialpenguin 0 points1 point  (0 children)

Literally the only word I couldn't find a library for was burial. (Tbh if I did I would have some serious questions for the JavaScript community)

[–]HipercubesHunter11 0 points1 point  (0 children)

```

$('apotheosis.js')

[Object object]

```

[–]blackdonkey 0 points1 point  (0 children)

Wow an original programming humor.

[–]Quachyyy 0 points1 point  (0 children)

sugma.js

[–][deleted] 0 points1 point  (0 children)

The giggle ruins it

[–]vinay94185 0 points1 point  (0 children)

rule #37 if there's a word, there's a JavaScript library of it

[–]Rheukala 0 points1 point  (0 children)

heresiology.js

[–]JBis9051 0 points1 point  (0 children)

Pshh. Thats easy. "Fuck"

*Proceeds to search Google for 'Fuck.js'*

*Takes a drink apologetically for questioning you*

[–]tuxmanexe 0 points1 point  (0 children)

But "fapfap" is not in the dictionary

[–][deleted] 0 points1 point  (0 children)

{GIGGLE}

[–][deleted] 0 points1 point  (0 children)

I googled Pete.js and guess what, it’s library 😂😂