News in the Category:
Patterns and Practices
Total posts: 688 | Sort by Views | Sort by Hits
Marquee de Sells: Chriss insight outlet, December 11, 2005
Views: 8,358 | Hits 767
If I've got an Avalon Button, e.g.
<Button Content="OK" />
Should I give the button a name so I can handle the event (I would never put the event handler directly in the XAML) like this:
WebServices.Org Weblogs, February 19, 2006
Views: 1,501 | Hits 624
For many years, SOAP has promised that it is a "one-way" protocol. This statement somehow magically seems to want to differentiate SOAP from HTTP's request-response. To date, we haven't fu...
youve been HAACKED, December 7, 2007
Views: 1,449 | Hits 581
Sometimes when writing unit tests, you run into the case where you want to override the behavior of a specific method. Heres a totally contrived example I just pulled from my head to demonstrate this...
ASPAlliance.com - The #1 ASP.NET Community, April 20, 2006
Views: 2,495 | Hits 455
In this article, Vishal demonstrates the concept of Factory Design Pattern using C#....
Julia Lerman Blog - Dont Be Iffy..., August 10, 2009
Views: 2,646 | Hits 418
If you are working with the Beta 1 of VS2010 in an Entity Data Model, you might notice some new properties in the Properties Window for an entity’s scalar property.
Are they new properties? Act...
The Code Project Latest Articles, July 1, 2007
Views: 3,205 | Hits 417
Describes how to generate NHibernate objects and ASPX pages using Smart Code...
youve been HAACKED, November 16, 2006
Views: 1,529 | Hits 415
In a recent post I talked about how good design attempts to minimize the impact of changes to a system, often through Design Patterns. When used appropriately, Design Patterns are a great tool for bu...
youve been HAACKED, December 10, 2007
Views: 1,430 | Hits 408
Just a brief note on writing unit tests for controller actions. When your action has a call to RedirectToAction or RenderView (yeah, pretty much every action) be aware that these methods have dependen...
The Code Project Latest Articles, April 28, 2006
Views: 2,991 | Hits 401
This article describes best practices for leveraging the benefits of NHibernate, ASP.NET, Generics, and unit testing together....
youve been HAACKED, November 14, 2007
Views: 1,852 | Hits 376
When discussing the upcoming ASP.NET MVC framework, one of the key benefits I like to tout is how this framework will improve testability of your web applications. The response I often get is the sam...
Patrik Löwendahls shout, June 7, 2010
Views: 2,733 | Hits 339
The pattern documented and named Repository is one of the most misunderstood and misused. In this post well implement the pattern in C# to achieve this simple line of code: var customers = customers.M...
Patrik Löwendahls shout, February 9, 2007
Views: 2,730 | Hits 321
Interfaces are the classical way of implementing the strategy pattern, but with .NET we get another similar approach to technically accomplish the same thing. That is by utilizing delegates as part of...
ISerializable, November 29, 2007
Views: 1,116 | Hits 296
I'm preparing for my tutorial on Database and Data Layer unit testing that I will be giving at the Agile Practices Conference next week. It's always nice to have a full 3 hours to get pretty dee...
Julia Lerman Blog - Dont Be Iffy..., June 19, 2007
Views: 1,049 | Hits 290
INETA sent Keith Pleas to speak to the grateful Vermont.NET User Group last night.
Keith presented the Designing for Operations project that PAG is working on. It was
eye opening to many of us who ha...
Scott Cate .net Knowledge Base and Weblog, April 2, 2004
Views: 3,425 | Hits 285
My friend Steve Smith who wrote this article has solved a major problem for me. With his permission I'm duplicating some of his code here.
About one in 50,000 page views, I was getting an "Objec...
Steven Smith, October 11, 2009
Views: 2,933 | Hits 275
(this is a submission I made to the upcoming 97 Things Every Programmer Should Know book) Of all the principles of programming, Don't Repeat Yourself (DRY) is perhaps one of the most fundamental. The...
ASPAlliance.com - The #1 ASP.NET Community, June 5, 2006
Views: 1,374 | Hits 272
In this article we will be taking a look at several Gang Of Four (GOF) design patterns with the help of code samples....
EggHeadCafe.com New Articles, July 27, 2006
Views: 3,059 | Hits 270
Peter revisits the FireAndForget pattern, with a cool Console app that exercises the method 100,000 times and shows you the times....
Steven Smith, March 3, 2009
Views: 1,877 | Hits 259
Caught a couple of nice links from @unclebobmartin via twitter this morning that I thought were worth sharing. The first one is a very nice summary of the Software Craftsmanship conference that ...
The Moth, July 13, 2007
Views: 1,136 | Hits 258
After not doing memes for over 2 years, I broke my rule last December and yesterday; today I notice another one where I got tagged (thanks Raymond). So, this is the last meme I am doing for the rest o...
EggHeadCafe.com New Articles, April 7, 2007
Views: 1,197 | Hits 253
This article is about Model View Presenter pattern. It is a very basic level article. I have read many articles on this but none of them were simple enough, at least for me.
By pw zeus...
Patrik Löwendahls shout, September 16, 2007
Views: 2,176 | Hits 253
It has been a long time since my last "pattern focus" but I think I'm ready to pick it up again. This time I want to talk about the mediator pattern, the UN diplomat of patterns.
I have a funny ...
ASPAlliance.com - The #1 ASP.NET Community, March 29, 2006
Views: 1,137 | Hits 252
The singleton pattern is one of the best-known patterns in software engineering. Often, this pattern is used to represent parts of the system that there can only be one of, like the MSN messenger or Y...
Stephen Kaufman's WebLog, October 11, 2005
Views: 1,791 | Hits 249
The is the fifth of five entries talking about schema design patterns. After looking at each of these schema design patterns now we can look at how we can use these design patterns in the BizTal...
ASPAlliance.com - The #1 ASP.NET Community, October 31, 2006
Views: 1,536 | Hits 243
In this tutorial we examine the adapter pattern which is one of the most popular patterns. It allows us to adapt an existing class to new clients in a transparent manner. Hence, legacy systems often d...
ASPAlliance.com - The #1 ASP.NET Community, December 6, 2006
Views: 1,304 | Hits 241
This article helps the reader to understand how a series of articles describing design patterns are structured, thereby helping the reader to get the most out of the articles. It also helps the reader...
ASPAlliance.com - The #1 ASP.NET Community, July 28, 2006
Views: 1,932 | Hits 233
Design Patterns are a solution to the complexities in Software Designs. This article provides a bird's eye view of the Creational, Structural and Behavioral Design Patterns and their applicability....
ASPAlliance.com - The #1 ASP.NET Community, July 12, 2006
Views: 1,504 | Hits 233
This article looks at terms used in the GoF book which you should know well before reading the GoF book. It also looks at the terms I coined for certain concepts discussed in the tutorial....
ASPAlliance.com - The #1 ASP.NET Community, April 24, 2006
Views: 1,235 | Hits 233
A singleton pattern is one that states that there would be only one instance of a class throughout the application domain. This article illustrates this pattern with lucid code examples....
Stephen Kaufman's WebLog, May 11, 2005
Views: 1,420 | Hits 229
This is the fourth of five entries talking about schema design patterns. In previous entries the Russian Doll, the Salami Slice and the Venetian Blind approaches were discussed.
The Garden of Ed...
EggHeadCafe.com New Articles, July 11, 2007
Views: 1,321 | Hits 225
Shows how to use the Asynchronous Fire and Forget pattern to ping RPC Servers about changes in your site, ping the Yahoo crawler API with a RESTful GET, and perform a Fire and Forget FORM POST. Most o...
Wallace B. McClure, July 12, 2006
Views: 1,739 | Hits 223
I am forgetful regarding the formatting of dates in .NET. For example, I will try to put in something like "MM/DD/YYYY" and will get out something like "06/MM/YYYY." As...
ASPAlliance.com - The #1 ASP.NET Community, June 22, 2006
Views: 1,228 | Hits 217
In this article, Vishal demonstrates the Observer Design pattern with the help of non-software and .NET Framework examples....
ASPAlliance.com - The #1 ASP.NET Community, December 4, 2006
Views: 2,339 | Hits 215
The Bridge pattern is something we see everyday in corporations where management figures out what should be done by creating a strategic, abstract plan of action, while employess implement the decisio...
Scott Cates WebLog, April 12, 2007
Views: 1,355 | Hits 212
The MVP is used for a lot of reasons, but mainly it does a **VERY** nice job of separating business logic from the UI. M. = Model V. = View P. = Presenter UX. = User Experience ( Web Form in this case...
Patrik Löwendahls shout, February 20, 2007
Views: 2,445 | Hits 208
This is the third post in my path to save the world with patterns. This time we're going to tackle a manageability and extensibility issue for the project as whole.
The ChallengeI'm sure many of you h...
Darrell Nortons Blog [MVP], May 26, 2005
Views: 2,017 | Hits 207
Bill Venners just posted Part 1 of an interview with Erich Gamma called How to Use Design Patterns. So why should developers learn patterns
"I think patterns as a whole can help people learn object-...
The Code Project Latest Articles, April 26, 2006
Views: 1,927 | Hits 206
Ensuring a crisp boundary exists between objects, enabling greater reuse and system maintainability...
Pablo M. Cibraro (aka Cibrax), January 25, 2007
Views: 1,599 | Hits 200
I have been reading in different places that using a CRUD (Create, Read, Update, Delete) interface for a service is considered a bad practice or anti-pattern. Therefore, this kind of interface&nb...
K. Scott Allen, February 26, 2013
Views: 2,965 | Hits 190
Darrell Nortons Blog [MVP], May 18, 2005
Views: 1,041 | Hits 187
Mark McFadden has made the excellent Head First Design Patterns book's code samples available in C# here. He even uses NUnit instead of Console.Writelines. Great job, Mark!...
Brad Abrams, September 7, 2006
Views: 1,519 | Hits 180
I was honored to be asked to speak at the Patterns and Practices Conference in October here on the Redmond campus. I am still locking down exactly what my content will be, so if you plan to come...
.Avery Blog, October 10, 2007
Views: 2,159 | Hits 180
On my current project we have zero unit tests. I inherited the application and the existing unit tests where such a mess it was better to just kill em and start over. I would normally start from the d...
Dino Espositos WebLog, February 28, 2006
Views: 2,401 | Hits 178
I confess I never paid much (due?) attention to design patterns. My friend Andrea, instead, is head over heel in love with such fancy things. By the way, if you feel that the topic somehow catches&nbs...
Bryant Likess Blog, September 27, 2006
Views: 3,380 | Hits 177
If you're doing WPF development, you really need to check out Dan Crevier's series on DataModel-View-ViewModel. Right now there is no easy way to read through all his posts on the subject without navi...
Darrell Nortons Blog [MVP], March 13, 2006
Views: 1,124 | Hits 176
Clipcode has released a GoF Domain Specific Language built using Microsoft's DSL tools for Visual Studio 2005. The currently available snapshot build of Clipcode-GoF-DSL supports the
GoF creational pa...
ASPAlliance.com - The #1 ASP.NET Community, December 8, 2008
Views: 1,137 | Hits 175
ASPAlliance.com - The #1 ASP.NET Community, May 4, 2010
Views: 2,215 | Hits 175
In this article, Vince suggests a pattern to use when developing a three layered application using the Entity Framework 4. After providing a short introduction he demonstrates the creation of the data...
Karl Seguin [MVP], June 23, 2006
Views: 1,683 | Hits 173
The first thing I want to cover in my "learning TDD" track is to not worry about writing seemingly meaningless or uninteresting code. First of all you never know what shape code will take in the fut...
DonXML Demsaks All Things Techie, October 28, 2005
Views: 1,121 | Hits 169
The Dating Design Patterns book has been around for a while, but somehow I missed it. They even have a site for the book.
Some of my favorite patterns:
Cary Grant Helper: Originally called &ld...