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

    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
            • J Jeremy Falcon

              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 Offline
              S Offline
              Simon Capewell
              wrote on last edited by
              #35

              Yeah, so much so that he procrastinated for 4 months on the documentation. Typical developer!

              1 Reply Last reply
              0
              • J Joe Q

                Actually, we're using National Instruments LabWindows CVI (C with Virtual Instrumets). It's C with a lot of extensions to control hardware. NI's tools are mainly for hardware guys with 1 programming course under their belts. In NI examples goto's are used quite often. What I'm saying is, there are no standards outside what we impose as a project. What I'll probably do is tell my boss it's on my 2010 todo list. Thanks

                A Offline
                A Offline
                Anna Jayne Metcalfe
                wrote on last edited by
                #36

                You're using CVI? You have my sympathy. :rose: I used to work on some of Racal Instruments instrumentation runtime systems and virtual instrument drivers, BTW. It was interesting stuff, and far more capable in its field than anything CVI was ever capable of.

                Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                J 1 Reply Last reply
                0
                • B Bassam Abdul Baki

                  I've always preferred the least spaces except after the comma: function_name(param1, param2) { }


                  "This perpetual motion machine she made is a joke. It just keeps going faster and faster. Lisa, get in here! In this house, we obey the laws of thermodynamics!" - Homer Simpson Web - Blog - RSS - Math - LinkedIn - BM

                  A Offline
                  A Offline
                  Anna Jayne Metcalfe
                  wrote on last edited by
                  #37

                  That's my style too - I use white space where it will aid legibility, but not to excess. :)

                  Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                  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
                    Jasmine2501
                    wrote on last edited by
                    #38

                    You spend as much time on it as the boss want you to, then you document what you were working on. When he asks you why you aren't writing any new code, you bring out your documents and say, "Here, that's why." A good way to fix the style of lots of code is to use Visual Studio's auto-format feature. You may have to play with the setting a bit to get the exact style you want, but after that, you can open all your files, hit Ctrl-K-D on each one, and yer done. Really, you shouldn't be spending any time on that kind of crap. Old code should be 'grandfathered in' when a new style rule comes out, and should not be fixed until it's re-written. Also, the change you highlighted is totally stupid, and still wrong. It still has an extra space in it. Who is this fascist anyway?

                    "Quality Software since 1983!"
                    http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

                    J 1 Reply Last reply
                    0
                    • J Joe Q

                      No visual studio here. It's National Instruments LabWindows CVI. I am doing that type of replace. Thanks

                      P Offline
                      P Offline
                      phils6280
                      wrote on last edited by
                      #39

                      NI CVI has extensive capability to do what you want, including regular expressions and multiple files. Open any source file, then select Edit/Replace. In that window you can enter what you want to change, how you want to change it, what files you want to act on, etc. Hope this allows you more time with your family. Phil Shell

                      J 1 Reply Last reply
                      0
                      • R Ravi Bhavnani

                        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 Offline
                        J Offline
                        Joe Q
                        wrote on last edited by
                        #40

                        I think it might be that it's something he can control where there are many, many things on there he has no control over.

                        R 1 Reply Last reply
                        0
                        • D Daniel Grunwald

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

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

                          Daniel Grunwald wrote:

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

                          That be a better year for a todo list. The project is only supposed to be 1 more year but it could strech out.

                          1 Reply Last reply
                          0
                          • J Jeremy Falcon

                            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 Offline
                            J Offline
                            Joe Q
                            wrote on last edited by
                            #42

                            I think it's one thing he has control over while there are many things he has no control over. But then again it easliy could be micro management hell. I'll have to wait and see.

                            1 Reply Last reply
                            0
                            • A alex barylski

                              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 Offline
                              J Offline
                              Joe Q
                              wrote on last edited by
                              #43

                              Hockey wrote:

                              Find a beautifier that does that for you?

                              Do you have a suggestion? I've tried one on another (I forget the name)project. It was VERY flexable but hard to get the right set of attributes to make the code like the style guide (I never got it perfect)

                              1 Reply Last reply
                              0
                              • A Anna Jayne Metcalfe

                                You're using CVI? You have my sympathy. :rose: I used to work on some of Racal Instruments instrumentation runtime systems and virtual instrument drivers, BTW. It was interesting stuff, and far more capable in its field than anything CVI was ever capable of.

                                Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

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

                                Wow! most people have never heard of CVI! We're using a Racal switch and using there drivers. Most instruments have IVI drivers which are very complex and at times confusing.

                                J 1 Reply Last reply
                                0
                                • J Jasmine2501

                                  You spend as much time on it as the boss want you to, then you document what you were working on. When he asks you why you aren't writing any new code, you bring out your documents and say, "Here, that's why." A good way to fix the style of lots of code is to use Visual Studio's auto-format feature. You may have to play with the setting a bit to get the exact style you want, but after that, you can open all your files, hit Ctrl-K-D on each one, and yer done. Really, you shouldn't be spending any time on that kind of crap. Old code should be 'grandfathered in' when a new style rule comes out, and should not be fixed until it's re-written. Also, the change you highlighted is totally stupid, and still wrong. It still has an extra space in it. Who is this fascist anyway?

                                  "Quality Software since 1983!"
                                  http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

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

                                  Jasmine2501 wrote:

                                  You spend as much time on it as the boss want you to, then you document what you were working on. When he asks you why you aren't writing any new code, you bring out your documents and say, "Here, that's why."

                                  I've tried things like that before and I usually just get dinged for not completing everything. Around here, it seems many managers have no concept of time. I tell them I have 2 tasks and enough time to do one and ask which ONE should I do? The answer around here is BOTH. When I try to explain about the concept of linear time that doesn't expand or contract (except in meetings) they just get upset with me.

                                  J 1 Reply Last reply
                                  0
                                  • P phils6280

                                    NI CVI has extensive capability to do what you want, including regular expressions and multiple files. Open any source file, then select Edit/Replace. In that window you can enter what you want to change, how you want to change it, what files you want to act on, etc. Hope this allows you more time with your family. Phil Shell

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

                                    I've done some of it with the replace but I didn't know it could do regular expressions. The parts I done I've had to look at each change becasue some on if's and while's I didn't want to happen.

                                    1 Reply Last reply
                                    0
                                    • J Joe Q

                                      I think it might be that it's something he can control where there are many, many things on there he has no control over.

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

                                      Seems about right. He wouldn't last in the real world... /ravi

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

                                      1 Reply Last reply
                                      0
                                      • J Joe Q

                                        Jasmine2501 wrote:

                                        You spend as much time on it as the boss want you to, then you document what you were working on. When he asks you why you aren't writing any new code, you bring out your documents and say, "Here, that's why."

                                        I've tried things like that before and I usually just get dinged for not completing everything. Around here, it seems many managers have no concept of time. I tell them I have 2 tasks and enough time to do one and ask which ONE should I do? The answer around here is BOTH. When I try to explain about the concept of linear time that doesn't expand or contract (except in meetings) they just get upset with me.

                                        J Offline
                                        J Offline
                                        Jasmine2501
                                        wrote on last edited by
                                        #48

                                        Sounds like you need to make sure your resume is up to date. Programmers are in demand right now, you don't have to put up with that treatment.

                                        "Quality Software since 1983!"
                                        http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

                                        1 Reply Last reply
                                        0
                                        • J Joe Q

                                          Wow! most people have never heard of CVI! We're using a Racal switch and using there drivers. Most instruments have IVI drivers which are very complex and at times confusing.

                                          J Offline
                                          J Offline
                                          jiri
                                          wrote on last edited by
                                          #49

                                          I'm using CVI for 7 years too (we're developing instrument drivers, also for LabVIEW). BTW goto is used as replacement of try...catch statementm which you don't have in ANSI C. Every IVI instrument driver uses it.

                                          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