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. Uhhh...

Uhhh...

Scheduled Pinned Locked Moved The Weird and The Wonderful
questioncomadobearchitecture
8 Posts 5 Posters 4 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 Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    C/mainarray.c at master · dequbed/C · GitHub[^] I... uh... :wtf:

    What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

    J G 2 Replies Last reply
    0
    • B Brisingr Aerowing

      C/mainarray.c at master · dequbed/C · GitHub[^] I... uh... :wtf:

      What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

      J Offline
      J Offline
      Jon McKee
      wrote on last edited by
      #2

      The [multilayered switch cake](https://github.com/dequbed/C/tree/master/multilayeredswitchcake) example still has me scratching my head :doh:

      M 1 Reply Last reply
      0
      • J Jon McKee

        The [multilayered switch cake](https://github.com/dequbed/C/tree/master/multilayeredswitchcake) example still has me scratching my head :doh:

        M Offline
        M Offline
        MarkTJohnson
        wrote on last edited by
        #3

        That was a thing of beauty. Duff's device to the next level. Duff's device - Wikipedia[^]

        I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.

        1 Reply Last reply
        0
        • B Brisingr Aerowing

          C/mainarray.c at master · dequbed/C · GitHub[^] I... uh... :wtf:

          What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

          G Offline
          G Offline
          Gary Wheeler
          wrote on last edited by
          #4

          Pardon me for being a tad dense, but... is that somehow a hand-assembled main() function, encoded in oh-so-useful decimal?

          Software Zen: delete this;

          B 1 Reply Last reply
          0
          • G Gary Wheeler

            Pardon me for being a tad dense, but... is that somehow a hand-assembled main() function, encoded in oh-so-useful decimal?

            Software Zen: delete this;

            B Offline
            B Offline
            Brisingr Aerowing
            wrote on last edited by
            #5

            Pretty much.

            What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

            G 1 Reply Last reply
            0
            • B Brisingr Aerowing

              Pretty much.

              What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #6

              To coin a phrase: "Kill it before it runs." Even if something like that were technically necessary (I could see it in embedded code), an array of completely undocumented random decimal integers is beyond ridiculous. Even if the compiler doesn't support the asm keyword and inline assembly, you could still list the array contents as hexadecimal values with the corresponding assembly code in adjacent comments.

              Software Zen: delete this;

              Greg UtasG 1 Reply Last reply
              0
              • G Gary Wheeler

                To coin a phrase: "Kill it before it runs." Even if something like that were technically necessary (I could see it in embedded code), an array of completely undocumented random decimal integers is beyond ridiculous. Even if the compiler doesn't support the asm keyword and inline assembly, you could still list the array contents as hexadecimal values with the corresponding assembly code in adjacent comments.

                Software Zen: delete this;

                Greg UtasG Offline
                Greg UtasG Offline
                Greg Utas
                wrote on last edited by
                #7

                Also ridiculous are names that activate horizontal scroll bars. But I digress. :laugh:

                Robust Services Core | Software Techniques for Lemmings | Articles
                The fox knows many things, but the hedgehog knows one big thing.

                <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
                <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

                G 1 Reply Last reply
                0
                • Greg UtasG Greg Utas

                  Also ridiculous are names that activate horizontal scroll bars. But I digress. :laugh:

                  Robust Services Core | Software Techniques for Lemmings | Articles
                  The fox knows many things, but the hedgehog knows one big thing.

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #8

                  Ah, but there's a reason for the ridiculously long name. The name I listed is the longest for a group of enum values which are individual bits in a 32 bit mask. Each bit identifies a message that should be displayed to the operator. The equipment can identify a single message or several to be displayed at once. The messages don't lend themselves to any kind of consistent, concise naming scheme. As we know, the following two problems are fundamentally difficult in computing:

                  1. Cache invalidation
                  2. Creating appropriate identifiers
                  3. Off-by-1 errors

                  The simplest and most logically consistent naming for each bit was therefore the text for that bit, with minor transformations to convert the text into a valid C++ identifier. Space characters and all punctuation became underscores, and Bob's your uncle. Just to add to your excitement over this challenging and seemingly intransigent problem, there is ongoing grumbling from the equipment group over the text I actually display based upon each bit. They expect the exact text in their specification to be displayed. You see, I have this effete and unwanted fondness for grammatical English, which their text... isn't. We won't even mention (yes we will) the fact that our UI is also translated to French, Italian, German, Spanish, Japanese, Chinese Simplified, Korean, Polish, and Russian. Some folks just kind of expect us to speak their language.

                  Software Zen: delete this;

                  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