Login

Title

Test-Driven Development and Refactoring Memo

Abstract

Describe refactoring. Describe test-driven design. Describe an example of application of refactoring.

Author

Douglas Troy

Source

Larman, Craig. Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development (3rd Edition), 2004.

http://www.refactoring.com/catalog/index.html

Genre

Memo

Assignment Duration

Short Activity

Communication Skill

Reading
Writing

Technical Skill

Program Design
Continuous Quality Assurance
Coding

Workplace Scenario

The purpose of this assignment is to explore two Extreme Programming (XP) practices: test-driven development and refactoring. The practice of test-driven development calls for software developers to create tests before code is actually produced. The example in Chapter 21 is based on unit testing, but test-driven development can be applied to other tests, such as feature tests, usability tests, load tests, etc.

Refactoring is a programming practice aimed at refining code without changing its behavior (it is not debugging). Over time about 100 named refactoring patterns have been identified.

In this memo to your supervisor, you will summarize the key points behind test-drive development and refactoring, and you will identify an example of how refactoring can be applied.

Test-driven development and refactoring are practices that you can apply now in your other classes, and later in an internship or in your career.

Team Size

N/A

Files

Citation

Douglas Troy, “Test-Driven Development and Refactoring Memo,” Incorporating Communication Outcomes into the Computer Science Curriculum, accessed September 25, 2017, http://cs-comm.lib.muohio.edu/items/show/60.

License

Creative Commons License

Comments

Allowed tags: <p>, <a>, <em>, <strong>, <ul>, <ol>, <li>