Stories recently tagged with 'pattern'

Implementing repository Pattern With EF4 POCO support(morshedanwar.wordpress.com)

submitted by anantoananto(105) 7 months, 13 days ago

Here I have described of implementation repository pattern with EF4 POCO support according to my earlier articles. read more...

add a comment |category: |Views: 36

tags: another

Lazy Loading OR On-Demand Loading(www.codeatnight.com)

submitted by jawadbakharjawadbakhar(60) 9 months, 23 days ago

Is lazy loading really is "Lazy" loading or is it "On-Demand" loading... read more...

add a comment |category: |Views: 61

tags: another

Amazing Strategy!!(beyondrelational.com)

submitted by DPalkarDPalkar(228) 1 year, 9 months ago

I recently downloaded a cool fighter plane game (iFighter lite) on my iPhone. As I started playing, I felt that plane is moving a bit slow!! But soon enough I saw a little perk on the screen and I flew over it and suddenly plane's speed increased. Soon enough, enemy planes started attacking me and I shot back at them. But again I felt my bullets were too slow! I shot down few planes and a new perk showed up on the screen. As soon as I collected it, my plane started shooting more bullets per attack!! Yeeee hoo!!! I started enjoying this and before I knew, I by mistake collected a "skull and bones" perk and "darrnn!!" I said, cause I knew now my plane had lost those powerful bullets :( Now, of course I am not writing a review about the human behavior while playing games on iPhone! But what I am trying to highlight here is the plane's ability to act differently in certain conditions! And that's something the Strategy Design Pattern allows us to do. I’ll try to use this game as an analogy to discuss about Strategy Design Pattern. Definition: Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. read more...

add a comment |category: |Views: 6

tags: another

Strategy Pattern at work(nizarnoorani.com)

submitted by noorani786noorani786(225) 1 year, 11 months ago

An example of the usage of the Strategy pattern to maintain customizations for customers from different countries. read more...

add a comment |category: |Views: 17

tags: another

The Only Pattern for Data Access is There Are No Patterns for Data Acc(theahmadblog.blogspot.com)

submitted by ahmadadnanahmadadnan(30) 2 years, 7 months ago

Over the years of software development, one thing that has eluded most developers is Data Access. Yes, I mean writing code that accesses a database from your application. It is an age old problem since the days when data storage and computing were invented. We would have thought that by now we would have been able to come up with a clean universal pattern for data access such as the M-V-C pattern for User Interfaces or the Singleton pattern or the Factory pattern. read more...

add a comment |category: |Views: 14

tags: another

Aggregator Provider Pattern: White Paper and Samples(code.msdn.microsoft.com)

submitted by joycscjoycsc(1557) 2 years, 10 months ago

Provider Aggregator Pattern is an extension of Provider Pattern, which enables us to create and utilize multiple instance of the class having the same provider interface. In this pattern, there is an Aggregator class which implements the provider interface and contains a collection of instances of classes having the same provider interface. read more...

add a comment |category: |Views: 240

tags: another

A Money Type for the CLR(codeproject.com)

submitted by codekaizencodekaizen(125) 3 years, 6 months ago

A convenient, high-performance money structure for the CLR which handles arithmetic operations, currency types, formatting, and careful distribution and rounding without loss. Also, a look at the various approaches out there for creating a Money type on the CLR. read more...

3 comments |category: |Views: 22

tags: another

WPF application localization pattern(intagger.spaces.live.com)

submitted by inTaggerinTagger(15) 3 years, 6 months ago

The article is about how to create localizable WPF applications using some of my tools. read more...

add a comment |category: |Views: 44

tags: another

Web user controls design pattern and data binding part 1(aspnetfix.blogspot.com)

submitted by allianz77allianz77(80) 3 years, 10 months ago

A lot of people are using user controls in asp because they are very easy to use, have design time support and so on. The purpose of this article is to prevent making mistakes when design a web control and to present a pattern that works for me perfectly read more...

add a comment |category: |Views: 69

tags: another

Alternative Lazy JavaScript Inheritance(ajaxline.com)

submitted by luchkovskyluchkovsky(55) 4 years, 8 months ago

Lazy Inheritance is an approach intended to simplify writing OOP and provides support of prototype-based classes hierarhies, automatic resolving and optimizing classes dependencies. Lazy inheritance designates a postponed linking of an object with it's prototype (class) until it is needed. The benefits: * "Lazy inheritance" is a prototype based inheritance; * It is not necessary to maintain proper order of script files declaration; * HTML page is loaded faster since there are no objects created during page initialization and since some scripts could be loaded only at the moment in which they are actually necessary * Dependencies are declared in more explicit way and class depends only on concrete scripts * If lazy mode of scripts loading is used, only necessary scripts (which are actually required for application functionality) will be loaded. read more...

add a comment |category: |Views: 6

tags: another

The Strategy Pattern and Reflection(thesprage.com)

submitted by Aaronls79Aaronls79(425) 4 years, 10 months ago

Using the Strategy Pattern and Reflection I easily created a Pluggable application. read more...

add a comment |category: |Views: 143

tags: another

Command Pattern in C# 2.0 = Generics + delegates(spellcoder.com)

submitted by bashmohandesbashmohandes(3000) 4 years, 10 months ago

How to implement Command Design pattern in C# 2.0 in a way that is more suitable with C# 2.0 read more...

1 comment |category: |Views: 2200

tags: another

Observer Pattern in C# = Events & delegates(spellcoder.com)

submitted by bashmohandesbashmohandes(3000) 4 years, 11 months ago

One of the most interesting patterns in Design Patterns is the Observer pattern which is listed under Behavioral Patterns, it is really important how to make other classes which are interested in the state of another object get notified when the state changed. read more...

3 comments |category: |Views: 1501

tags: another

Singleton – the most overused pattern(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 11 months ago

The innocent little singleton in your middle tier is not so innocent after all. This article discusses the design issues inherent in unwisely using the Singleton Design Pattern. In particular it discusses the kind of concurrency and scalability issues that arise from use of singleton in high-use, concurrent applications. It also suggests alternative designs that should be used for business logic classes. read more...

add a comment |category: |Views: 23

tags: another

Pattern for Properly Updating a Control from Another Thread(choosing-a-blog-url-sucks.blogspot.com)

submitted by j.montyj.monty(1868) 4 years, 11 months ago

This article demonstrates how a simple property on a Form can handle thread safe communication with Controls on a Form. read more...

add a comment |category: |Views: 20

tags: another

Pattern Focus: Strategy Pattern using Delegates(lowendahl.net)

submitted by lowendahllowendahl(750) 4 years, 11 months ago

Take your usage of strategies one step further; utilize C# delegates and anonymous methods to create a neat api for your domain. read more...

add a comment |category: |Views: 36

tags: another