Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

Geoff Field

@Geoff Field
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • True/False Dichotomy
    G Geoff Field

    I've started to favour this form:

    #define TRUE (!0)
    #define FALSE (!TRUE)

    But at least I put it in a header rather than within every single source file. In this case, it was in *.c. Can you say "maintenance nightmare"? And they claimed they were a CMM level 5 company, too.

    Professional Geek, Amateur Stage-Levelling Gauge

    modified on Wednesday, February 4, 2009 6:19 PM

    The Weird and The Wonderful

  • True/False Dichotomy
    G Geoff Field

    Here's one I spotted in a previous life: We were working in C on protocol stacks. In every C file created by a group of contractors, we found the following statements:

    #define True 0
    #define False 1

    This was endemic throughout the code produced by this particular group of contractors. Fortunately, the product never came to be. The 2001 Tech Wreck did it in. Geoff

    Professional Geek, Amateur Stage-Levelling Gauge

    The Weird and The Wonderful

  • 16 layers of ifs, Who dare challenge this?
    G Geoff Field

    And the comments on the terminating braces are useless, too.

    Professional Geek, Amateur Stage-Levelling Gauge

    The Weird and The Wonderful question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups