All Tags » Design (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • 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: ,
  • Loved the show but I have to get back to the real world now

      I’ve been giving talks for quite a while now on best practices, unit testing and other things that aim to make our lives as developers easier. Having myself suffered and lived in a World where nothing was put through automated testing, QA was usually delegated to our customers, and having faced...
    Posted to Hadi Hariri by Hadi Hariri on 03-31-2010
    Filed under: Filed under:
  • Technological shortcomings driving business needs

    Recent conversation I had with someone the other day: Jack : Yes, but we can’t do it like that. The business does not work that way. Me : Why does it not work that way? Jack : It’s a fundamental aspect of the business. We can’t change that. Me : And I accept that, but have you thought...
    Posted to Hadi Hariri by Hadi Hariri on 02-15-2010
    Filed under: Filed under: ,
  • It’s all about the delivery

    The Dependency Inversion Principle states: A. High-level modules should not depend on low-level modules. Both should depend on abstractions. B. Abstractions should not depend upon details. Details should depend upon abstractions. (Source WikiPedia). Throw that at a terrible programmer , and all you’ll...
    Posted to Hadi Hariri by Hadi Hariri on 10-29-2009
    Filed under: Filed under:
Page 1 of 2 (17 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
<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)