Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

9.1. Sam's New Requirement

Sam met me for lunch at the local vegetarian bistro.

"You know, I was thinking," Sam began.

"Thinking up more things to do, I presume?" I replied.

"Well, yeah. I'd like to keep a report of what each customer is currently renting. Sometimes we get calls from customers who can't remember if they have any CDDiscs currently rented. They are a little absent minded," he stated.

"OK, it should just be an MM change," I said.

"An MM change?" he queried.

"Yes; a Major Minor change. It's a major change, since it involves keeping more information than we currently do. However, it's minor since we only need to rethink how our classes are arranged," I answered.

"That's good. So the other thing I was thinking about is probably an MM too," he said.

"What's that?" I asked.

"I'd like to keep track of all the CDDiscs that a customer has rented. I will be offering discounts to frequent renters in the future," he replied.

"Well, that's not quite as MMish," I said. "Tim and I will discuss it and get back to you."

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata