Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the jetpack domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/feedavenue.com/public_html/wp-includes/functions.php on line 6114
Code samples for the opening chapter of Refactoring - Feedavenue
Thursday, January 23, 2025
HomeTechnologySoftwareCode samples for the opening chapter of Refactoring

Code samples for the opening chapter of Refactoring

Date:

Related stories

spot_imgspot_img


From time to time people ask me for a copy of the code I used in the
opening chapter of Refactoring, so
they can follow along themselves. I had Reasons for not providing this code,
specifically laziness. Fortunately Emily Bache is more dedicated, and she
has set up a github repository – the Theatrical
Players Refactoring Kata
– with the code, and enough tests to make it
reasonable to do the refactoring.

The repository goes further than this, however, in that it includes similar
sample code in a dozen languages, including C, Java, Rust, and Python.

She has recently posted a video to her YouTube
channel
, which outlines why she encourages folks to use this code while
they are reading that chapter. Her channel includes a lot of videos on good
code technique, and she has a Patreon for readers to support
her work.




Source link

Latest stories

spot_img