DEV Community

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

Pascal Thormeier on November 09, 2022

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 ...
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!!!

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
const thereCanOnlyBeOne = new Set([
    'highlander', 'highlander', 'highlander', 'highlander'
])
Enter fullscreen mode Exit fullscreen mode

Highlander saying, "There can only be one!"

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
 
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
 
schemetastic profile image
Schemetastic (Rodrigo) • 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
 
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
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited
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