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

Pascal Thormeier - Nov 11 '22 - - Dev Community

Another 24 hours have passed and we're now on day 4. @manthanbhatt has posted today's most liked comment, adding a new part to whatever we're building here, 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
if how_i_feel_right_now === "😊"
    letsDoThis()
end
Enter fullscreen mode Exit fullscreen mode

(I had to adjust the code a bit for it to be valid Ruby.)

See you in 24 hours!

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player