---
title: "January 2006 at Agile Israel - Mock Objects & Refactoring"
url: "https://osherove.com/blog/2005/12/19/january-2006-at-agile-israel-mock-objects-amp-refactoring.md"
canonical: "https://osherove.com/blog/2005/12/19/january-2006-at-agile-israel-mock-objects-amp-refactoring.html"
published: "2005-12-19T14:46:00"
updated: "2005-12-19T14:46:00"
tags: ["Agile Israel News", "Agile Related", "Community", "Team Agile News"]
author: "Roy Osherove"
description: "More Info: http://www.agileisrael.com/Default.aspx?tabid=118 When : January 5th, 2006 Gathering at 17:30, we start promptly at 18:00 Part I : Mock Objects - Asher Sterkin Mock Objects are a powerful mechanism for unit…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# January 2006 at Agile Israel - Mock Objects & Refactoring

By Roy Osherove December 19, 2005 In [Agile Israel News](https://osherove.com/blog/category/agile-israel-news), [Agile Related](https://osherove.com/blog/category/agile-related), [Community](https://osherove.com/blog/category/community), [Team Agile News](https://osherove.com/blog/category/team-agile-news)

**Historical article** · Originally published December 19, 2005; technical details may be outdated.

<table><tbody><tr><td id="_ctl0__ctl2__ctl0_HtmlHolder"><div><strong>More Info: <a href="http://www.agileisrael.com/Default.aspx?tabid=118">http://www.agileisrael.com/Default.aspx?tabid=118</a></strong></div><div>&nbsp;</div><div><strong>When</strong>: January 5th, 2006</div><br><div>Gathering at 17:30, we start <strong>promptly</strong> at 18:00</div><br><div><u><strong>Part I : Mock Objects - Asher Sterkin</strong></u></div><br><div>Mock Objects are a powerful mechanism for unit testing of classes, which depend on various environment elements: database, communication, clock, calendar, etc. Sometimes Mocks are confused with Stubs, Fakes, Simulators. Mocks are slightly more complex, though more flexible, than Stubs or Fakes and are much simpler than Simulators. In fact Mocks are so simple that sometimes developers miss the whole point and find themselves to be completely puzzled about effective usage of Mocks for unit testing and Test-Driven Development. And this is a shame: when properly used especially in combination with Design Patterns Mocks can be an extremely powerful mechanism of Test-Driven Development supporting very aggressive parallel implementation of multiple tasks related to the same story.</div><br><div>In this presentation I will provide a systematic introduction of Mocks and will demonstrate how Mocks could be turned into an integral part of the Agile software development process.<br></div><br><div><strong><u>Part II: Refactoring&nbsp;101 - Justin Angel</u></strong></div><br><div>Do you write Agile code or do you write Fragile code? Does your code embrace changes or does it crush and burn? Do you find yourself debugging over-commented, over-duplicated, over-complicated and over-bloated code?<br>This talk will be about Agile coding techniques that will assist us in writing code that can last the duration. We will see examples on common coding problems such as Code duplication, redundant commenting, hard-coded code smells and bloated code. And we'll work togather on finding solutions for these problems.<br><strong><u></u></strong></div><div><strong><u>Agenda:</u></strong></div><br><div>18:00 - 19:15 - Mock Objects Techniques - Asher Sterkin</div><br><div>19:15 - 19:30 - Break</div><br><div>19:30 - 20:45 - Refactoring Techniques - Justin Angel</div></td></tr></tbody></table>

<table><tbody><tr><td id="_ctl0__ctl4_ContentPane"><table><tbody><tr><td></td><td>&nbsp;</td><td><span id="_ctl0__ctl4_dnnTitle_lblTitle">Speaker Details</span>&nbsp;</td><td></td></tr><tr><td colspan="4"><hr></td></tr></tbody></table><div id="_ctl0__ctl4_ModuleContent"><table><tbody><tr><td id="_ctl0__ctl4__ctl0_HtmlHolder"><div><strong><u>About Asher Sterkin</u></strong></div><div><em>Asher has about 25 years of professional software development. His areas of specialization include Object-Oriented Analysis and Design, Design Patterns, UML, Agile Development Practices,&nbsp; Configuration Management, Generic and Generative Programming, and Statecharts.</em></div><div><em>Asher firmly believes in "hamayan hamitgaber" approach to education, especially when it's applied to the professional knowledge: the more you share with others the more you learn. For that reason Asher spent three years on teaching Advanced C++ and Design Patterns course in Hadassah Technology College, Jerusalem. In his current position of Principal Engineer at NDS technologies Israel Asher spends a substantial portion of his time on coaching and consulting activities helping others to work less time, smarter and yet to earn and enjoy more from their work.</em></div><div><em></em>&nbsp;</div><div><strong><u>About Justin Angel</u></strong></div><div>Justin-Josef Angel is a senior web developer. He's been working for the last four years as a web developer, the better half of which in the .Net framework. He's been helping inexperienced .Net developers for a year now at the Tapuz .Net forum and he has helped over 500 developers successfully. He also has the only .Net blog in Hebrew at <a href="http://www.justinangel.net/">www.JustinAngel.Net</a></div></td></tr></tbody></table></div></td></tr></tbody></table>

## More in Agile Israel News

[All posts in Agile Israel News](https://osherove.com/blog/category/agile-israel-news)

- Jan 15, 2006

    ### [A solution for easier ASP.NET Unit and GUI testing?](https://osherove.com/blog/2006/1/15/a-solution-for-easier-aspnet-unit-and-gui-testing.html)

- Jan 5, 2006

    ### [Reminder: Agile Israel Meets \*Today\*: Refactoring and Mock Objects](https://osherove.com/blog/2006/1/5/reminder-agile-israel-meets-today-refactoring-and-mock-objec.html)

- Dec 19, 2005

    ### [Fowler's "The New Methodology" - Updated](https://osherove.com/blog/2005/12/19/fowlers-quotthe-new-methodologyquot-updated.html)

- Dec 19, 2005

    ### [Video: Johanna Rothman at Agile Israel: Moving Towards Agile Project Management](https://osherove.com/blog/2005/12/19/video-johanna-rothman-at-agile-israel-moving-towards-agile-p.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
