Skip to content

Case study from Robert C. Martin's book implemented in Go

Notifications You must be signed in to change notification settings

rostislaved/the-payroll-system

Repository files navigation

The Payroll System implemented in Go

Robert C. Martin - Agile Software Development, Principles, Patterns, and Practices (or Agile Principles, Patterns, and Practices in C#)

Notes:

AddEmployeeTransaction

Strategy pattern used instead of Template Method pattern (because Go doesn't have inheritance)

ChangeEmployeeTransaction

Strategy pattern used instead of Template Method pattern (because Go doesn't have inheritance)

PayrollDatabase

Global instance is used like in the book. I personally don't prefer global state, but kept it for consistency purposes.

PayTransaction

Tests have not been implemented

TODO:

  1. Tests for PayTransaction
  2. implement parsing for other transactions in TestParserTransactionSource (now only addEmployee)

About

Case study from Robert C. Martin's book implemented in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages