• 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

    Originally posted by minestrone View Post
    "favour composition over inheritance" but It is better that people are told just not to do it, it usually ends up a mess and adds only trouble. I would say most modern frameworks have all but stopped using inheritance as a means of integration.
    Being told not to do it is just plain daft, when nearly every class in the Java libraries inherits from something (if it is Java we're talking). Probably "if you're not sure, composite" is better advice.
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    Comment


      How about 'use inheritance when it is appropriate and use composition when it is appropriate'?
      "He's actually ripped" - Jared Padalecki

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

      Comment


        Originally posted by MyUserName View Post
        How about 'use inheritance when it is appropriate and use composition when it is appropriate'?
        but that means you have to think. We want a simple answer which doesn't require thinking that we can take the mickey out of...
        merely at clientco for the entertainment

        Comment


          Originally posted by eek View Post
          but that means you have to think. We want a simple answer which doesn't require thinking that we can take the mickey out of...
          Sorry, wrong forum.

          I meant that you should always inherit from a bass class and also add the base class as a member or you are clearly a cretin who should not be allowed near a keyboard - and NO! I don't care if you language does not support inheritance.
          "He's actually ripped" - Jared Padalecki

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

          Comment


            As we're on the topic of tulipy code and maintenance, etc - here's a gem of a javadoc for a class I just came across:

            /**
            * Retrieves disputed payments. Inaccurately named, since it is both
            * used by the ixxxxxxxx and the xxxxxxxxx!
            *
            * @author xxxxxxxx
            */


            Why don't people fix mistakes when they see them?!

            Comment


              Originally posted by SpontaneousOrder View Post
              As we're on the topic of tulipy code and maintenance, etc - here's a gem of a javadoc for a class I just came across:

              /**
              * Retrieves disputed payments. Inaccurately named, since it is both
              * used by the ixxxxxxxx and the xxxxxxxxx!
              *
              * @author xxxxxxxx
              */


              Why don't people fix mistakes when they see them?!
              I would fix more but beating people to death is illegal
              Last edited by MyUserName; 7 January 2014, 14:10. Reason: Saw a mistake and fixed it
              "He's actually ripped" - Jared Padalecki

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

              Comment


                Originally posted by SpontaneousOrder View Post
                ...

                Why don't people fix mistakes when they see them?!
                Because they then get crucified by the forum regulars.
                Down with racism. Long live miscegenation!

                Comment

                Working...
                X