My friend in a 12-step group wanted to know how many months, weeks and days each of his sponsees had, and he was tired of entering the same info repeatedly.

How it works

User enters either day count or sobriety date, and the app calculates the other value. You also get the sobriety period in words, like, "6 months, 3 weeks, and 4 days"

Challenges I ran into

The Java 7.0 API for dates and calendars has no easy way to disregard time of day, time zones, or daylight savings time. So one-off errors kept occurring. There's also no built-in datediff function.

Accomplishments that I'm proud of

What I learned

AIDE will support test-first development if you put all your test cases in a separate folder. Then you can run automated tests as a console application.

What's next for Sobriety Daycount

Built With

Share this project: