Tags: refactoring
Tags: refactoring
Learning WPF with BabySmash - Pushing things up a level with another set of eyes
Posted Friday June 13, 2008, 10:54 am, Over one day old at ComputerZen.com - Scott Hanselman
It's the same four lines over and over again. public class SquareFigure : Figure { public SquareFigure(Brush fill) : base(fill, "square") { Shape s = new Rectangle(); s.Style = Application.Current.Resources["square"] as Style; s.Fill = fill; Shape = s; } } Ripe for refactoring I say.
Read Learning WPF with BabySmash - Pushing things up a level with another set of eyes (Links)
Learning WPF with BabySmash - Factories, Interfaces, Delegates and Lambdas, oh my!
Posted Friday June 13, 2008, 10:54 am, Over one day old at ComputerZen.com - Scott Hanselman
What I need is a better Factory to make these Figures, but a "random factory" that is a little easier to extend than a Switch statement. I'm interested in your comments as there's very likely an even cleaner pattern to solve this little problem in your head, waiting to get out.
Read Learning WPF with BabySmash - Factories, Interfaces, Delegates and Lambdas, oh my! (Links)
Back to Basics - Life After If, For and Switch - Like, a Data Structures Reminder
Posted Friday June 13, 2008, 10:54 am, Over one day old at ComputerZen.com - Scott Hanselman
The key here is that he could control the icons and he couldn't easily control the enum (someone else's code, etc).
Read Back to Basics - Life After If, For and Switch - Like, a Data Structures Reminder (Links)
Refactor Pro now supports Visual Studio 2005
Posted Sunday February 4, 2007, 12:19 pm, Over one day old at Tommy's Blog
Read Refactor Pro now supports Visual Studio 2005 (Links)
March Eastside Weblog Meetup
Posted Tuesday May 16, 2006, 6:12 am, Over one day old at Tommy's Blog
Getting back to Dennis’s question: I have done some things with JScript.NET, but it wouldn’t have helped here because I was modifying existing code rather than starting from scratch and I needed to work within the already-established parameters.
Read March Eastside Weblog Meetup (Links)