DEV Community

Pascal Thormeier
Pascal Thormeier

Posted on

4

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!

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up