• Space/Science
  • GeekSpeak
  • Mysteries of
    the Multiverse
  • Science Fiction
  • The Comestible Zone
  • Off-Topic
  • Community
  • Flame
  • CurrentEvents

Recent posts

Blu-Ray ER March 15, 2026 11:27 am (Off-Topic)

Trump Administration Readies Plans to Dismantle Renowned Science Lab BuckGalaxy March 13, 2026 11:46 pm (Space/Science)

The Republic RobVG March 11, 2026 11:40 am (Off-Topic)

The Great Lie of War BuckGalaxy March 5, 2026 9:23 am (CurrentEvents)

Overheard on the internet... ER March 4, 2026 4:37 pm (CurrentEvents)

I hate waking up to war podrock February 28, 2026 11:04 am (CurrentEvents)

The religion of nonreligion can be like nonalcohol beer: What’s the point? BuckGalaxy February 28, 2026 2:25 am (Off-Topic)

MAGAlomania unleashed again BuckGalaxy February 28, 2026 2:21 am (CurrentEvents)

‘We’re Going to the Moon and Mars’ BuckGalaxy February 26, 2026 8:41 pm (Space/Science)

Is This the Most Important Supreme Court Case of the Century? BuckGalaxy February 22, 2026 8:56 pm (CurrentEvents)

Supreme Court tries to do Trump a favor BuckGalaxy February 20, 2026 10:58 am (CurrentEvents)

Role reversal ER February 20, 2026 7:58 am (Off-Topic)

Home » GeekSpeak

Codemonkey humor September 7, 2017 11:29 am Robert

Part of the job of a programmer is to document the code by writing comments within it, to help the next codemonkey figure out why the code does what it does (or not). Sometimes when you work in a home office, say, the comments become a stream of consciousness, almost like a diary, as you forget that other people might someday read your comments. More often, though, you find yourself cracking jokes to help you and the next programmer pass the time.

SQWORD GetGlobalTime( const TCHAR* Filename )
{
//return greenwich mean time as expressed in nanoseconds since the
//creation of the universe. time is expressed in meters, so
//divide by the speed of light to obtain seconds. assumes the
//speed of light in a vacuum is constant. the file specified by
//Filename is assumed to be in your reference frame, otherwise you
//must transform the result by the path integral of the minkowski
//metric tensor in order to obtain the correct result.

return Time;
}

I though this one would appeal to the space cadets here. Comment lines are introduced by “//”, and there’s only one line of actual code in this function. Which just returns the time.

This example comes from The DailyWTF, which is a blog somehow linked to The Register web site, about the crazy/stupid things programmers do, that cause their colleagues to exclaim “WTF???”. I read it every day, using the “random” button to go back and read old articles. If you ever want to learn what it’s really like to be a programmer or work in IT, check it out.

    Search

    The Control Panel

    • Log in
    • Register