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
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Someone please help me ....

Someone please help me ....

Scheduled Pinned Locked Moved The Weird and The Wonderful
c++rubyhelp
23 Posts 15 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B BillW33

    And people ( especially non-programmers/managers ) don't understand why I say that just because it seems to work doesn't mean that it is good code. :) Bill W

    C Offline
    C Offline
    cpkilekofp
    wrote on last edited by
    #21

    CIDev wrote:

    And people ( especially non-programmers/managers ) don't understand why I say that just because it seems to work doesn't mean that it is good code.

    Sometimes, when I tell a manager about the Obscure C contest, tne light goes on :laugh:

    B 1 Reply Last reply
    0
    • M Monty2

      ... have to work with people who wrote this GEM

      if(i==0)
      *outcallRecvCount = 0;
      else
      *outcallRecvCount = i ;

      :~


      C++ where friends have access to your private members !

      C Offline
      C Offline
      cpkilekofp
      wrote on last edited by
      #22

      Monty2 wrote:

      if(i==0)
      *outcallRecvCount = 0;
      else
      *outcallRecvCount = i ;

      Actually, I use constructs similar to this while debugging. Conditional breakpoints can be very expensive in time when one is running a source-level debugger. To avoid dying of old age while the program executes in the debugger, I'll create an if-block like this, then set an unconditional breakpoint on, say, the *outcallRevCount = 0 line; that way, the debugger runs much faster, and I get the debugger to stop when i == 0. Leaving it in production code, however, is sloppy to say the least.

      1 Reply Last reply
      0
      • C cpkilekofp

        CIDev wrote:

        And people ( especially non-programmers/managers ) don't understand why I say that just because it seems to work doesn't mean that it is good code.

        Sometimes, when I tell a manager about the Obscure C contest, tne light goes on :laugh:

        B Offline
        B Offline
        BillW33
        wrote on last edited by
        #23

        For those who don't know The International Obfuscated C Code Contest (IOCCC) is located at: http://www.ioccc.org/main.html[^] Bill W

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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