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. IT & Infrastructure
  4. Coding standards without control?

Coding standards without control?

Scheduled Pinned Locked Moved IT & Infrastructure
questioncomtools
8 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.
  • M Offline
    M Offline
    martinig
    wrote on last edited by
    #1

    A recent poll asked if programming standards are still in use in development organisations... and if they are controlled. None.........................20% Yes, but without control.....49% Yes, with control............31% Participants: 369 Source: Methods & Tools (http://www.methodsandtools.com) A majority of the participating organisations have coding standards... and a majority does not control them ;o) What is the situation at your location? Does this lack of control really hurt?

    E L K 3 Replies Last reply
    0
    • M martinig

      A recent poll asked if programming standards are still in use in development organisations... and if they are controlled. None.........................20% Yes, but without control.....49% Yes, with control............31% Participants: 369 Source: Methods & Tools (http://www.methodsandtools.com) A majority of the participating organisations have coding standards... and a majority does not control them ;o) What is the situation at your location? Does this lack of control really hurt?

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

      Even though we have standards, some are controlled (database end and middle tiers) and some are not (front end). This is mainly do to programmers abilities. Most senior level programmers do the back/middle tiers and lesser programmers do the UI, since it's usually easier.

      L 1 Reply Last reply
      0
      • M martinig

        A recent poll asked if programming standards are still in use in development organisations... and if they are controlled. None.........................20% Yes, but without control.....49% Yes, with control............31% Participants: 369 Source: Methods & Tools (http://www.methodsandtools.com) A majority of the participating organisations have coding standards... and a majority does not control them ;o) What is the situation at your location? Does this lack of control really hurt?

        L Offline
        L Offline
        Leah_Garrett
        wrote on last edited by
        #3

        Not sure what with control would imply. Something like an automated lint checker? Changing code to corect coding standards can obscur maintenance coding changes in source control systems. I once worked on a team where someone "fixed" the location of all the curly braces in the file where he corrected a bug. The team lead rolled back the changes asking the dev to redo with just his bug fix! We do have coding standards but for maintenance code I just follow the style being used as much as possible. There is no control on our coding standards. Some people handle this better then others. :)

        K 1 Reply Last reply
        0
        • E ednrgc

          Even though we have standards, some are controlled (database end and middle tiers) and some are not (front end). This is mainly do to programmers abilities. Most senior level programmers do the back/middle tiers and lesser programmers do the UI, since it's usually easier.

          L Offline
          L Offline
          Leah_Garrett
          wrote on last edited by
          #4

          edboe wrote:

          Most senior level programmers do the back/middle tiers and lesser programmers do the UI, since it's usually easier.

          Ouch. On our recent .Net app development I think the front-end code followed the coding standard better then the back-end. In VB.Net the environment takes care of indenting and captialisation. Some people writing the stored procs used a range of indenting styles and SQL commands were inconsistanly cased (even in the same file).

          K E 2 Replies Last reply
          0
          • M martinig

            A recent poll asked if programming standards are still in use in development organisations... and if they are controlled. None.........................20% Yes, but without control.....49% Yes, with control............31% Participants: 369 Source: Methods & Tools (http://www.methodsandtools.com) A majority of the participating organisations have coding standards... and a majority does not control them ;o) What is the situation at your location? Does this lack of control really hurt?

            K Offline
            K Offline
            Kevin McFarlane
            wrote on last edited by
            #5

            It is also common for there to be standards in place but with developers being unaware of this. I guess this is a subset of "Yes, but without control."

            Kevin

            1 Reply Last reply
            0
            • L Leah_Garrett

              edboe wrote:

              Most senior level programmers do the back/middle tiers and lesser programmers do the UI, since it's usually easier.

              Ouch. On our recent .Net app development I think the front-end code followed the coding standard better then the back-end. In VB.Net the environment takes care of indenting and captialisation. Some people writing the stored procs used a range of indenting styles and SQL commands were inconsistanly cased (even in the same file).

              K Offline
              K Offline
              Kevin McFarlane
              wrote on last edited by
              #6

              I think coding standards should not focus on the things you describe here, which are style. It's more important that correct techniques are applied, e.g., in .NET, that unmanaged resources are handled properly with using or try-finally. Style tends to be subjective. I'd say by all means put recommendations in the coding standards document but don't go overboard in enforcing them.

              Kevin

              1 Reply Last reply
              0
              • L Leah_Garrett

                Not sure what with control would imply. Something like an automated lint checker? Changing code to corect coding standards can obscur maintenance coding changes in source control systems. I once worked on a team where someone "fixed" the location of all the curly braces in the file where he corrected a bug. The team lead rolled back the changes asking the dev to redo with just his bug fix! We do have coding standards but for maintenance code I just follow the style being used as much as possible. There is no control on our coding standards. Some people handle this better then others. :)

                K Offline
                K Offline
                Kevin McFarlane
                wrote on last edited by
                #7

                Leah_Garrett wrote:

                I just follow the style being used as much as possible.

                Same here. Though sometimes I violate this, if the style is sufficiently awful, as it has been in some of the JavaScript I've been maintaining recently! In such cases I then try and make the surrounding section of code, e.g., a whole method, consistent re: layout.

                Kevin

                1 Reply Last reply
                0
                • L Leah_Garrett

                  edboe wrote:

                  Most senior level programmers do the back/middle tiers and lesser programmers do the UI, since it's usually easier.

                  Ouch. On our recent .Net app development I think the front-end code followed the coding standard better then the back-end. In VB.Net the environment takes care of indenting and captialisation. Some people writing the stored procs used a range of indenting styles and SQL commands were inconsistanly cased (even in the same file).

                  E Offline
                  E Offline
                  ednrgc
                  wrote on last edited by
                  #8

                  I wasn't talking about indenting styles, but I understand your point.

                  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