<commit_before>---
layout: post
title:  "Tactical Refactoring"
date:   2014-10-20 09:30:00
author: dan_bernier
---

# Refactoring Tactics

Refactoring happens in many small steps.

Ever heard this? "This code sucks. We need to refactor." It sounds like they'll
sit down, open the sucky code source files, Refactor The Code, and then they'll
have good code, right? Sucky &rarr; Refactor &rarr; Good. Like a machine.

Refactoring happens in many small steps. A little at a time, over time.

## A Story

We're in the middle of a move from an older-style layout to a newer one: it<commit_msg>Take first header out of the post<commit_after>---
layout: post
title:  "Tactical Refactoring"
date:   2014-10-20 09:30:00
author: dan_bernier
---

Refactoring happens in many small steps.

Ever heard this? "This code sucks. We need to refactor." It sounds like they'll
sit down, open the sucky code source files, Refactor The Code, and then they'll
have good code, right? Sucky &rarr; Refactor &rarr; Good. Like a machine.

Refactoring happens in many small steps. A little at a time, over time.

## A Story

We're in the middle of a move from an older-style layout to a newer one: it
{'fraction_non_alphanumeric': 0.0792838874680307, 'fraction_numerical': 0.023870417732310314, 'mean_word_length': 3.9535864978902953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2353776', 'n_tokens_mistral': 392, 'n_tokens_neox': 363, 'n_words': 183}