https://martinfowler.com/articles/refactoring-video-store-js/
Original version written in javascript. I added an E2E test.
Lets start !
My aproach:
- move calculation logic to classes
- build an intermediate data structure for the rendering functions