DEV Community

loading...
The DEV Team

New badge coming soon: 4 Week Streak

ben profile image Ben Halpern ・1 min read

We will be launching a new profile badge that folks can earn if they post on dev.to once a week for four weeks in a row. As it's the first week of 2019, we wanted to make a new badge that rewarded folks with writing goals in the new year.

We try not to go overboard on gamification of the platform, but we see this as a fun reward for those struggling to sit down to write.


We have not yet written the functionality, but I promise we will do so by January 28th, when the first badges are to be awarded.

If you'd like to contribute the functionality yourself, feel free to make a PR.

Here is the file where the functionality would live:

app/labor/badge_rewarder.rb

And the tests should go here:

spec/labor/badge_rewarder_spec.rb

The function should be designed to run once a day and award the badge to anyone who has had one article with published: true in each of the past four weeks. No badge can be awarded more than once via validation, so it is not necessary to guard against that in the code.

Happy coding ❤️

Discussion (10)

pic
Editor guide
Collapse
rpalo profile image
Ryan Palo

Aw yiss! I love DEV badges!

Collapse
kayis profile image
K

Nice, reminds me that I need to contribute to get ahead again, lol.

Collapse
aspittel profile image
Ali Spittel

🙌🙌🙌 very excited about this!

Collapse
shindakun profile image
Steve Layton

Here they come... got mine

Collapse
prathaprathod profile image
Prathap Rathod

Wow, Nice New Badges are coming ah... I am excited about this

Collapse
benprax profile image
Ben Prax

swweeet!! great timing too 😄 thanks Dev Team!

Collapse
zia profile image
Zia

Excited! :)

Collapse
somedood profile image
Basti Ortiz (Some Dood)

Does the badge award people retroactively? Or will people only be eligible for the badge after January 28th?