There are 4 posts and 7 comments on this blog, if you cannot find what you intially looked for, use the search above and press 'go'!


NAVIGATION

Today I’ll highlight one of my favorite anti-patterns - “Forgot my keys” (aka “Storyteller” or “Grandpa Simpson code”)

in Pseudo-code:

load variables;

start loop

    did I remember to load my variables? I better load them again.

    oh yeah, I need to reset the counter first

    output string

    output other string

    load more variables

    output another string

    check the counter

    //couple of random comments

   did I load that other thing I needed?  better check

end loop



You must be logged in to post a comment.

Name (required)

Email (required)

Website

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Feel free to leave a comment