Matthew's profileMatthew WrenPhotosBlogLists Tools Help

Blog


    February 18

    You Are Gonna Need It

    I wanted to mention briefly in my blog that a few people I have spoken with over the past (and in an article I read today) have applied the YAGNI principle when deciding whether or not to implement a design pattern.  Wikipedia even mentions that there is a sort of trade off between YAGNI and the "benefits of refactoring code".

    For my mind there should never be a trade off, since both principles have completely separate motivations.

    The principle of YAGNI is to only implement that functionality that is required in a given story, and in my mind this, because of the disparity between the two principles, should be regardless of the patterns and practices you utilize.

    Design patterns, and OO in general, are used to reduce complexity and increase maintainability through the use of recognised and proven patterns and practices for a given problem domain.  To assume that you aren't going to need maintainability and simplicity in your code base implies we could all revert to functional programming, which of course is not something anyone would advocate.

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://mdwren.spaces.live.com/blog/cns!9C2D8683D2D11400!291.trak
    Weblogs that reference this entry
    • None