Refactoring a javascript video store



The simple example of calculating and formatting a bill for a video store opened my
refactoring book in 1999. If done in modern Javascript, there are several directions you
could take the refactoring. I explore four here: refactoring to top level functions,
to a nested function with a dispatcher, using classes, and transformation using an
intermediate data structure.

 •  0 comments  •  flag
Share on Twitter
Published on May 18, 2016 07:05
No comments have been added yet.


Martin Fowler's Blog

Martin Fowler
Martin Fowler isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow Martin Fowler's blog with rss.