Stories recently tagged with 'Patterns'

Get injected into the world of inverted dependencies(www.codeproject.com)

submitted by jgauffinjgauffin(160) 11 days, 4 hours ago

My attempt to introduce you to the world of dependency injection and inversion of control containers. I'll show you what the fuzz is all about and how you can write more robust code thanks to a container. read more...

2 comments |category: |Views: 217

tags: another

The SOLID principles with real world examples(blog.gauffin.org)

submitted by jgauffinjgauffin(160) 17 days, 5 hours ago

The following article aims to explain the five SOLID principles with real world examples. The SOLID principles are five programming principles which is considered to be the foundation of every well designed application read more...

1 comment |category: |Views: 99

tags: another

Some Servicelocator pattern stinks(www.jefclaes.be)

submitted by JefClaesJefClaes(650) 1 month, 11 days ago

I have been working on a somewhat legacy codebase which makes use of the Servicelocator pattern. Although I always thought of Dependecy Injection to be the superior pattern, I was pleased to find some Inversion of Control implementation in there. Working with the codebase, I discovered first hand how easily, when used without caution and discipline, the Servicelocator pattern can introduce code rot. read more...

1 comment |category: |Views: 197

tags: another

A good way to keep your entities clean(leoncullens.nl)

submitted by AvalaxyAvalaxy(214) 2 months, 10 days ago

This tutorial will show you how to keep your entities and your views clean by translating entities to viewmodels. It is a good practice to do this because it keeps your files clean, it avoids certain security problems and it's more flexible, as you will read in this article. The examples are using C# and ASP.NET MVC, but the concept is pretty generic and can be applied to virtually every programming language or framework. read more...

add a comment |category: |Views: 349

tags: another

The Law of Demeter(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4217) 3 months, 9 days ago

Coupling in object-oriented software indicates the level to which classes are reliant upon each other. A tightly coupled system is usually harder to maintain and modify than a loosely coupled one. The Law of Demeter addresses a specific coupling problem. read more...

add a comment |category: |Views: 2

tags: another

Common design patterns(stevesmithblog.com)

submitted by oguzh4noguzh4n(5) 4 months, 16 days ago

Common design patterns with .net read more...

add a comment |category: |Views: 21

tags: another

Inversion of Control Containers - Things You Should Know(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 5 months, 5 days ago

Think you're a senior developer? Not yet senior, but interested in taking the next step? Today’s topic in the "Things Every Senior .NET Developer Should Know" series will cover Dependency Injection, Inversion of Control containers, and my favorite Inversion of Control container, StructureMap. read more...

3 comments |category: |Views: 367

tags: another

Factory Overload(blog.ploeh.dk)

submitted by pwhe23pwhe23(972) 5 months, 7 days ago

Recently I received a question from Kelly Sommers about good ways to refactor away from Factory Overload. Basically, she’s working in a code base where there’s an explosion of Abstract Factories which seems to be counter-productive. In this post I'll take a look at the example problem and propose a set of alternatives. read more...

2 comments |category: |Views: 147

tags: another

SOLID - Things Every Senior .NET Developer Should Know, Part 2(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 5 months, 21 days ago

Think you’re a senior .NET developer? Then you should already be familiar with SOLID, a set of five principles originally introduced by Robert Martin. These principles will help guide you towards better, more maintainable code and may help you have more fun at the same time. In this article, I’ll cover the Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles. read more...

add a comment |category: |Views: 119

tags: another

Simple Producer Consumer with Tasks and .Net 4(geekswithblogs.net)

submitted by dpetersondpeterson(4397) 5 months, 22 days ago

Alois Kraus walks us through implementing a producer/consumer pattern using Tasks in .Net 4 read more...

add a comment |category: |Views: 305

tags: another

Difference between dependency injection and mocking frameworks(www.gideondsouza.com)

submitted by giddygiddy(35) 5 months, 26 days ago

The difference between dependency injection and mocking frameworks explained with examples read more...

1 comment |category: |Views: 43

tags: another

Implementing Chain of Responsibility Pattern(www.amazedsaint.com)

submitted by vijaystvijayst(1311) 6 months, 15 days ago

The Chain of Responsibility Pattern is implemented when a request or process is handled by multiple objects each fulfilling a single responsibility. This post describes how to implement a chain of responsibility pattern in .Net. read more...

add a comment |category: |Views: 51

tags: another

Introducing Autobox - on the fly DI container(weblogs.asp.net)

submitted by vijaystvijayst(1311) 6 months, 22 days ago

This post introduces Autobox - on the fly dependency injection (DI) container. read more...

add a comment |category: |Views: 69

tags: another

The CQRS Dilemma and Related Random Thoughts(www.amazedsaint.com)

submitted by dpetersondpeterson(4397) 6 months, 26 days ago

Anoop Madhusudanan writes about CQRS and why he is no longer a skeptic, and answers the question "Do I need CQRS?" read more...

add a comment |category: |Views: 35

tags: another

A look at Dependency Injection and Inversion(devdirective.com)

submitted by RobertTheGreyRobertTheGrey(447) 7 months, 8 days ago

There seems to be a fair amount of confusion around this topic, a particularly useful tool in the SOLID toolbox, but in the wrong hands can go horribly wrong. Let's try and set the record straight now... read more...

6 comments |category: |Views: 574

tags: another

The Robot Factory Code Kata(bradygaster.com)

submitted by bradygasterbradygaster(4897) 7 months, 14 days ago

On the drive home from my last Behavior Driven Development talk, I began thinking about the idea of Code Katas and how one might be appropriate in my future disucssions of Behavior Driven Development. Given that BDD tries to solve things in as simple and direct a path as possible, and given that BDD takes some of the lessons learned via TDD and applies them in slightly more business-centric language, a Kata would demonstrate well the effectiveness of BDD when applied to a problem domain. So, I took the example problem domain of a robotic assembly line that I've been using since I was a full-time trainer and implemented it using SpecFlow and Moq. read more...

add a comment |category: |Views: 15

tags: another