The First Date
You’ve got part of your Project API down; now you need to use that to calculate a projected completion date. The requirement is to calculate the project’s end date based on the number of tasks finished in the last three weeks. I’ll appropriate the agile term “velocity” to describe the rate of task completion. To make this work, you need to distinguish between tasks that concluded in the last three weeks and tasks that did not.
That means you have to deal with dates.
I’m sorry.
Programming with dates and times is the worst. Time is especially problematic in testing because tests work best when each test run is identical. However, owing to the nature of the universe, the current time inexorably changes from test run to test run. ...
Get Rails 5 Test Prescriptions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.