DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

Pascal Thormeier
Pascal Thormeier

Posted on • Updated on

dev.to codes! Collaborative coding experiment: The most liked comment picks the next line of code, day 2

Day 2! The response on the first post was amazing, thanks to everyone that contributed! @ben's comment got the most likes and you all decided that we'll go with Ruby.

This experiment is inspired by a post on the ProgrammerHumor subreddit, where the original author did this exact thing: The most liked comment after 24 hours picks the next line of code.

The rules:

  • Nothing that's against any applicable law
  • Nothing that's against the community code of conduct, terms of use, or privacy policy
  • No leaking of personal information of anyone
  • No malware/ransomware/viruses/etc.
  • Keep it civil
  • (To be expanded, depending on the case)

Our code so far:

emotions = ["๐Ÿฅฒ", "๐Ÿฅฐ", "๐Ÿฅบ", "๐Ÿ˜ซ", "๐Ÿคฌ", "๐Ÿ˜ž", "๐Ÿ˜…", "๐Ÿ˜Š", "๐Ÿ˜ฐ"]
Enter fullscreen mode Exit fullscreen mode

See you in 24 hours!

EDIT: Voting has ended! If you want to contribute code or likes, please see the newest post of the series.

Top comments (15)

Collapse
 
sherrydays profile image
Sherry Day • Edited on
how_i_feel_right_now = emotions.sample
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mhcrocky profile image
mhcrocky

pow!!!

Collapse
 
ben profile image
Ben Halpern

Since weโ€™re rolling with Ruby, Iโ€™d suggest tagging the post with #ruby and maybe maybe emphasizing that more in tomorrowโ€™s post ๐Ÿ™‚

Collapse
 
thormeier profile image
Pascal Thormeier

Good idea! Adapted the tags, thanks for the headsup.

Collapse
 
nickytonline profile image
Nick Taylor • Edited on
const thereCanOnlyBeOne = new Set([
    'highlander', 'highlander', 'highlander', 'highlander'
])
Enter fullscreen mode Exit fullscreen mode

Highlander saying, "There can only be one!"

Collapse
 
renancferro profile image
Renan Ferro • Edited on
how_hasnot_had_coffee = emotions.find(emotions => emotions === "๐Ÿคฌ");
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mhcrocky profile image
mhcrocky

funny!!!

Collapse
 
adiatiayu profile image
Ayu Adiati

@nickytonline I bet you have something! ๐Ÿ˜€

Collapse
 
schemetastic profile image
Rodrigo Isaias Calix • Edited on
emotions_index = ["smiling with a tear", "in love", "pleading with puppy eyes", "tired", "angry", "disappointed", "embarrassed", "flattered", "worried"]
Enter fullscreen mode Exit fullscreen mode
Collapse
 
baasmurdo profile image
BaasMurdo
actions= ["๐Ÿ˜ด", "๐Ÿคฎ", "๐Ÿฅถ", "๐Ÿคฏ", "๐Ÿฅณ", "๐Ÿ˜ฑ", "๐Ÿ’ฅ", "๐Ÿ’จ", "๐Ÿ‘‹"]
Enter fullscreen mode Exit fullscreen mode
Collapse
 
cataua profile image
Rogรฉrio Caetano

zodiac_sign_w_no_emotions = emotions.filter((emotion) => !emotion.includes(["๐Ÿฅฒ", "๐Ÿฅฐ", "๐Ÿ˜…", "๐Ÿ˜Š"]))

Collapse
 
t0nyba11 profile image
Tony B

And as things degrade into Ruby, the audience leaves the building ;)

Collapse
 
thormeier profile image
Pascal Thormeier

To be fair, this post received more views in less time! I think the Ruby community should not be underestimated :D

Collapse
 
adam_cyclones profile image
Adam Crockett • Edited on
const emotions = [...globalThis.emotions]; delete globalThis.emotions;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
reytortugo profile image
ReyTortuga

Very well exaplined! Love it! Congrats! :D

Why You Need to Study Javascript Fundamentals

The harsh reality for JS Developers: If you don't study the fundamentals, you'll be just another โ€œCoderโ€. Top learnings on how to get to the mid/senior level faster as a JavaScript developer by Dragos Nedelcu.