exercism-go/ledger
2025-03-09 13:54:13 -04:00
..
.exercism Add new exercises 2025-03-09 13:54:13 -04:00
go.mod Add new exercises 2025-03-09 13:54:13 -04:00
HELP.md Add new exercises 2025-03-09 13:54:13 -04:00
ledger.go Add new exercises 2025-03-09 13:54:13 -04:00
ledger_test.go Add new exercises 2025-03-09 13:54:13 -04:00
README.md Add new exercises 2025-03-09 13:54:13 -04:00

Ledger

Welcome to Ledger on Exercism's Go Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

Refactor a ledger printer.

The ledger exercise is a refactoring exercise. There is code that prints a nicely formatted ledger, given a locale (American or Dutch) and a currency (US dollar or euro). The code however is rather badly written, though (somewhat surprisingly) it consistently passes the test suite.

Rewrite this code. Remember that in refactoring the trick is to make small steps that keep the tests passing. That way you can always quickly go back to a working version. Version control tools like git can help here as well.

Please keep a log of what changes you've made and make a comment on the exercise containing that log, this will help reviewers.

Source

Created by

  • @pminten

Contributed to by

  • @alebaffa
  • @bitfield
  • @dvrkps
  • @ekingery
  • @ferhatelmas
  • @hilary
  • @kytrinyx
  • @leenipper
  • @petertseng
  • @robphoenix
  • @sebito91
  • @soniakeys
  • @tleen