https://github.com/midwire/99bottles
My shameless green solution to 99bottles problem
https://github.com/midwire/99bottles
Last synced: about 1 year ago
JSON representation
My shameless green solution to 99bottles problem
- Host: GitHub
- URL: https://github.com/midwire/99bottles
- Owner: midwire
- Created: 2020-04-23T17:08:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T22:54:55.000Z (almost 5 years ago)
- Last Synced: 2025-02-15T16:54:12.936Z (over 1 year ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Going through Sandi's book 99bottles of OOP...
This is my attempt at a shameless green test-passing solution for the 99bottles of beer problem.
Sandi's ShamelessGreen flog score is 25.6. Mine is 38.3.
The book is great because it teaches why the rules, best-practices and guidelines for good OOD and development are not inviolable and that there are tradeoffs that need to be weighed carefully.
I am, once again, learning from Sandi that there are times when violating DRY is alright if it prevents too much abstraction, which would otherwise raise the cost of change (level of cognitive overhead during maintenance).