DEV Community

Discussion on: What's the most fun you've ever had coding?

Collapse
 
sush_kd profile image
Sushant Kumar Das

For me it was creating a coupon+referral system during an internship.
At the first instance it seemed simple enough, but as me and senior backend dev worked on it's extensibility, we made a very nice complex system where coupons could be percentage based/absolute coin based.
The system could handle quite complex business logic (with no change in code required),
e.g. if the user has played more than 5 games in the past 4 days and hasn't used more than 2 coupons, only then the coupon is valid and the corresponding credit will be transferred after you have played at least one game after coupon application.