10

Santa's Christmas Wishlist

 3 years ago
source link: https://dev.to/sandordargo/santa-s-christmas-wishlist-3djo
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Santa's Christmas Wishlist

Dec 19 Originally published at sandordargo.com

・1 min read

Christmas is coming, and I created a small coding exercise for you that focuses on Object-Oriented Design and delivering presents to every child!

The code kata is called Santas's Christmas Wish List and you can clone the description from my GitHub.

GitHub logo sandordargo / santas-christmas-wishlist

A coding dojo about making sure that everyone gets a gift and only one gift

Santa's Christmas Wish List

Christmas is coming and every child deserves a gift, but Santa's resources are limited. We have make sure that children can choose their gifts both via mail or in person in Santa's Grotto and that they express their wish only once.

There is Santa's Big Book, with all the children's information in it. A child is identified by their:

  • Address
  • Date of Birth
  • Unique ID

Due to the economic crisis, Santa cannot delivery anything the kids might ask for, so they have to choose among 4 options. This lets Santa both control what can children ask for and he can submit some batch orders to the elves thus he keeps production costs lower.

Children can decide whether they just want to send a mail to Santa with their choice or they can visit Santa's Grotto so they choose in person.

To support fast processing, they…

If you like it, feel free to star and share the repo!

Merry Christmas!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK