Sign in
|
Help
in
Current Tags
VusCode - Coding dreams since 1998! (blog)
.NET (group)
(Entire Site)
Nikola Malovic
.NET development and architecture
VusCode - Coding dreams since 1998
Tags
About me
Architecture
Commerce Server 2007
Development
Entity Framework
News
PSLUG
Smart Client
Test Driven Development
Tools
Recent Posts
Using the entity framework POCO template with VS2010 RC (easier way)
Knetlik conference was a lot of fun
Do you want to learn DDD in 10 minutes? :)
Asking the right questions while interviewing developers
Couple of PDC 2009 thoughts too big to fit in 140 characters – praise to Microsoft
Fluent NHibernate samples – Auto mapping (Part 1/2)
Fluent NHibernate Samples on CodePlex
Me, myself and design patterns
Design for testability - WCF proxies
Say no to ServiceLocator
VusCode - Coding dreams since 1998!
.NET exploration, articles, cool links, surf logs, book reviews, .net, c#, smart clients, software factories, patterns & practices, web casts and much more
Browse by Tags
All Tags
»
Architecture
(
RSS
)
Development
News
Test Driven Development
Me, myself and design patterns
Looks like the Silverlight related posts I’ve announced would have to wait one more blog post due to the event which happened to me today and which made me thinking about a few of the architecture related things which at the end resulted with a few of...
Posted
XI 02 2009, 12:02 dop.
by
malovicn
with | with
5 comment(s)
Filed under:
Architecture
Design for testability - WCF proxies
Recently I spent some time participating in projects involving Silverlight, Prism etc and there are couple of interesting things I’ve came up with during that period which I would like to share with the community in a form of a couple of blog posts showing...
Posted
XI 01 2009, 12:39 dop.
by
malovicn
with | with
11 comment(s)
Filed under:
Architecture
,
Test Driven Development
Say no to ServiceLocator
( Disclaimer: As I stated here , while I find over the time ServiceLocator based code to be a bad practice, I do understand the need for its usage in certain brown-field scenarios as a way of reducing the risk while introducing the IoC.) In my previous...
Posted
X 20 2009, 02:18 odp.
by
malovicn
with | with
7 comment(s)
Filed under:
Architecture
,
Test Driven Development
Inversion Of Control, Single Responsibility Principle and Nikola’s laws of dependency injection
Today I stumbled upon the stack overflow question regarding using DI frameworks for classes with many dependencies where the example given and couple of answers have reminded me about a subject I want to post for a long time. So the example from question...
Posted
X 16 2009, 01:04 odp.
by
malovicn
with | with
13 comment(s)
Filed under:
Architecture
Dependency injection in real world
Patrick left a comment on one of my previous blog posts asking a couple of very interesting questions that I’ve been asking myself too: Is service locator legitimate way of doing IoC? (I’ll use example code from that blog post as a base for my today blog...
Posted
XII 23 2008, 10:45 dop.
by
malovicn
with | with
8 comment(s)
Filed under:
Architecture
,
Test Driven Development
Fluent NHibernate – NHibernate without configuration files
NHibernate is great, (no doubt about it) but every time I was supposed to work with it, the fact that I had to manually type in all those xml configuration entries was something I really didn’t like at all. The most important complains I personally have...
Posted
VIII 31 2008, 11:39 dop.
by
malovicn
with | with
14 comment(s)
Filed under:
Architecture
,
Development
Model View Presenter (MVP) – Tips from trenches (TFT) – Working with HttpContext (Part 2)
Today’s hurdle: Using HttpContext without System.Web One of the principles I really feel strong about can be formulated like this:”Presenter is not allowed to reference System.Web assembly at all”. Main reason why I feel so strong about that, is based on the fact that once referenced System.Web enables developers in your team to use types from that assembly (HttpContext, Session, Query, Cache etc) and we all know what PITA those types can be when testing Presenters. Here’s very simple example I’ll use in today’s post: Imagine you have a presenter which based on value of some query parameter is performing some redirecting or updating UI elements. The easiest way (referencing the System.Web into presenter) will enable very easy implementation of required functionality but testing that code will require things like creating fake web context which IMHO is good sign of of important web test smell. To check out rest of my MVP (Model View Presenter) blog post please visit my blog page (thanks to feedburner limit of 500K per feed)
Posted
VII 30 2008, 11:49 dop.
by
malovicn
with | with
10 comment(s)
Filed under:
Architecture
,
Development
Model View Presenter (MVP) – Tips from trenches (TFT) – Base types(Part 1)
RAD tooling style Microsoft is supporting last couple of years usually leads to the code where presentation and bossiness logic are mixed and tightly coupled which makes testability, maintainability and sustainability much more harder then they should be. In case you’ve had to work in the past with web pages containing couple of thousands lines in code behind you will know exactly what problems I am referring to here. In case not, please let me know what is the name of the place where you work :) One way to tackle that is using the Model View Presenter UI design pattern which provides clean separation between UI and domain logic and as a result of that come testability of the “UI code”, SRP and SOC principles appliance, clean domain model etc… To check out rest of my MVP (Model View Presenter) blog post please visit my blog page (thanks to feedburner limit of 500K per feed)
Posted
VII 27 2008, 09:47 odp.
by
malovicn
with | with
12 comment(s)
Filed under:
Architecture
,
Development
Model View Presenter (MVP) – Tips from trenches (TFT) - Announcement
I have blogged already in the past about MVP basics , MVP vs MVC , MVP Passive View and MVP Supervising Controller but recently I had some interesting experiences in applying MVP into real world applications and from that endeavor I learned couple of...
Posted
VII 06 2008, 08:26 dop.
by
malovicn
with | with
5 comment(s)
Filed under:
Architecture
,
News
,
Development
Design for testability – Auto Mocking Container (AMC) – Part 9
On my quest to design for testability, I've already covered: Part 1 - Separation of concerns (SOC) by encapsulating DAL code in internal provider class Part 2 - Decoupling manager and provider class (introducing the IProvider) Part 3 - Decoupling...
Posted
VI 08 2008, 11:49 odp.
by
malovicn
with | with
5 comment(s)
Filed under:
Architecture
,
Test Driven Development
More Posts
Next page »