https://github.com/emadb/birthday_greeting_js
The implementation of the birthday greeting kata (http://matteo.vaccari.name/blog/archives/154)
https://github.com/emadb/birthday_greeting_js
Last synced: over 1 year ago
JSON representation
The implementation of the birthday greeting kata (http://matteo.vaccari.name/blog/archives/154)
- Host: GitHub
- URL: https://github.com/emadb/birthday_greeting_js
- Owner: emadb
- Created: 2020-04-14T08:19:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T10:57:24.000Z (over 3 years ago)
- Last Synced: 2025-02-05T05:29:39.676Z (over 1 year ago)
- Language: JavaScript
- Size: 546 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Birthday greeting kata
Original idea: [The birthday greetings kata](http://matteo.vaccari.name/blog/archives/154)
Problem: write a program that
- Loads a set of employee records from a flat file
- Sends a greetings email to all employees whose birthday is today
The flat file is a sequence of records, separated by newlines; this are the first few lines:
```
last_name, first_name, date_of_birth, email
Doe, John, 1982/10/08, john.doe@foobar.com
Ann, Mary, 1975/09/11, mary.ann@foobar.com
```
The greetings email contains the following text:
```
Subject: Happy birthday!
Happy birthday, dear John!
```
with the first name of the employee substituted for "John"