Download EPUB

Commits · FagnerMartinsBrack/jack-the-moneylender

GitHub 2 min read Original article
Summary
This page lists a Git commit history from November 6, 2018, plus an earlier batch from September 24, 2018, all authored by FagnerMartinsBrack. The work builds a tiered interest calculator using test-driven development, with emoji markers for red (failing test), green (passing test), and hammer (refactor).

Key steps include creating a Money model to avoid floating point errors, adding equals to, less than, and plus methods to it, and writing tests for loan amounts at $2000, $2001, $2002, $2003, $5000, $5001, $5002, and $5003. Later commits remove duplication, strip magic numbers, and trim tests down to essential coverage.
  1. Commits on Nov 6, 2018

  2. Commits on Sep 24, 2018

Keep this one

Free to use, with no card: save new links within daily limits and read everything you save.

Every new account gets the paid plan for its first 14 days.