Thread: ??!?!?

  1. #1
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903

    ??!?!?

    Here is a pretty cool site.

    It features coding horrors.

    Good entertainment.

    http://www.thedailywtf.com/
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  2. #2
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    If myDocument.IsActive Then DoStuff()

    I'm completely lost. WTF does that line of code do? Now lets see how it looks when we employ best practices and the the IsTrue function:
    If IsTrue( objInstanceOfDocument.blnDocumentPropertyIsActive ) Then fn_DoStuff()

    Crystal. Clarity.
    rofl, so sad.

Popular pages Recent additions subscribe to a feed