• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Code reviews

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #51
    Originally posted by Kanye View Post
    What a depressing thread. You should only do exactly as you are instructed and show no thought or initiative at all?

    My view was always that you should leave code better than you found it. If you can make simple refactorings such as pulling methods to improve readability, reuse, testablity then its basically your responsibility as a professional to do that.
    Simple refactorings are fine. Totally refactoring the whole class is not. It's not about lack of initiative, it's about knowing what is worth doing, and communication. If you are assigned to make a small fix and the reviewer is confronted with hundreds of lines of changed code, they have to spend extra time checking you didn't screw something up.

    If you get an understanding that you will do this kind of thing as part of your contract then it's fine, but blundering in without even warning someone is the trademark of a wet behind the ears over-enthusiastic graduate.
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    Comment


      #52
      Originally posted by suityou01 View Post
      Lot of decorating references being bandied about. Not sure folks get what refactoring is. For the absence of doubt, refactoring into x classes is the DIY equivalent of gutting the interior, putting in a new stair case, wiring, plumbing, and the testing and commissioning would be the decorating part in my mind.

      HTH
      You clearly don't understand the context the references were made in, which is no surprise really.

      Comment


        #53
        Originally posted by suityou01 View Post
        Lot of decorating references being bandied about. Not sure folks get what refactoring is. For the absence of doubt, refactoring into x classes is the DIY equivalent of gutting the interior, putting in a new stair case, wiring, plumbing, and the testing and commissioning would be the decorating part in my mind.

        HTH
        You can not decorate references as by definition they are immutable.
        "He's actually ripped" - Jared Padalecki

        https://youtu.be/l-PUnsCL590?list=PL...dNeCyi9a&t=615

        Comment


          #54
          Originally posted by minestrone View Post
          You clearly don't understand the context the references were made in, which is no surprise really.
          Hackers need stay out of this old son. Leave this to the grown ups there's a good lad.
          Knock first as I might be balancing my chakras.

          Comment


            #55
            Originally posted by MyUserName View Post
            You can not decorate references as by definition they are immutable.
            If you hard code your dependencies, yes. Have a look at dependency injection.

            HTH
            Knock first as I might be balancing my chakras.

            Comment


              #56
              If you had done this on one of my projects

              you would have been terminated immediately and escorted from the building, and sued for fecking up working code that only needed a 1 line fix, have you any idea the TESTING requirements you would have fecked up ???

              Schoolboy error

              Comment


                #57
                Originally posted by suityou01 View Post
                Hackers need stay out of this old son. Leave this to the grown ups there's a good lad.
                Suity, we seen you on here asking for help and struggling for a week trying to get a connection to an oracle database.

                Your technical skills have been demonstrated to be sub bob.

                Comment


                  #58
                  Originally posted by suityou01 View Post
                  If you hard code your dependencies, yes. Have a look at dependency injection.

                  HTH
                  No thanks, too difficult for me. I will stick to abstract C++ jokes.
                  "He's actually ripped" - Jared Padalecki

                  https://youtu.be/l-PUnsCL590?list=PL...dNeCyi9a&t=615

                  Comment


                    #59
                    Originally posted by minestrone View Post
                    Suity, we seen you on here asking for help and struggling for a week trying to get a connection to an oracle database.

                    Your technical skills have been demonstrated to be sub bob.
                    When? Times, places, posts. J'accuse.
                    Knock first as I might be balancing my chakras.

                    Comment


                      #60
                      Originally posted by MyUserName View Post
                      No thanks, too difficult for me. I will stick to abstract C++ jokes.
                      DI is equally applicable (and probably first implemented in) C++.
                      Knock first as I might be balancing my chakras.

                      Comment

                      Working...
                      X