All Tags » Design (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • IoC container solves a problem you might not have but it's a nice problem to have

    On frameworks and libraries A logging framework helps you log what's happening in your application. A UI framework helps you render and animate UIs to the user. A communication library helps connecting parts of a distributed system. All of these tasks and concepts are pretty easy to understand. They...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 10-22-2012
    Filed under: Filed under: , ,
  • To constructor or to property dependency?

    Us, devel­op­ers, are a bit like that comic strip ( from always great xkcd ): We can end­lessly debate over tabs ver­sus spaces (don't even get me started), whether to use optional semi­colon or not, and other seem­ingly irrel­e­vant top­ics. We can have heated...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 09-05-2012
    Filed under: Filed under: ,
  • Using ConventionTests

    About conventions I’m a big fan of using conventions when developing applications. I blogged about it in the past ( here , here and later here ). I also gave a talk about my experience with this approach and how I currently use it at NDC last week (slides are available here , video should be posted...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 06-14-2012
    Filed under: Filed under: ,
  • API design challenge – builder

    Now that Windsor 3 is released I can concentrate on some of my other ideas and projects. While working on one of them, called Cartographer , I encountered an interesting API design problem. I have a class (a builder to be precise) that has a task of setting up a central object (an IMapper implementation...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 12-30-2011
    Filed under: Filed under:
  • Testing conventions

    I already blogged about the topic of validating conventions in the past ( here and here ). Doing this has been a fantastic way of keeping consistency across codebases I’ve worked on, and several of my colleagues at Readify adopted this approach with great success. Recently I found myself using...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 03-08-2011
    Filed under: Filed under:
  • Unit tests are overrated

    Something is rotten in the state of Development. It seems to me we (developers) either ignore testing altogether, leaving it to the Q&A team when we throw them the app over the wall, or we concentrate on unit tests only. Let me make one thing clear before we go any further – unit tests are...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 02-28-2011
    Filed under: Filed under:
  • That dreaded M in ASP.NET MVC

    When it comes to working with Models in MVC, I’ve tried many approaches, some good, others not so much. I’ve ended up settling on ViewModels, whereby the Model I submit is dictated by the View I’m working with. This allows me the flexibility of displaying or gathering only the information...
    Posted to Hadi Hariri by Hadi Hariri on 01-02-2011
    Filed under: Filed under: , ,
  • SRP, as easy as 123…

    …of course, you’d need to have the song ABC from the Jackson Five in your head for that title to be remotely amusing. Single Responsibility Principle is such a simple principle. It states that a class should only have one responsibility. One responsibility. Not two, not three, one. Such...
    Posted to Hadi Hariri by Hadi Hariri on 12-18-2010
    Filed under: Filed under: ,
  • Must I release everything when using Windsor?

    This is a follow up to my previous post . If you haven’t yet – go and read that one first. I’ll wait. So where were we? Aha… In the last post I said, that Windsor (any container in general) creates objects for you, hence it owns them, ergo its responsibility is to properly end their lifetime when they...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 08-26-2010
    Filed under: Filed under: , ,
  • Must Windsor track my components?

    Probably the single most misunderstood feature of Castle Windsor is regarding its lifetime management of components. Hopefully in this post (and the next one) I’ll be able to clear all the misconceptions. Why is Windsor tracking components in the first place? One of the core responsibilities of a container...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 08-19-2010
    Filed under: Filed under: , ,
  • IoC patterns – partitioning registration

    I’ve blogged a bit in the past, more or less explicitly, about patterns and antipatterns of Inversion of Control usage. This is yet another post that will (possibly) spawn a series. We’ll see about that. Note that this post is not talking about any particular IoC container and what I’m...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 08-10-2010
    Filed under: Filed under: ,
  • How I use Inversion of Control containers – pulling from the container

    As I expected my previous post prompted a few questions regarding the Three Container Calls pattern I outlined. Major one of them is how to handle the following scenario: We create our container, install all the components in it.  Moments later we resolve the root component, container goes and creates...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 06-22-2010
    Filed under: Filed under: ,
  • How I use Inversion of Control containers

    Quite regularly I get asked by people how they should use IoC container in their application. I don’t think I can answer this question once and universally because every application is different, every application has different needs and every application has different opportunities for leveraging...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 06-20-2010
    Filed under: Filed under:
  • Castle Windsor and child containers: Revolutions

    Continuing the topic from the previous posts. What would happen? Current behavior of Windsor is somewhat flawed. What it will do is it will resolve foo , and provide it with bar . The flaw of this behavior is that now when we resolve foo via any of the tree containers we’ll  get the same instance...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 06-03-2010
    Filed under: Filed under: ,
  • Castle Windsor and Child containers reloaded

    This is a follow up to my previous post . I deliberately didn’t discuss the issues that arise when using container hierarchies to get some feedback on usage first. So what’s the problem? Consider trivial scenario: We have two components, where foo depends on bar . The dependency is optional...
    Posted to Krzysztof Kozmic by Krzysztof Koźmic on 06-02-2010
    Filed under: Filed under: ,
Page 1 of 2 (20 items) 1 2 Next >

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)