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

Recent posts

Sigh. podrock June 10, 2026 12:29 pm (CurrentEvents)

The Platner Disaster, plus... BuckGalaxy June 9, 2026 1:43 pm (Flame)

Starfall BuckGalaxy June 2, 2026 6:30 pm (Space/Science)

It keeps getting worse... BuckGalaxy June 2, 2026 3:11 pm (Flame)

Starship Troopers on the Moon BuckGalaxy June 2, 2026 2:51 pm (Space/Science)

Musk wants self-sustaining space colonies BuckGalaxy May 31, 2026 6:11 pm (Space/Science)

Federal judge reopens Trump’s IRS case and demands to know if her court was defrauded. BuckGalaxy May 29, 2026 10:38 pm (Flame)

Ukraine winning the war BuckGalaxy May 29, 2026 11:14 am (CurrentEvents)

New Glenn explodes in big setback for Blue Origin BuckGalaxy May 28, 2026 7:54 pm (Space/Science)

Firefly set to visit Gruithuisen Domes BuckGalaxy May 28, 2026 4:32 pm (Space/Science)

Trump threatens another ally BuckGalaxy May 27, 2026 5:56 pm (CurrentEvents)

NASA Scientists Discover Material That Could Protect Jet Engines And Moon Equipment BuckGalaxy May 25, 2026 12:36 pm (Space/Science)

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