• 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!

I think I am going to cry

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

    #71
    Better example (perhaps)...

    Code:
    class ThingyFlavouredClass implements CoparableWidgetSpawner {
    
        //some code....  
        
        @Override
        public ComparableWidget SpawnAComparableWidget() {
            return new ComparableWidget() {
                @Override
                public int compareTo(Object o) {
                    if(!o instanceof ComparableWidget) return -1;
                    ComparableWidget cw = (ComparableWidget)o;
                    if cw.thingy == this.thingy return 0;
                    else return cw.thingy < this.thingy ? 1 : -1;
                }
            };
        }
        
       //some code....   
    }

    You'd rather implement an Observer pattern than do this?!
    Last edited by SpontaneousOrder; 6 June 2014, 15:42.

    Comment


      #72
      Don't confuse the issue. No mention of buttons or events in your example. That's changing the question half way through to support an argument you are trying to make.

      Some would call that faltering.


      Sent from my iMinion using Tapatalk
      Knock first as I might be balancing my chakras.

      Comment


        #73
        Originally posted by suityou01 View Post
        Don't confuse the issue. No mention of buttons or events in your example. That's changing the question half way through to support an argument you are trying to make.

        Some would call that faltering.


        Sent from my iMinion using Tapatalk
        Not faltering. The original question was to address:
        It has to do with features of modern languages that I don't like.
        Although I do see that before that you said anonymous functions are a good idea in principle. But then you said you HATE lambdas.

        Comment


          #74
          More faltering. I did explain why and you are now quoting me out of context. Do you pull hair when you bitch fight to?


          Sent from my iMinion using Tapatalk
          Knock first as I might be balancing my chakras.

          Comment


            #75
            Pwnd him?


            Sent from my iMinion using Tapatalk
            Knock first as I might be balancing my chakras.

            Comment


              #76
              Originally posted by suityou01 View Post
              Pwnd him?


              Sent from my iMinion using Tapatalk
              I bet you race people from the traffic lights to bathe in the glory of victory, while they casually take a left into the ASDA carpark blissfully unaware they just lost a 'race' ?

              Comment


                #77
                Originally posted by suityou01 View Post
                Pwnd him?


                Sent from my iMinion using Tapatalk
                Suity please stop digging...

                Comment


                  #78
                  Yay Pwnd


                  Sent from my iMinion using Tapatalk
                  Knock first as I might be balancing my chakras.

                  Comment


                    #79
                    Run along Kal. Go on, off you pop.


                    Sent from my iMinion using Tapatalk
                    Knock first as I might be balancing my chakras.

                    Comment


                      #80
                      Originally posted by suityou01 View Post
                      Run along Kal. Go on, off you pop.


                      Sent from my iMinion using Tapatalk
                      Shout louder, can't hear you from deep inside that hole

                      Comment

                      Working...
                      X