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. YouPreferSomethingLikeThis or you-prefer-something-like-this?

YouPreferSomethingLikeThis or you-prefer-something-like-this?

Scheduled Pinned Locked Moved The Lounge
linuxquestion
36 Posts 20 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.
  • J Offline
    J Offline
    jpg 0
    wrote on last edited by
    #1

    Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

    OriginalGriffO L E C B 9 Replies Last reply
    0
    • J jpg 0

      Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      For best results, I would recommend a Fortran naming convention: 6 characters only, starts with a letter. No lower case. :-D

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      H V M 3 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        For best results, I would recommend a Fortran naming convention: 6 characters only, starts with a letter. No lower case. :-D

        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

        H Offline
        H Offline
        Hiren solanki
        wrote on last edited by
        #3

        Compiler will complain to code on shouting.

        Regards, Hiren. -"I don't know, I don't care, and it doesn't make any difference".

        OriginalGriffO 1 Reply Last reply
        0
        • H Hiren solanki

          Compiler will complain to code on shouting.

          Regards, Hiren. -"I don't know, I don't care, and it doesn't make any difference".

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Nah - compilers are used to developers screaming at them. Abuse normally.

          Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          G B 2 Replies Last reply
          0
          • J jpg 0

            Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

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

            That's very simple. Take the one that does not annoy you. It's you that has to read it most of the time. At work your bosses can tell you how they want to have things done. In your own projects you are the king.

            At least artificial intelligence already is superior to natural stupidity

            1 Reply Last reply
            0
            • J jpg 0

              Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

              E Offline
              E Offline
              Espen Harlinn
              wrote on last edited by
              #6

              This will compile:

              YouPreferSomethingLikeThis

              This:

              you-prefer-something-like-this

              requires that you have overloaded the '-' operator and that you have variables named 'you', 'prefer', 'something' and 'like' I assume that you actually wanted to write this:

              you_prefer_something_like_this

              So in your case I would go with the former, as it is probably what you are used to.

              Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile

              1 Reply Last reply
              0
              • J jpg 0

                Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

                C Offline
                C Offline
                Chris C B
                wrote on last edited by
                #7

                So there! :)

                OriginalGriffO G E 3 Replies Last reply
                0
                • C Chris C B

                  So there! :)

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #8

                  (so do I, but I'm trying not to use Hungarian notation, and have been trying for years...Don't tell anybody!)

                  Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    For best results, I would recommend a Fortran naming convention: 6 characters only, starts with a letter. No lower case. :-D

                    Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                    V Offline
                    V Offline
                    Vivi Chellappa
                    wrote on last edited by
                    #9

                    No. COBOL is better. Names as long as thirty characters are allowed.

                    OriginalGriffO 1 Reply Last reply
                    0
                    • V Vivi Chellappa

                      No. COBOL is better. Names as long as thirty characters are allowed.

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #10

                      Vivic wrote:

                      COBOL is better.

                      That is the first time I have ever seen those three words together, in that order, without them having the suffix "than being nailed to a wall by your eyes and having your genitals stapled together." And hopefully the last! :laugh:

                      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      V M 2 Replies Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Nah - compilers are used to developers screaming at them. Abuse normally.

                        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                        G Offline
                        G Offline
                        Gary R Wheeler
                        wrote on last edited by
                        #11

                        I refer to all of my IDE's using the same monicker: "You stupid sonnuvabitch."

                        Software Zen: delete this;

                        1 Reply Last reply
                        0
                        • J jpg 0

                          Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

                          B Offline
                          B Offline
                          Brady Kelly
                          wrote on last edited by
                          #12

                          I give myself a nice mix by using the dash for all things css because I can, and camelCase elsewhere. You can't use dashes everywhere, e.g. variable names in most languages.

                          1 Reply Last reply
                          0
                          • C Chris C B

                            So there! :)

                            G Offline
                            G Offline
                            Gary R Wheeler
                            wrote on last edited by
                            #13

                            Pascal case is okay, and underscores are groovy. Camel case, on the other hand, is an abomination before God. (so says the olde git)

                            Software Zen: delete this;

                            C 1 Reply Last reply
                            0
                            • J jpg 0

                              Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

                              M Offline
                              M Offline
                              Maximilien
                              wrote on last edited by
                              #14

                              If this is you own product, use the same coding convention that you are used to. If you are working on an existing Open Source software, use the coding conventions already in place for that project.

                              Watched code never compiles.

                              1 Reply Last reply
                              0
                              • J jpg 0

                                Before I step into the world of linux, I always use camel case, but in the linux world, almost everything are separated by a dash Now I have to manage a cross platform project and is thinking about which naming convention to adopt

                                J Offline
                                J Offline
                                Joan M
                                wrote on last edited by
                                #15

                                Depending the language you are using - can give you problems in variable names. Therefore I would go with an uppercase letter in each word start.

                                [www.tamautomation.com] Robots, CNC and PLC machines for grinding and polishing.

                                1 Reply Last reply
                                0
                                • G Gary R Wheeler

                                  Pascal case is okay, and underscores are groovy. Camel case, on the other hand, is an abomination before God. (so says the olde git)

                                  Software Zen: delete this;

                                  C Offline
                                  C Offline
                                  Chris C B
                                  wrote on last edited by
                                  #16

                                  Gary R. Wheeler wrote:

                                  underscores are groovy

                                  _I_hate_underscores_-_all_those_extra_key_strokes_._:mad:_

                                  Gary R. Wheeler wrote:

                                  Camel case, on the other hand, is an abomination before God.

                                  I'm a devil worshipper, so that's alright then. ;) Anyway, after 20 years in the Middle East, camel case just comes naturally. :laugh:

                                  G 1 Reply Last reply
                                  0
                                  • C Chris C B

                                    So there! :)

                                    E Offline
                                    E Offline
                                    Espen Harlinn
                                    wrote on last edited by
                                    #17

                                    iPreferSomethingLikeThis

                                    Is that the Apple style? ;)

                                    Espen Harlinn Principal Architect, Software - Goodtech Projects & Services AS My LinkedIn Profile

                                    1 Reply Last reply
                                    0
                                    • C Chris C B

                                      Gary R. Wheeler wrote:

                                      underscores are groovy

                                      _I_hate_underscores_-_all_those_extra_key_strokes_._:mad:_

                                      Gary R. Wheeler wrote:

                                      Camel case, on the other hand, is an abomination before God.

                                      I'm a devil worshipper, so that's alright then. ;) Anyway, after 20 years in the Middle East, camel case just comes naturally. :laugh:

                                      G Offline
                                      G Offline
                                      Gary R Wheeler
                                      wrote on last edited by
                                      #18

                                      Chris C-B wrote:

                                      after 20 years in the Middle East, camel case just comes naturally

                                      At my company, that statement would be an "EOE violation". EOE == the corporate policy that ensures that all employees are interchangable, gender and ethnic-neutral drones.

                                      Software Zen: delete this;

                                      1 Reply Last reply
                                      0
                                      • OriginalGriffO OriginalGriff

                                        Vivic wrote:

                                        COBOL is better.

                                        That is the first time I have ever seen those three words together, in that order, without them having the suffix "than being nailed to a wall by your eyes and having your genitals stapled together." And hopefully the last! :laugh:

                                        Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                                        V Offline
                                        V Offline
                                        Vivi Chellappa
                                        wrote on last edited by
                                        #19

                                        Come on. Do you have anything like the "Alter" statement which will change the address (statement label) you jump to while executing a program? Makes for a hairy debugging experience! :laugh:

                                        OriginalGriffO 1 Reply Last reply
                                        0
                                        • V Vivi Chellappa

                                          Come on. Do you have anything like the "Alter" statement which will change the address (statement label) you jump to while executing a program? Makes for a hairy debugging experience! :laugh:

                                          OriginalGriffO Offline
                                          OriginalGriffO Offline
                                          OriginalGriff
                                          wrote on last edited by
                                          #20

                                          FORTRAN: Not only can you declare a single integer and use it as a four dimensional array of reals, but you can change the value of physical constants! You haven't met hairy debugging until a loop that is fixed to do 3 iterations is doing 14 because the constant 3 has been changed. Or working out why your circles aren't because someone accidentally changed 3.1415927 to 8.6 Or assembler. Self modifying code! Fun, fun fun, 'til someone loses an eye... :laugh:

                                          Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

                                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                          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