Tag Archives: refactoring

A Basic Compiler – A Great Refactoring Opportunity

Years ago (2006) I wrote a compiler for TI BASIC, the dialect of BASIC that I learned on my TI 99/4A (many many years earlier). This is an “ancient” computer language and one of the first that I learned. (I … Continue reading

Posted in software development | Tagged , , , | Leave a comment

Brainmess: Extract Tape Class

Last time I worked on extracting out the methods related to fetching instructions and jump instructions into a Program class. I’m going to use a similar pattern today to extract out methods related to the tape. Currently the tape is … Continue reading

Posted in software development | Tagged , | 1 Comment

Brainmess: Extract Class Program

Today, I’d like to address the issue of “data clumping” in the original implementation of Brainmess. (See all previous posts: testing, explanation and extract methods.)

Posted in software development | Tagged , | Leave a comment

Brainmess: Extract Jump Methods

Today, I’ll start to refactor the Brainmess program. In the first post I gave an “all-in-one” solution. Next I added some automated tests to give me some confidence that I don’t break anything during the process. The last time that … Continue reading

Posted in software development | Tagged , , | 7 Comments

Brainmess: Part 2

In my last post I introduced you to Brainmess and presented an “all-in-one” implementation of an interpreter for it. In this post I’m going to begin the process of refactoring to address some of the concerns I had in the … Continue reading

Posted in software development | Tagged , , | 2 Comments

Brainmess

I was introduced to a language with a NSFW name a few years ago. Mark Chu-Carroll posted about it. It is also documented at Wikipedia (Note, the name of the article I linked to is NSFW due to language). [Updated … Continue reading

Posted in software development | Tagged , , , , | 9 Comments

Abstract Algebra is Refactoring

In my previous post I presented a little introduction to abstract algebra. The easiest way for me to explain abstract algebra to a software developer is that it’s a lot like refactoring.

Posted in mathematics, software development | Tagged , | Leave a comment