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. This has probably been on here before, but if so, enjoy again

This has probably been on here before, but if so, enjoy again

Scheduled Pinned Locked Moved The Lounge
c++comoopquestion
11 Posts 7 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
    David ONeil
    wrote on last edited by
    #1

    [how we write/review code in big tech companies](https://www.youtube.com/watch?v=rR4n-0KYeKQ)

    The Science of King David's Court | Object Oriented Programming with C++

    Sander RosselS D P 3 Replies Last reply
    0
    • D David ONeil

      [how we write/review code in big tech companies](https://www.youtube.com/watch?v=rR4n-0KYeKQ)

      The Science of King David's Court | Object Oriented Programming with C++

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #2

      "I have no idea" seems to sum up about everyone I've ever worked with :sigh: One time, I had to fix this production issue. People were standing still and the company was losing money. I wrote a quick fix from home, asked someone to accept the pull request ASAP and drove to the office (a good one-hour drive). It was literally some literal string that needed to be changed, a one-word fix, so I was sure it was correct, the pull request would be accepted and everything would deploy to production automatically. When I arrived at the office, the reviewer was waiting for me. I had to make the literal string into a constant or he couldn't accept it X| And while I was on it, I had to do this for every literal string in this class X| X| X| The code made an API call and we simply had to pass some constant codes to the API, but instead of "SomeCode" this developer wanted to see SomeCode. I asked him if he was out of his :elephant:ing mind and that people were standing still over this. He wouldn't budge and ultimately I changed one or two string literals into consts just to move it along X|

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      D B 2 Replies Last reply
      0
      • Sander RosselS Sander Rossel

        "I have no idea" seems to sum up about everyone I've ever worked with :sigh: One time, I had to fix this production issue. People were standing still and the company was losing money. I wrote a quick fix from home, asked someone to accept the pull request ASAP and drove to the office (a good one-hour drive). It was literally some literal string that needed to be changed, a one-word fix, so I was sure it was correct, the pull request would be accepted and everything would deploy to production automatically. When I arrived at the office, the reviewer was waiting for me. I had to make the literal string into a constant or he couldn't accept it X| And while I was on it, I had to do this for every literal string in this class X| X| X| The code made an API call and we simply had to pass some constant codes to the API, but instead of "SomeCode" this developer wanted to see SomeCode. I asked him if he was out of his :elephant:ing mind and that people were standing still over this. He wouldn't budge and ultimately I changed one or two string literals into consts just to move it along X|

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        D Offline
        D Offline
        dandy72
        wrote on last edited by
        #3

        Not to defend the guy, but I suspect it all boils down to technical debt. He just didn't want to have to revisit this. He's probably got some horror stories to tell.

        Sander RosselS 1 Reply Last reply
        0
        • D David ONeil

          [how we write/review code in big tech companies](https://www.youtube.com/watch?v=rR4n-0KYeKQ)

          The Science of King David's Court | Object Oriented Programming with C++

          D Offline
          D Offline
          dandy72
          wrote on last edited by
          #4

          The "senior" developer doesn't seem to be much older than the "junior" one. Not surprised they have the same reaction. Agism. It works both ways.

          G 1 Reply Last reply
          0
          • D dandy72

            The "senior" developer doesn't seem to be much older than the "junior" one. Not surprised they have the same reaction. Agism. It works both ways.

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

            In better workplaces, the terms senior and junior reflect domain experience, not chronological age nor the amount of time since you got your education.

            Software Zen: delete this;

            Greg UtasG 1 Reply Last reply
            0
            • G Gary R Wheeler

              In better workplaces, the terms senior and junior reflect domain experience, not chronological age nor the amount of time since you got your education.

              Software Zen: delete this;

              Greg UtasG Offline
              Greg UtasG Offline
              Greg Utas
              wrote on last edited by
              #6

              Only better workplaces? If it wasn't like this, I would consider it a huge red flag.

              Robust Services Core | Software Techniques for Lemmings | Articles
              The fox knows many things, but the hedgehog knows one big thing.

              <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
              <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

              G 1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                "I have no idea" seems to sum up about everyone I've ever worked with :sigh: One time, I had to fix this production issue. People were standing still and the company was losing money. I wrote a quick fix from home, asked someone to accept the pull request ASAP and drove to the office (a good one-hour drive). It was literally some literal string that needed to be changed, a one-word fix, so I was sure it was correct, the pull request would be accepted and everything would deploy to production automatically. When I arrived at the office, the reviewer was waiting for me. I had to make the literal string into a constant or he couldn't accept it X| And while I was on it, I had to do this for every literal string in this class X| X| X| The code made an API call and we simply had to pass some constant codes to the API, but instead of "SomeCode" this developer wanted to see SomeCode. I asked him if he was out of his :elephant:ing mind and that people were standing still over this. He wouldn't budge and ultimately I changed one or two string literals into consts just to move it along X|

                Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                B Offline
                B Offline
                BernardIE5317
                wrote on last edited by
                #7

                May I please request if I understand correctly Is the requested change equivalent from the one below to the second below Thank You Kindly - Cheerio

                struct cfoobar
                {
                basic_string foobar() { return "some string"; }
                };

                struct cfoobar
                {
                static const basic_string someString;
                basic_string foobar() { return someString; }
                };
                const basic_string cfoobar::someString = "some string";

                Sander RosselS 1 Reply Last reply
                0
                • D David ONeil

                  [how we write/review code in big tech companies](https://www.youtube.com/watch?v=rR4n-0KYeKQ)

                  The Science of King David's Court | Object Oriented Programming with C++

                  P Offline
                  P Offline
                  peterkmx
                  wrote on last edited by
                  #8

                  LGTM :-)

                  1 Reply Last reply
                  0
                  • D dandy72

                    Not to defend the guy, but I suspect it all boils down to technical debt. He just didn't want to have to revisit this. He's probably got some horror stories to tell.

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #9

                    I think it was ego. It boiled down to:

                    someValue = "some code"

                    vs.

                    const string SomeCode = "some code";
                    // ...
                    someValue = SomeCode

                    You literally can't have horror stories with this.

                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                    1 Reply Last reply
                    0
                    • B BernardIE5317

                      May I please request if I understand correctly Is the requested change equivalent from the one below to the second below Thank You Kindly - Cheerio

                      struct cfoobar
                      {
                      basic_string foobar() { return "some string"; }
                      };

                      struct cfoobar
                      {
                      static const basic_string someString;
                      basic_string foobar() { return someString; }
                      };
                      const basic_string cfoobar::someString = "some string";

                      Sander RosselS Offline
                      Sander RosselS Offline
                      Sander Rossel
                      wrote on last edited by
                      #10

                      It wasn't C(++?), but I think it comes to that, yes. Literally this in C#: my post above[^]

                      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                      1 Reply Last reply
                      0
                      • Greg UtasG Greg Utas

                        Only better workplaces? If it wasn't like this, I would consider it a huge red flag.

                        Robust Services Core | Software Techniques for Lemmings | Articles
                        The fox knows many things, but the hedgehog knows one big thing.

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

                        There are worse workplaces, of course ;) ...

                        Software Zen: delete this;

                        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