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. Development today

Development today

Scheduled Pinned Locked Moved The Lounge
13 Posts 11 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.
  • D Offline
    D Offline
    dbstudio
    wrote on last edited by
    #1

    👋 all Do you find yourself in a PR battle where you discuss if you should use const or const ref, or otherwise discuss why you use using to reduce the name of certain types, I can get so frustrated sometimes when I develop a feature or new code, I have it tested and all work and then you have this colleague who wants everything to be how he or she is seeing it and in the end it doesn’t matter as you spent more time discussing or changing it for their joy, code wise it would end up as the same code for the compiler.

    1 honey the codewitchH G realJSOPR M 5 Replies Last reply
    0
    • D dbstudio

      👋 all Do you find yourself in a PR battle where you discuss if you should use const or const ref, or otherwise discuss why you use using to reduce the name of certain types, I can get so frustrated sometimes when I develop a feature or new code, I have it tested and all work and then you have this colleague who wants everything to be how he or she is seeing it and in the end it doesn’t matter as you spent more time discussing or changing it for their joy, code wise it would end up as the same code for the compiler.

      1 Offline
      1 Offline
      11917640 Member
      wrote on last edited by
      #2

      dbstudio wrote:

      the same code for the compiler

      The best possible code review result. No reason to worry.

      1 Reply Last reply
      0
      • D dbstudio

        👋 all Do you find yourself in a PR battle where you discuss if you should use const or const ref, or otherwise discuss why you use using to reduce the name of certain types, I can get so frustrated sometimes when I develop a feature or new code, I have it tested and all work and then you have this colleague who wants everything to be how he or she is seeing it and in the end it doesn’t matter as you spent more time discussing or changing it for their joy, code wise it would end up as the same code for the compiler.

        honey the codewitchH Offline
        honey the codewitchH Offline
        honey the codewitch
        wrote on last edited by
        #3

        That's one of the reasons I don't miss working on dev teams.

        Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

        J 1 Reply Last reply
        0
        • D dbstudio

          👋 all Do you find yourself in a PR battle where you discuss if you should use const or const ref, or otherwise discuss why you use using to reduce the name of certain types, I can get so frustrated sometimes when I develop a feature or new code, I have it tested and all work and then you have this colleague who wants everything to be how he or she is seeing it and in the end it doesn’t matter as you spent more time discussing or changing it for their joy, code wise it would end up as the same code for the compiler.

          G Offline
          G Offline
          GKP1992
          wrote on last edited by
          #4

          dbstudio wrote:

          or otherwise discuss why you use using to reduce the name of certain types

          What I can say for sure is a concise code is much more readable and that's why if there are several references made to get to a certain type then it's good to use usings. If I had a dev who wasn't convinced with this reason alone, I'd do it myself.

          P J 2 Replies Last reply
          0
          • D dbstudio

            👋 all Do you find yourself in a PR battle where you discuss if you should use const or const ref, or otherwise discuss why you use using to reduce the name of certain types, I can get so frustrated sometimes when I develop a feature or new code, I have it tested and all work and then you have this colleague who wants everything to be how he or she is seeing it and in the end it doesn’t matter as you spent more time discussing or changing it for their joy, code wise it would end up as the same code for the compiler.

            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #5

            It's not about what it looks like to the compiler - it's about what it looks like to the *team*. The cure is to establish reasonably rigid coding standards, and make sure everyone adheres to them.

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

            D J 2 Replies Last reply
            0
            • realJSOPR realJSOP

              It's not about what it looks like to the compiler - it's about what it looks like to the *team*. The cure is to establish reasonably rigid coding standards, and make sure everyone adheres to them.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              D Offline
              D Offline
              dbstudio
              wrote on last edited by
              #6

              I strongly believe that it should be less rigid and more flexible and who don’t want to have a const signature if you are not changing the value, I feel the it’s more due to the fact of junior developers fresh out of school believing we are building a kernel or cathedral if you wish.

              M 1 Reply Last reply
              0
              • G GKP1992

                dbstudio wrote:

                or otherwise discuss why you use using to reduce the name of certain types

                What I can say for sure is a concise code is much more readable and that's why if there are several references made to get to a certain type then it's good to use usings. If I had a dev who wasn't convinced with this reason alone, I'd do it myself.

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                GKP1992 wrote:

                concise code is much more readable

                My code may not be concise in the same way yours is.

                1 Reply Last reply
                0
                • D dbstudio

                  👋 all Do you find yourself in a PR battle where you discuss if you should use const or const ref, or otherwise discuss why you use using to reduce the name of certain types, I can get so frustrated sometimes when I develop a feature or new code, I have it tested and all work and then you have this colleague who wants everything to be how he or she is seeing it and in the end it doesn’t matter as you spent more time discussing or changing it for their joy, code wise it would end up as the same code for the compiler.

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

                  Either you have coding guidelines or you do not. We have guidelines, they dates from the 80s and 90s (seriously). The mantra has been don't change anything. (even crazy bad tab/spaces everywhere) But... When I go in a file to do work in it, I clean it up and bring it to more modern best practices as much as the underlying code allows me to do. I wish I could go deeper, but time and money are not infinite.

                  CI/CD = Continuous Impediment/Continuous Despair

                  M 1 Reply Last reply
                  0
                  • D dbstudio

                    I strongly believe that it should be less rigid and more flexible and who don’t want to have a const signature if you are not changing the value, I feel the it’s more due to the fact of junior developers fresh out of school believing we are building a kernel or cathedral if you wish.

                    M Offline
                    M Offline
                    Mycroft Holmes
                    wrote on last edited by
                    #9

                    Nope the standards should be quite rigid, the senior developer setting the standards should be open to new ideas and concepts with a willingness to implement them. Junior and new hires (and everyone else) should be encouraged to put forward suggestions.

                    Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

                    1 Reply Last reply
                    0
                    • honey the codewitchH honey the codewitch

                      That's one of the reasons I don't miss working on dev teams.

                      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                      J Offline
                      J Offline
                      jmaida
                      wrote on last edited by
                      #10

                      "Too many cooks spoil the broth!" Sometimes, this is the case with some projects.

                      "A little time, a little trouble, your better day" Badfinger

                      1 Reply Last reply
                      0
                      • M Maximilien

                        Either you have coding guidelines or you do not. We have guidelines, they dates from the 80s and 90s (seriously). The mantra has been don't change anything. (even crazy bad tab/spaces everywhere) But... When I go in a file to do work in it, I clean it up and bring it to more modern best practices as much as the underlying code allows me to do. I wish I could go deeper, but time and money are not infinite.

                        CI/CD = Continuous Impediment/Continuous Despair

                        M Offline
                        M Offline
                        Matt Bond
                        wrote on last edited by
                        #11

                        I've been on the same project for 24 years now. Everyone else has been less than 3 years. I tell them what my coding standard is, and they follow it. It's really very simple: 1) Pattern match what already exists in the code you are editing. 2) In SQL, keywords are all caps and all statements end in a semi-colon. 3) Use the built-in formatters the IDE provide prior to every check-in. 4) Write code as if you have to maintain it for 24 years (correct spelling of variables/classes, no one-offs, use best practices and architecture, etc.). 5) Log state and location frequently. 6) Remove useless comments/only add comments that provide value. The new devs are the worse with the last one. For example, they will add a section (C# code) to method GetUserPermissions() that has the text "Gets the user's permissions.". Why waste their time writing that useless text and everyone else's time reading it? If I see useless comments in a code review, I most definitely tell them to delete it.

                        Bond Keep all things as simple as possible, but no simpler. -said someone, somewhere

                        1 Reply Last reply
                        0
                        • G GKP1992

                          dbstudio wrote:

                          or otherwise discuss why you use using to reduce the name of certain types

                          What I can say for sure is a concise code is much more readable and that's why if there are several references made to get to a certain type then it's good to use usings. If I had a dev who wasn't convinced with this reason alone, I'd do it myself.

                          J Offline
                          J Offline
                          jschell
                          wrote on last edited by
                          #12

                          GKP1992 wrote:

                          What I can say for sure is a concise code is much more readable

                          Obviously not true. The C Users Journal used to do contests for single line programs with the shortest solution winning. The were concise. And very difficult to read.

                          1 Reply Last reply
                          0
                          • realJSOPR realJSOP

                            It's not about what it looks like to the compiler - it's about what it looks like to the *team*. The cure is to establish reasonably rigid coding standards, and make sure everyone adheres to them.

                            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                            -----
                            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                            -----
                            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                            J Offline
                            J Offline
                            jschell
                            wrote on last edited by
                            #13

                            #realJSOP wrote:

                            it's about what it looks like to the *team*.

                            Exactly. I write code so with the view that someone else (even if it is me) will need to understand it months or even years after I wrote it.

                            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