Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Desktop Developer

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    « Printing to a zebra printer that uses ZPL on windows using VB.NetAnother decompiler: ILSpy. »
    comments

    Today on twitter I noticed that @OdeToCode (K. Scott Allen) this tweet.

    A Refactoring Experiment

    This leads to his blogpost about the experiment.

    Where you will find a link to the github page where the code can be found. And you will also found how to go about it.

    Here is the bad news: the new developer you hired has written some terrible, atrocious code.
    No one can understand what it does.

    The good news: at least there are unit tests to prove the code is working.

    You job is to refactor the code and make it readable, while keeping the code in working order (pass all tests).

    It's a very interesting experiment. And I guess it tries to prove that tests can really help you refactor. And even make unreadable code readable.

    Can you do it?

    About the Author

    User bio imageChris is awesome.
    Social SitingsTwitterHomePageLTD RSS Feed
    refactor
    InstapaperVote on HN

    No feedback yet

    Leave a comment


    Your email address will not be revealed on this site.

    To mislead the spambots.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)