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. The Lounge
  3. Longest program parameter?

Longest program parameter?

Scheduled Pinned Locked Moved The Lounge
question
15 Posts 10 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.
  • M Munchies_Matt

    Ignores it and fucks off down the pub! What else do you expect to happen! :)

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #6

    Throw an exception? A tantrum? Plays a wav file going "haha-ha!"?

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

    M T 2 Replies Last reply
    0
    • L Lost User

      Throw an exception? A tantrum? Plays a wav file going "haha-ha!"?

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      M Offline
      M Offline
      Munchies_Matt
      wrote on last edited by
      #7

      Nah, it is in the kernel. The execution just wanders off and does something else useful. :)

      1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        I've never used it, but I know it exists: InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState[^] :laugh: Apparently some Java Swing thing :D

        Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly

        G Offline
        G Offline
        Gisle Vanem
        wrote on last edited by
        #8

        Long indeed, but not a Program paramter.

        -- Gisle V.

        1 Reply Last reply
        0
        • L Lost User

          Throw an exception? A tantrum? Plays a wav file going "haha-ha!"?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          T Offline
          T Offline
          TonyManso
          wrote on last edited by
          #9

          Eddy Vluggen wrote:

          Plays a wav file going "haha-ha!"?

          Perhaps a laugh similar to Mandark[^]?

          On the other hand, you have different fingers. - Steven Wright

          1 Reply Last reply
          0
          • G Gisle Vanem

            I just came across what I think it's the longest program parameter I've seen:

            -Wno-incompatible-pointer-types-discards-qualifiers

            This is from clang-cl; a sort GNU-C in MSVC cl clothing. Any longer?

            -- Gisle V.

            K Offline
            K Offline
            Kunal Chowdhury IN
            wrote on last edited by
            #10

            As long as it's meaningful, I always prefer a long name for methods, variables, properties... whatever you say. 'GetPersonName()' is preferable than 'GetPN()' or 'GetP()' etc. The most important thing is, you don't have to write self-documentation and the person on the other side still understand what the code works. Just my thoughts... :)

            Vote up or Mark as Answered, if this information helped you.
            Kind Regards - Kunal Chowdhury | Microsoft MVP (Windows Development), Windows 10 Champion


            Checkout my 'Technical blog':     http://www.kunal-chowdhury.com


            1 Reply Last reply
            0
            • M Munchies_Matt

              I name some of my funcs as exactly what they do, even if it becomes something like: CheckUSBIDAndIfWeCanHandleItGetDescriptorData(...); Yeah, its a mouthful, but it dont half make the good freaking self documenting! :)

              G Offline
              G Offline
              Gary Huck
              wrote on last edited by
              #11

              Munchies_Matt wrote:

              it dont half make the good freaking self documenting

              :) (please tell me that was sarcasm)

              M 1 Reply Last reply
              0
              • G Gary Huck

                Munchies_Matt wrote:

                it dont half make the good freaking self documenting

                :) (please tell me that was sarcasm)

                M Offline
                M Offline
                Munchies_Matt
                wrote on last edited by
                #12

                Nope. :)

                1 Reply Last reply
                0
                • G Gisle Vanem

                  I just came across what I think it's the longest program parameter I've seen:

                  -Wno-incompatible-pointer-types-discards-qualifiers

                  This is from clang-cl; a sort GNU-C in MSVC cl clothing. Any longer?

                  -- Gisle V.

                  K Offline
                  K Offline
                  kalberts
                  wrote on last edited by
                  #13

                  not program parameter (/argument), but related: A few years ago, the group set down in our company to revise the coding rules tried to set a maximum source code line lenght of 80 chars. Our project leader immediately declared that our code was not to accept that limit: We had rules for creating C #define symbols that lead to symbols exceeding 80 chars (and every character in UPPERCASE). Actuall, we had several guys praising those rules (the same ones who were complaining about the 260 char file name length in FAT file systems). Going even further back in time: I was working for a company selling their own Fortran compiler. One customer hit one ceiling: A function could have at most 99 parameters; he had more than that. Another crazy hit-the-ceiling: A friend of mine had to extend a linker: Each module had an export table that was indexed by a signed 16-bit integer. One customer's project created a module which exported more than 32767 symbols. The quick fix was to double the maximum table size by making the index unsigned. The same project created a struct type definition of roughly 8300 lines of code. (That didn't break any limits, though.) If noone breaks a limit, that limit serves no real purpose... :-)

                  A 1 Reply Last reply
                  0
                  • K kalberts

                    not program parameter (/argument), but related: A few years ago, the group set down in our company to revise the coding rules tried to set a maximum source code line lenght of 80 chars. Our project leader immediately declared that our code was not to accept that limit: We had rules for creating C #define symbols that lead to symbols exceeding 80 chars (and every character in UPPERCASE). Actuall, we had several guys praising those rules (the same ones who were complaining about the 260 char file name length in FAT file systems). Going even further back in time: I was working for a company selling their own Fortran compiler. One customer hit one ceiling: A function could have at most 99 parameters; he had more than that. Another crazy hit-the-ceiling: A friend of mine had to extend a linker: Each module had an export table that was indexed by a signed 16-bit integer. One customer's project created a module which exported more than 32767 symbols. The quick fix was to double the maximum table size by making the index unsigned. The same project created a struct type definition of roughly 8300 lines of code. (That didn't break any limits, though.) If noone breaks a limit, that limit serves no real purpose... :-)

                    A Offline
                    A Offline
                    Alister Morton
                    wrote on last edited by
                    #14

                    Kind of related - many years ago we had someone join our team who was a one finger typist - literally. Used the caps lock key rather than hold down shift whenever he could, that sort of thing. When we cottoned on to this, method names in our libraries started to "evolve" under the guise of better clarity, so fg() became setDefaultForegroundTextColour() and cp() became setVirtualTextCursorPosition() and so on. this was before the days of intellisense and auto-completion, of course.

                    1 Reply Last reply
                    0
                    • G Gisle Vanem

                      I just came across what I think it's the longest program parameter I've seen:

                      -Wno-incompatible-pointer-types-discards-qualifiers

                      This is from clang-cl; a sort GNU-C in MSVC cl clothing. Any longer?

                      -- Gisle V.

                      S Offline
                      S Offline
                      SNDThunderfist
                      wrote on last edited by
                      #15

                      Some code generators get to having super long variables. In the 1990's at Sun Microsystems we had to fix a 'bug' in the compiler because variables went over the 256 character limit.

                      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