Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Refactoring Masterclass - Adding Receipts in the Checkout Kata

Video information, playback and saved actions.

Refactoring Masterclass - Adding Receipts in the Checkout Kata

Description: Regular viewers will have noticed that while I use the keyboard for refactoring, I tend to navigate in and between files using the mouse. I’m not sure that it’s less efficient than keyboard only, but I am interested to find out.

Today I’m going to make extensive structural changes to our checkout code. I wonder if I can do it without touching the mouse?

* 00:00:26 Recap
* 00:01:32 Add a test to drive the new interface to checkout
* 00:02:47 IntelliJ Bug - Show error description is broken
* 00:03:56 Progressively refine the implementation through tests
* 00:06:37 Refactoring a typealias to an interface
* 00:09:41 Simple implementations might work
* 00:11:22 Add a test we expect to pass
* 00:11:47 Add a test that will make us add code
* 00:13:27 Not my finest 5 minutes
* 00:17:49 Once tests are running we can check more complicated cases
* 00:19:23 Let Junie do the toil
* 00:20:03 More testing reveals an edge case
* 00:22:32 Now what about meal deal receipts
* 00:23:14 IntelliJ Make Parameter Receiver bug
* 00:25:03 Meal deals work except for the receipt
* 00:25:34 Add a test for the receipt, then do the simplest thing
* 00:27:48 Refactor to remove hard-coded strings
* 00:28:37 Another test reveals a bug
* 00:29:03 Finally I need the mouse!
* 00:30:15 Do our receipt lines add up?
* 00:30:43 Eeek no!
* 00:33:21 Final tidy
* 00:34:21 Review

There is a playlist of Checkout Kata episodes - https://www.youtube.com/playlist?list=PL1ssMPpyqochy79wllIMVsSvg_IfbYr1Z

What was that? It was Dmitry Kandalov's Test Progress Bar plugin - https://plugins.jetbrains.com/plugin/28859-test-progress-bar

If you like this video, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style. Close description
      
Videos related to "Refactoring Masterclass - Adding Receipts in the Checkout Kata"

Related videos are temporarily unavailable.

Try again, or come back later.