CodeX
Published in

CodeX

CODEX

Roman numerals as an example of TDD refactoring in Java

Photo by Fabrizio Verrecchia on Unsplash

The test-driven development (TDD) cycle consists of fail (red), pass (green) and refactor (blue). However, refactoring tends to get short shrift in most tutorials, it’s barely mentioned.

Or, when it’s mentioned, it feels unrealistic, especially if the intended program is of little practical value. Roman numeral arithmetic doesn’t have…

--

--

--

Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

30 Facts About Linux that You Probably Didn’t Know

Creating a CRUD App with Ruby

HADA: HornsApp Dependency Accessing

Why Should Your Company Develop Its Own Software?

WE WANT YOU! ZKSwap Community Volunteer Plan is here.

CS373 Spring 2022 Ricky Woodruff — Blog 9

Xonsh — a Python-powered shell

SpecFlow Tips: Baseclass or Context Injection

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alonso Del Arte

Alonso Del Arte

is a composer and photographer from Detroit, Michigan. He has been working on a Java program to display certain mathematical diagrams.

More from Medium

Checklist: When to write custom exceptions in Java

Exploring What’s Inside java.util.concurrent Package (Part 1)

When to and When Not to Use Enums in Java

TextBlock: It’s a Java String With Superpowers