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. How much time should be spent on the little things

How much time should be spent on the little things

Scheduled Pinned Locked Moved The Lounge
tutorialquestion
58 Posts 22 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 Joe Q

    I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

    P Offline
    P Offline
    Paul Watson
    wrote on last edited by
    #15

    Little things add up to big things. Look after the pennies and the pounds will look after themselves. An avalanche is made up of pebbles. It only takes one. ... I could go on.

    regards, Paul Watson Ireland & South Africa

    Shog9 wrote:

    I don't see it happening, at least not until it becomes pointless.

    J 1 Reply Last reply
    0
    • J Joe Q

      I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #16

      I prefer your style. For some reason I like to have spacing around parentheses. For function calls, there is no space between the function name and the opening parenthesis; for statements which require parentheses around a condition, I leave a space between the keyword and the opening parenthesis. That is:

      foo( bar );

      for ( int i = 0; i < 4; ++i )
      {
      // statements
      }

      As long as other programmers can read and understand it - that is, there are no egregious errors in formatting that lead to confusion, like erroneous indentation implying one block structure where in fact the language syntax imposes a different one - I'd ignore it. Example of error:

      if ( condition )
      statement1;
      statement2;

      which implies (from the indentation) that statement2 will only be executed if condition is true, whereas it will actually always be executed. We don't actually have a coding standard in this area, although I don't think any of us use K&R bracing style - opening braces always get a line to themselves. I find placing the first line of a controlled block immediately after the control statement looks too compressed - I normally add a blank line after an If condition Then line in VB anyway.

      Stability. What an interesting concept. -- Chris Maunder

      J 1 Reply Last reply
      0
      • P Paul Watson

        Little things add up to big things. Look after the pennies and the pounds will look after themselves. An avalanche is made up of pebbles. It only takes one. ... I could go on.

        regards, Paul Watson Ireland & South Africa

        Shog9 wrote:

        I don't see it happening, at least not until it becomes pointless.

        J Offline
        J Offline
        Joe Q
        wrote on last edited by
        #17

        Paul Watson wrote:

        An avalanche is made up of pebbles.

        There are a lot of sayings a long that line. I haven't seen many avalanches on flat ground no matter how many pebbles are there. My point is how much schedule should be sacrificed to do the little things? The schedule he came up with is already way to tight (bordering impossible) How many hours away from your family should be sacrificed for things like that? My family is more important to me.

        P P 2 Replies Last reply
        0
        • M Mike Dimmick

          I prefer your style. For some reason I like to have spacing around parentheses. For function calls, there is no space between the function name and the opening parenthesis; for statements which require parentheses around a condition, I leave a space between the keyword and the opening parenthesis. That is:

          foo( bar );

          for ( int i = 0; i < 4; ++i )
          {
          // statements
          }

          As long as other programmers can read and understand it - that is, there are no egregious errors in formatting that lead to confusion, like erroneous indentation implying one block structure where in fact the language syntax imposes a different one - I'd ignore it. Example of error:

          if ( condition )
          statement1;
          statement2;

          which implies (from the indentation) that statement2 will only be executed if condition is true, whereas it will actually always be executed. We don't actually have a coding standard in this area, although I don't think any of us use K&R bracing style - opening braces always get a line to themselves. I find placing the first line of a controlled block immediately after the control statement looks too compressed - I normally add a blank line after an If condition Then line in VB anyway.

          Stability. What an interesting concept. -- Chris Maunder

          J Offline
          J Offline
          Joe Q
          wrote on last edited by
          #18

          Mike Dimmick wrote:

          As long as other programmers can read and understand it - that is, there are no egregious errors in formatting that lead to confusion, like erroneous indentation implying one block structure where in fact the language syntax imposes a different one - I'd ignore it.

          That is my point too. If someone can read "func_one (param);" and not "func_one( param );" they should probably go to marketing or some other job. Or at least have a cat scan (I'll get the cat! :laugh:)

          1 Reply Last reply
          0
          • J Joe Q

            Paul Watson wrote:

            An avalanche is made up of pebbles.

            There are a lot of sayings a long that line. I haven't seen many avalanches on flat ground no matter how many pebbles are there. My point is how much schedule should be sacrificed to do the little things? The schedule he came up with is already way to tight (bordering impossible) How many hours away from your family should be sacrificed for things like that? My family is more important to me.

            P Offline
            P Offline
            Paul Watson
            wrote on last edited by
            #19

            Joe Q wrote:

            I haven't seen many avalanches on flat ground no matter how many pebbles are there.

            If they pile up they become a mountain and then you'll get avalanches ;)

            Joe Q wrote:

            The schedule he came up with is already way to tight (bordering impossible) How many hours away from your family should be sacrificed for things like that? My family is more important to me.

            Your boss should not be asking you to do this on your own time. But it sounds like your project has bigger problems than code style. Sounds like you need to talk to your boss about the project timeline and how it is not realistic, how it is sacrificing quality and how it is risky.

            regards, Paul Watson Ireland & South Africa

            Shog9 wrote:

            I don't see it happening, at least not until it becomes pointless.

            J 1 Reply Last reply
            0
            • P Paul Watson

              Joe Q wrote:

              I haven't seen many avalanches on flat ground no matter how many pebbles are there.

              If they pile up they become a mountain and then you'll get avalanches ;)

              Joe Q wrote:

              The schedule he came up with is already way to tight (bordering impossible) How many hours away from your family should be sacrificed for things like that? My family is more important to me.

              Your boss should not be asking you to do this on your own time. But it sounds like your project has bigger problems than code style. Sounds like you need to talk to your boss about the project timeline and how it is not realistic, how it is sacrificing quality and how it is risky.

              regards, Paul Watson Ireland & South Africa

              Shog9 wrote:

              I don't see it happening, at least not until it becomes pointless.

              J Offline
              J Offline
              Joe Q
              wrote on last edited by
              #20

              Paul Watson wrote:

              Your boss should not be asking you to do this on your own time.

              You're right, but it's a fairly common practice at this place.

              Paul Watson wrote:

              But it sounds like your project has bigger problems than code style. Sounds like you need to talk to your boss about the project timeline and how it is not realistic, how it is sacrificing quality and how it is risky.

              It does. The customer set the deadline and our management said "Yes, we can meet that" without checking with engineering. There's also a big problem with requirments creep, most of the programmers people are hardware guys and haven't done much software in the past. Yes, we have bigger problems but this one (software style) is one the boss can actually address and control.

              P 1 Reply Last reply
              0
              • J Joe Q

                Paul Watson wrote:

                An avalanche is made up of pebbles.

                There are a lot of sayings a long that line. I haven't seen many avalanches on flat ground no matter how many pebbles are there. My point is how much schedule should be sacrificed to do the little things? The schedule he came up with is already way to tight (bordering impossible) How many hours away from your family should be sacrificed for things like that? My family is more important to me.

                P Offline
                P Offline
                Pierre Leclercq
                wrote on last edited by
                #21

                Joe Q wrote:

                My point is how much schedule should be sacrificed to do the little things?

                Well, I'd say, do the important things and see what's left on the schedule :-D

                J 1 Reply Last reply
                0
                • J Joe Q

                  Pierre Leclercq wrote:

                  fact he asks you to do it in one big chunk does not make too much sense

                  My boss isn't to big on the common sense thing. He sort of manages as he goes. He gave me a major chuck of code to do, then he started giving me other things to do (such as the style guide). Then, in a meeting with the customer he announced I was the software lead. BTW, I wasn't in the meeting and didn't figure out I was lead for a week after the meeting when I was going through the charts. I'm not a fan of the "Suprise!" style of management. He's a good software guy, but not necessarily a good manager.

                  P Offline
                  P Offline
                  Pierre Leclercq
                  wrote on last edited by
                  #22

                  Joe Q wrote:

                  Then, in a meeting with the customer he announced I was the software lead.

                  Arf arf arf!!!! :laugh: :laugh: It's like everybody knows you're in charge, except ... you!

                  J B 2 Replies Last reply
                  0
                  • P Pierre Leclercq

                    Joe Q wrote:

                    My point is how much schedule should be sacrificed to do the little things?

                    Well, I'd say, do the important things and see what's left on the schedule :-D

                    J Offline
                    J Offline
                    Joe Q
                    wrote on last edited by
                    #23

                    Pierre Leclercq wrote:

                    Well, I'd say, do the important things and see what's left on the schedule

                    ahh, common sense. We're in short supply of that around here.

                    1 Reply Last reply
                    0
                    • P Pierre Leclercq

                      Joe Q wrote:

                      Then, in a meeting with the customer he announced I was the software lead.

                      Arf arf arf!!!! :laugh: :laugh: It's like everybody knows you're in charge, except ... you!

                      J Offline
                      J Offline
                      Joe Q
                      wrote on last edited by
                      #24

                      I guess I didn't have a "Need to Know" :laugh:

                      M 1 Reply Last reply
                      0
                      • J Joe Q

                        Paul Watson wrote:

                        Your boss should not be asking you to do this on your own time.

                        You're right, but it's a fairly common practice at this place.

                        Paul Watson wrote:

                        But it sounds like your project has bigger problems than code style. Sounds like you need to talk to your boss about the project timeline and how it is not realistic, how it is sacrificing quality and how it is risky.

                        It does. The customer set the deadline and our management said "Yes, we can meet that" without checking with engineering. There's also a big problem with requirments creep, most of the programmers people are hardware guys and haven't done much software in the past. Yes, we have bigger problems but this one (software style) is one the boss can actually address and control.

                        P Offline
                        P Offline
                        Paul Watson
                        wrote on last edited by
                        #25

                        Joe Q wrote:

                        Yes, we have bigger problems but this one (software style) is one the boss can actually address and control.

                        It should be prioritised along with all the other development tasks in the project. You then work by priority during work hours. I'd tell him that there are higher priority items to do first and that non-work hours are filled with raising your family. If he doesn't understand that then I'm afraid you don't have a reasonable boss and none of us can help much with advice.

                        regards, Paul Watson Ireland & South Africa

                        Shog9 wrote:

                        I don't see it happening, at least not until it becomes pointless.

                        J 1 Reply Last reply
                        0
                        • P Paul Watson

                          Joe Q wrote:

                          Yes, we have bigger problems but this one (software style) is one the boss can actually address and control.

                          It should be prioritised along with all the other development tasks in the project. You then work by priority during work hours. I'd tell him that there are higher priority items to do first and that non-work hours are filled with raising your family. If he doesn't understand that then I'm afraid you don't have a reasonable boss and none of us can help much with advice.

                          regards, Paul Watson Ireland & South Africa

                          Shog9 wrote:

                          I don't see it happening, at least not until it becomes pointless.

                          J Offline
                          J Offline
                          Joe Q
                          wrote on last edited by
                          #26

                          Paul Watson wrote:

                          I'd tell him that there are higher priority items to do first and that non-work hours are filled with raising your family. If he doesn't understand that then I'm afraid you don't have a reasonable boss and none of us can help much with advice.

                          In many cases he is not a reasonable boss. He used to be an Engineer but when he became a boss, he seemed to forget what it was like to actually have to do the work. I think I'm going to put this on my 2010 todo list. (That's what I tell people when I don't plan on doing something)

                          1 Reply Last reply
                          0
                          • J Joe Q

                            I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

                            S Offline
                            S Offline
                            Simon Capewell
                            wrote on last edited by
                            #27

                            This is the real WTFOTD: Your boss wants to risk the introduction of bugs for the zero benefit of a few brackets being rearranged because he couldn't be bothered to write the style guide before you started coding. Tell him it's too late. Tell him it'll take 3 months to restyle it. Tell him his style isn't supported by Microsoft. Tell him anything to avoid having to do this astonishingly stupid requirement. Anyway, it's the comments that are important, not the spacing of the brackets. You did comment the code, right? ;)

                            J 1 Reply Last reply
                            0
                            • J Joe Q

                              I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

                              M Offline
                              M Offline
                              Member 96
                              wrote on last edited by
                              #28

                              Setting a new style for new work and sticking to it may be productive. Modifying existing code to meet a style for something as trivial as a space is a clear sign of madness or a company that has so little work to do that they can spend time screwing around with what is (let's be honest here) entirely pointless. I wonder if the shareholders know how their expensive developer resources are being spent?

                              J 1 Reply Last reply
                              0
                              • S Simon Capewell

                                This is the real WTFOTD: Your boss wants to risk the introduction of bugs for the zero benefit of a few brackets being rearranged because he couldn't be bothered to write the style guide before you started coding. Tell him it's too late. Tell him it'll take 3 months to restyle it. Tell him his style isn't supported by Microsoft. Tell him anything to avoid having to do this astonishingly stupid requirement. Anyway, it's the comments that are important, not the spacing of the brackets. You did comment the code, right? ;)

                                J Offline
                                J Offline
                                Joe Q
                                wrote on last edited by
                                #29

                                Simon Capewell wrote:

                                You did comment the code, right?

                                Comments...what's that? :laugh: Yes, the code is fairly well commented. Actually, I'm probably going to tell him it's on my 2010 to do list (what I tell people when I don't want to do something).

                                D 1 Reply Last reply
                                0
                                • J Joe Q

                                  I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

                                  R Offline
                                  R Offline
                                  Ravi Bhavnani
                                  wrote on last edited by
                                  #30

                                  Joe Q wrote:

                                  So how much time should be spent doing the little things such as changing style?

                                  Much less than what you boss seems to be spending. Looks like he's got time to kill. :) /ravi

                                  My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

                                  J 1 Reply Last reply
                                  0
                                  • J Joe Q

                                    Simon Capewell wrote:

                                    You did comment the code, right?

                                    Comments...what's that? :laugh: Yes, the code is fairly well commented. Actually, I'm probably going to tell him it's on my 2010 to do list (what I tell people when I don't want to do something).

                                    D Offline
                                    D Offline
                                    Daniel Grunwald
                                    wrote on last edited by
                                    #31

                                    2010 is less than 3 years 2 months away. I'm already using my 2020 to-do list.

                                    J 1 Reply Last reply
                                    0
                                    • J Joe Q

                                      I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

                                      J Offline
                                      J Offline
                                      Jeremy Falcon
                                      wrote on last edited by
                                      #32

                                      Joe Q wrote:

                                      So how much time should be spent doing the little things such as changing style?

                                      Is you're boss a dev or wants to pretend he's one (I've seen that before too). If he has no real reason other than he likes his style better, then welcome to micro management hell.

                                      Jeremy Falcon A multithreaded, OpenGL-enabled application.[^]

                                      J 1 Reply Last reply
                                      0
                                      • M Member 96

                                        Setting a new style for new work and sticking to it may be productive. Modifying existing code to meet a style for something as trivial as a space is a clear sign of madness or a company that has so little work to do that they can spend time screwing around with what is (let's be honest here) entirely pointless. I wonder if the shareholders know how their expensive developer resources are being spent?

                                        J Offline
                                        J Offline
                                        Jeremy Falcon
                                        wrote on last edited by
                                        #33

                                        John Cardinal wrote:

                                        company that has so little work to do that they can spend time screwing around with what is (let's be honest here) entirely pointless.

                                        Yeah, I get the impression the boss wants to play developer from this.

                                        Jeremy Falcon A multithreaded, OpenGL-enabled application.[^]

                                        S 1 Reply Last reply
                                        0
                                        • J Joe Q

                                          I put out a programming style guide and the boss overruled a few things. For example I had call to a function as function_name( param1, param2 ); and my boss changed it to function_name (param1, param2); Honestly, to me it doesn't matter which way or even if both ways are used as long as an individual is consistent. However, I've written 8K SLOC in my style (before the guide came out) and now my boss wants me to "take however long it has to" to meet his style. BTW, no actual schedule relief is allowed and I'm supposed to be done this Monday. I can get the code working by COB Monday without his style guide changes to it. I may be another week of mind numbing work to change the spacing. So how much time should be spent doing the little things such as changing style? (just to let you know, the boss was going to put out the style guide until it was 4 months late then gave me the task) Thanks Joe Q

                                          A Offline
                                          A Offline
                                          alex barylski
                                          wrote on last edited by
                                          #34

                                          Entirely superficial changes like whitespace...you shouldn't spend more than a few seconds changing from one style to another. Find a beautifier that does that for you?

                                          It's frustrating being a genius and living the life of a moron!!!

                                          J 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