DEV Community

Pascal Thormeier
Pascal Thormeier

Posted on

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

Day 3! We're getting somewhere! Thanks to everyone that contributed! @sherrydays posted the most liked comment for today, congrats!

Please note that the language of choice was Ruby! Any comment in another language might need some translation.

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 = ["🥲", "🥰", "🥺", "😫", "🤬", "😞", "😅", "😊", "😰"]
how_i_feel_right_now = emotions.sample
Enter fullscreen mode Exit fullscreen mode

See you in 24 hours!

Top comments (3)

Collapse
 
manthanbhatt profile image
Manthan Bhatt
if (how_i_fell_right_now === "😊") {
    letsDoThis()
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ben profile image
Ben Halpern
if how_i_feel_right_now == "🤬"
  today_is_the_day_i_quit = rand(5) == 1
end
Enter fullscreen mode Exit fullscreen mode
Collapse
 
posandu profile image
Posandu
#  ¯\_(ツ)_/¯
Enter fullscreen mode Exit fullscreen mode