|
Functional ReFactoring: Adding Clarity and Grace to Your Code
Level:
Introductory
Track:
n/a
Starts:
Apr 6 2008 10:30 AM
Ends:
Apr 6 2008 11:45 AM
Room:
MPR A
Speaker:
Richard Hale Shaw
Refactoring is the art -- and science -- of making incremental, step-wise changes to an existing Application, Code Base, Library or Method such that the outer behavior doesn't change after Refactoring, but the inner details are modified for a variety of reasons. Often, the latter include: introducing abstractions for allow for more re-usability; removing unnecessary plumbing details; reducing complexity; or, increasing extensibility.
A good refactoring is one where: a change is made, the code is re-compiled and re-tested, and afterwards behaves as it did before, but the internal details are now changed for the better. You can introduce refactorings to improve class design, improve adherence to an internal model, and to define layers and APIs.
In this session, Richard will demonstrate a number general of refactorings, but focus in particular on the application of functional programming improvements, using .NET 2.0 Generic Delegates and C# 3.0/.NET 3.5 Extension Methods. Along the way, you'll see how to create a Database Provider Factory that rivals the one supplied in .NET 2.0, and which will eliminate 50% (or more) of the plumbing required to use DataConnection, DataCommand, DataReader and DataAdapter objects in ADO.NET.
|