From the course: Agile Software Development: Refactoring
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Code kata
- [Instructor] In this course, we'll learn refactoring using code kata. Code kata is a technique for learning new coding skills. The word kata comes from martial arts practice. In martial arts, a kata is a sequence of moves that you practice repeatedly. You practice the moves so many times that the body develops muscle memory. You can perform the moves without thinking about them anymore. In a martial arts kata, you imagine an invisible opponent. In the first TaeKwonDo kata that I learned, when the imaginary opponent attacked, I turned left, blocked, and punched. Then the imaginary opponent attacked again and I turned right, blocked, and punched. There were 15 to 20 of these simple moves to repeat over and over and over and the more I practiced, the more muscle memory I built. My body could execute the moves without my brain having to think about them. So when I sparred with a real partner, my body automatically reacted effectively. Code kata are like that but for a coding problem…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
What is refactoring?53s
-
(Locked)
Test-driven development (TDD)1m 10s
-
(Locked)
Code kata1m 24s
-
(Locked)
Setting up the new code kata2m 30s
-
(Locked)
Setting up the TDD environment3m 13s
-
(Locked)
Refactoring: Rename Variable3m 47s
-
(Locked)
Micro-refactoring3m 47s
-
Refactoring: Inline Code4m 3s
-
(Locked)
Code kata: Continue solving the problem4m 2s
-
(Locked)
Refactoring: Extract Method4m 38s
-
(Locked)
-
-
-