"value":"\n <p>Today, I refactored some code on a client's Drupal project I've been working on.<\/p>\n\n<p>This is what the commit says:<\/p>\n\n<blockquote>\n <p>Showing 92 changed files with 885 additions and 156 deletions<\/p>\n<\/blockquote>\n\n<p>So, it's not a small refactor.<\/p>\n\n<p>As I worked on the custom modules needed for the site, I noticed that some common functionality was spread over multiple modules. This refactor moved that functionality into its own module, which is now a dependency of the others.<\/p>\n\n<p>The code is better, and the responsibilities of the modules are clearer.<\/p>\n\n<p>Whilst a large amount of those additions are adding test modules with test configuration, it's not a small refactor.<\/p>\n\n<h2 id=\"here%27s-the-thing\">Here's the thing<\/h2>\n\n<p>This is what it says at the bottom of the CI pipeline output:<\/p>\n\n<blockquote>\n <p>OK (79 tests, 565 assertions)<\/p>\n<\/blockquote>\n\n<p>This is the same number of passing tests and assertions I had before I started the refactor, so I know the functionality still works.<\/p>\n\n<p>If I didn't have those tests, I wouldn't have done the refactor.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>Today, I refactored some code on a client's Drupal project I've been working on.<\/p>\n\n<p>This is what the commit says:<\/p>\n\n<blockquote>\n <p>Showing 92 changed files with 885 additions and 156 deletions<\/p>\n<\/blockquote>\n\n<p>So, it's not a small refactor.<\/p>\n\n<p>As I worked on the custom modules needed for the site, I noticed that some common functionality was spread over multiple modules. This refactor moved that functionality into its own module, which is now a dependency of the others.<\/p>\n\n<p>The code is better, and the responsibilities of the modules are clearer.<\/p>\n\n<p>Whilst a large amount of those additions are adding test modules with test configuration, it's not a small refactor.<\/p>\n\n<h2 id=\"here%27s-the-thing\">Here's the thing<\/h2>\n\n<p>This is what it says at the bottom of the CI pipeline output:<\/p>\n\n<blockquote>\n <p>OK (79 tests, 565 assertions)<\/p>\n<\/blockquote>\n\n<p>This is the same number of passing tests and assertions I had before I started the refactor, so I know the functionality still works.<\/p>\n\n<p>If I didn't have those tests, I wouldn't have done the refactor.<\/p>\n\n ",