Preview Mode Links will not work in preview mode

Evil Geniuses


Oct 31, 2018

On this episode of the Evil Geniuses Podcast, we continue our series on a first example of the video checkout system. To start off we recap some of the points from the first two parts and then move into the final stretch! We talk about the two main patterns that are present in this code, namely base charge for rental and extra charge for rental before getting into renaming decoupling and calculating a final cost. We add in some reminders about primitive obsession and take some handy lessons from the idea of a library and borrowing books, so stay tuned for that! For all this, and much more be sure to listen in as we go deep!

 

Key Points From This Episode:

  • Recapping the patterns from the first two parts of this series.
  • Base charge for rental and extra charge for rental as the two patterns.
  • Renaming a commit and why it is more accurate now.
  • The meaning of the number two in this context.
  • Making it obvious that new movies have a base rental period.
  • Looking to the library for an analogy on extra charges and new movies.
  • Finally calculating the whole charge for the rental.
  • Figuring out the title of the movie by removing a coupling.
  • Writing exemplary code for others to follow.
  • An HTML challenge to the listeners!
  • And much more!

 

Commits

 

Links Mentioned in Today’s Episode:

Evil Geniuses on Twitter

Stride

GangofFour

Ruby

JavaScript

Sandi Metz

Primitive Obsession

Refactoring