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. How to chose self explanatory parameter names

How to chose self explanatory parameter names

Scheduled Pinned Locked Moved The Weird and The Wonderful
comhardwaretutoriallearning
4 Posts 4 Posters 0 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.
  • W Offline
    W Offline
    WilliamSauron
    wrote on last edited by
    #1

    Our low-level embedded communication servers use a .INI file for configurable parameters. There is a [send] section, and a [receive] section. The [send] section contains an aptly named SendRetryCount parameter. In one of the drivers, we also need a ReceiveRetryCount parameter. Guess where the programmer chose to place it. If your bet was the [receive] section, you lose. It is of course in the [send] section...

    -- Quidquid latine dictum sit, altum sonatur. http://streambolics.flimbase.com S. L.

    E B V 3 Replies Last reply
    0
    • W WilliamSauron

      Our low-level embedded communication servers use a .INI file for configurable parameters. There is a [send] section, and a [receive] section. The [send] section contains an aptly named SendRetryCount parameter. In one of the drivers, we also need a ReceiveRetryCount parameter. Guess where the programmer chose to place it. If your bet was the [receive] section, you lose. It is of course in the [send] section...

      -- Quidquid latine dictum sit, altum sonatur. http://streambolics.flimbase.com S. L.

      E Offline
      E Offline
      egenis
      wrote on last edited by
      #2

      probably wasn't sure if he was coming or going? :sigh:

      1 Reply Last reply
      0
      • W WilliamSauron

        Our low-level embedded communication servers use a .INI file for configurable parameters. There is a [send] section, and a [receive] section. The [send] section contains an aptly named SendRetryCount parameter. In one of the drivers, we also need a ReceiveRetryCount parameter. Guess where the programmer chose to place it. If your bet was the [receive] section, you lose. It is of course in the [send] section...

        -- Quidquid latine dictum sit, altum sonatur. http://streambolics.flimbase.com S. L.

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

        Clearly the programmer was highly organized and wanted to keep all the RetryCount parameters in the same place ;) :laugh:

        Just because the code works, it doesn't mean that it is good code.

        1 Reply Last reply
        0
        • W WilliamSauron

          Our low-level embedded communication servers use a .INI file for configurable parameters. There is a [send] section, and a [receive] section. The [send] section contains an aptly named SendRetryCount parameter. In one of the drivers, we also need a ReceiveRetryCount parameter. Guess where the programmer chose to place it. If your bet was the [receive] section, you lose. It is of course in the [send] section...

          -- Quidquid latine dictum sit, altum sonatur. http://streambolics.flimbase.com S. L.

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          WilliamSauron wrote:

          If your bet was the [receive] section, you lose. It is of course in the [send] section...

          Might be he was doing a mirror-coding.

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

          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