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.

Latest comments (14)

Collapse
 
reytortugo profile image
ReyTortuga

Very well exaplined! Love it! Congrats! :D

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
 
baasmurdo profile image
BaasMurdo
actions= ["😴", "🤮", "🥶", "🤯", "🥳", "😱", "💥", "💨", "👋"]
Enter fullscreen mode Exit fullscreen mode
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
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited
const emotions = [...globalThis.emotions]; delete globalThis.emotions;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
nickytonline profile image
Nick Taylor • Edited
const thereCanOnlyBeOne = new Set([
    'highlander', 'highlander', 'highlander', 'highlander'
])
Enter fullscreen mode Exit fullscreen mode

Highlander saying, "There can only be one!"

Collapse
 
schemetastic profile image
Rodrigo Isaias Calix • Edited
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
 
adiatiayu profile image
Ayu Adiati

@nickytonline I bet you have something! 😀

Collapse
 
renancferro profile image
Renan Ferro • Edited
how_hasnot_had_coffee = emotions.find(emotions => emotions === "🤬");
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mhcrocky profile image
mhcrocky

funny!!!

Collapse
 
cataua profile image
Rogério Caetano

zodiac_sign_w_no_emotions = emotions.filter((emotion) => !emotion.includes(["🥲", "🥰", "😅", "😊"]))

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

pow!!!