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:
And the tests should go here:
The function should be designed to run once a day and award the badge to anyone who has had one
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 ❤️