▬▬▬▬▬▬▬▬▬▬ This video is sponsored by Tuple: https://tuple.app/emily ▬▬▬▬▬▬▬▬▬▬
So, What Would Martin Fowler Do? I’m going to show you, with code, using his "Theatrical Players" example, in Javascript.
▬ Links ▬▬▬▬▬▬▬▬▬▬
You can find the code on my Github, in the 'demo_javascript' branch ➡️
https://github.com/emilybache/Theatrical-Players-Refactoring-Kata/tree/demo_javascript
If you like this content and would like to support my work with this and other code katas, please join my Patreon ➡️ https://www.patreon.com/EmilyBache
Emily on social media
X (Twitter) ➡️ https://twitter.com/emilybache
LinkedIn ➡️ https://www.linkedin.com/in/emilybache
Mastodon ➡️ https://sw-development-is.social/@emilybache
▬ Video chapters ▬▬▬▬▬▬▬▬▬▬
00:00 - Introduction
01:42 - The Theatrical Players exercise code
05:54 - Extract function volumeCreditsFor
10:11 - Where to go for more
10:57 - Split Loop
14:26 - Review the design - calculation logic separated from formatting logic
15:37 - Extract function renderPlainText
16:40 - Creating a better home for the calculation functions
19:28 - Enriching performances
22:53 - Summarizing where the refactoring goes after this