DCSIMG
Design Patterns - David Sackstein's Blog

Browse by Tags

All Tags » Design Patterns (RSS)

Clean Code or Working Code? by David Sackstein

I was working on a legacy project with a friend and I sorely bemoaned the messiness of the code. Later, the friend sent me this link and warmly recommended I keep the balance in life. If you cant be bother to read the article, the short of it is that we developers should have more respect for legacy code that works. I acknowledge the underlying truth presented in the article, but I don’t think it gives the whole picture. Just because you can make catastrophic mistakes while disrespectfully accusing...

TreeView DataBinding and The Composite Pattern by David Sackstein

In the previous post I demonstrated use of the HierarchicalDataTemplate to style nodes based on the type of the object that they are bound to. That declarative recursion gets you true separation between data and presentation. In this post, I will show how I made use of the Composite Pattern , INotifyPropertyChanged and BindingSource<T> to implement objects for DataBinding with the TreeView. In the next post I will show how I used LINQ to XML to read the data from an XML file. The Composite...
Powered by Community Server (Commercial Edition), by Telligent Systems