Felice Pollano Blog

The Official Fatica Labs Blog

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Competing with legacy code

    I'm not new at that kind of experience, always in my life I did the challenge of refactoring some old application, and many times I found something frustrating in it. Does not really matter to me, just because I enjoy to do it, but sometimes I really feel pain. Just some point to clarify what generally happen.

    • Even if there is no design in the legacy stuff you are trying to port, you will find smart people telling you the design do exists and is just too huge to be understood by a single person.
    • Functionsare are hidden: I personally looked at code that do the real job in some nested "catch" block.
    • Bug becames rules: as a smart idea you will find some bad design issue to became a rule to follow. Still today I have code that is not able to work with long file names. There is a lot of almost not working code dealing with the 8+3 dos alias to avoid to refactor a "well designed" fixed length binary record.
    • Managers does not known about technical details: I still find some difficult to explain what is the real difference between dealing with an Ms Access database and a server based database engine ( doesn't matter which one ).
    • Developers cost nothing: Every people is able to desing software. I have some code to show of a self describing senior developer who produced an home made OR/M based on a nested switch case ( first level an enum for the query, second level the DB type ) payed the same as me. I know I could be a little too ambicious, but I felt me crying when I look at that kind of code.
    • Success of legacy: In my experience, the project who earn money was almost messy stuff, created by modifying the modifications, without any kind of design, in which a good portion of the function work on a luck based approach.

    Currently rated 3.0 by 1 people

    • Currently 3/5 Stars.
    • 1
    • 2
    • 3
    • 4
    • 5

    Posted by felice on Wednesday, November 14, 2007 11:28 PM
    Permalink | Comments (1) | Post RSSRSS comment feed

    Related posts

    Comments

    Ayende Rahien il

    Thursday, November 15, 2007 5:12 AM

    Gravatar

    Felice,
    This is usually because such an approach sort-of works, for the first version.
    By this time, it has become essential that it would be used already, because it is already late.
    Business people don't understand the difference between good and bad code, it is only by the second version that the real cost is become clear

    Add comment


    (Will show your Gravatar icon)  

      Country flag




    Live preview

    Friday, November 21, 2008 7:37 PM

    Gravatar