Videos tagged with refactoring
In this episode we are going to take a look at how to utilize some additional features in the Code Contracts library to validate the state of our application.We are going to focus our efforts here to learn how to use Assert and Assume to validate a given value in our code. We will also learn how to use ForAll and Exists, which can be used to validate content inside of an array or a collection.
DimeCasts.Net #164: Learning how to use Manual Mocks for Testing
In this episode we are going to take a look at how to use manual mocks for testingOften times when creating unit tests we need to work in isolation in order to cover the paths we are attempting to test. When we want to test in isolation you can use a testing technique where you mock out your dependencies. When using Mocks you can either do it manually (what we are looking at) or you can use a m...
DimeCasts.Net #163: Larning how to use the Extract Interface Technique
In this episode we are going to take a look at another refactoring technique, the Extract Interface technique.This technique allows you to extract an interface from a class in order to break your concrete dependencies. By doing this you can provide yourself with better testing support as well as a better layer of abstractions.
DimeCasts.Net #134: Refactoring Techniques: Learning the Wrap Method
In this episode we are going to take a look at a refactoring technique outlined in detail in Working Effectively with Legacy CodeWe will walk though this technique and take a look at how it can help you to create better and more maintainable code.
Railscasts #159: More on Cucumber
There is a lot more to Cucumber than I showed in an earlier episode. See how to refactor complex scenarios in this episode.
RubyConf 2008: Unfactoring From Patterns
Unfactoring is the process of taking well designed software and, through an iterative series of small changes, making it completely unmaintainable by anyone but you. About Rein Henrichs An avid guitarist, pianist and table tennis player, Rein works at Hashrocket, writes a popular Ruby blog and speaks frequently at Ruby events. He is passionate about best practices and using patterns to write be...
DimeCasts.Net #61: Becoming a ReSharper Samurai - Part 1
In this episode you will start your journey on becoming a ReSharper Samurai.This is the first in a multi-part series were we will guide you through various features of ReSharper. In this episode we will take a look at the following.- Toggling scope on class and methods- LiveTemplates- Generate Constructor- Extract Interface- Derive Clas- Much, Much more
Ruby Hoedown 2008: flog << Test.new
This presentation will show how to transform a Ruby application without tests into a well-spec'd (via rspec) system with good test coverage. The presentation teaches how to write "characterization tests" for Ruby systems, how to convert characterization tests into normal specifications, and how to refactor and add new functionality to the improved system. The code to be tested ...
MVC Storefront, Part 18: Creating An Experience
There's been a pretty big gap in the productions here, and it's mostly because I couldn't figure out what exactly to show. I also need to finish this thing - it's taking longer than I'd like! In this episode I go over some of the refactoring I've done and then show you my process for pulling the initial application together. by Rob Conery
The Principles of Agile Design
Summary Bob Martin of Object Mentor presents the first of his five principles of agile design. Beginning with an explanation of the real purpose of object-oriented design - the management of dependencies - Bob walks through a code example to illustrate how dependencies can be managed with abstractions, and that good designs are those in which high-level abstractions do not depend on low-level d...