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!

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

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

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

πŸ‘₯ Ideal for solo developers, teams, and cross-company projects

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay