• 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

    I think I am going to cry

    Just reading about Java 8. They have added a new mechanism to interfaces so that you can supply a default implementation of a method.

    It seems this is purely to allow them to provide some random default implementations for extensions to existing interfaces. Surely extending the interface via a sub interface or an abstract subclass would have been the right thing to do?

    It just seems like a horrible bodge to me.
    While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

    #2
    Originally posted by doodab View Post
    Just reading about Java 8. They have added a new mechanism to interfaces so that you can supply a default implementation of a method.

    It seems this is purely to allow them to provide some random default implementations for extensions to existing interfaces. Surely extending the interface via a sub interface or an abstract subclass would have been the right thing to do?

    It just seems like a horrible bodge to me.
    Its for backwards compatibility which the Java designers have been obsessed with since the languages inception (that why we have the mess that is Generics and the hassle that type erasure causes). Just for once I think they should have followed the .NET lead and drawn a line in sand with version 8!

    Comment


      #3
      I drew the line at anonymous functions
      Knock first as I might be balancing my chakras.

      Comment


        #4
        You don't have to use it just because it's there
        Socialism is inseparably interwoven with totalitarianism and the abject worship of the state.

        No Socialist Government conducting the entire life and industry of the country could afford to allow free, sharp, or violently-worded expressions of public discontent.

        Comment


          #5
          Originally posted by MicrosoftBob View Post
          You don't have to use it just because it's there
          There is still a lot to like in version 8, lambdas and the new Api's (date, streams), for me this makes Java 8 the new Scala

          Comment


            #6
            Originally posted by kal View Post
            Its for backwards compatibility which the Java designers have been obsessed with since the languages inception (that why we have the mess that is Generics and the hassle that type erasure causes). Just for once I think they should have followed the .NET lead and drawn a line in sand with version 8!
            They failed with version 1.1 as that broke a lot of code out there!
            Socialism is inseparably interwoven with totalitarianism and the abject worship of the state.

            No Socialist Government conducting the entire life and industry of the country could afford to allow free, sharp, or violently-worded expressions of public discontent.

            Comment


              #7
              Originally posted by MicrosoftBob View Post
              You don't have to use it just because it's there
              No, but like really strong aftershave, I will have to put up with other people using it.
              While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

              Comment


                #8
                Maybe they are trying to persuade more people to move to scala or something.
                While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

                Comment


                  #9
                  Originally posted by kal View Post
                  There is still a lot to like in version 8, lambdas and the new Api's (date, streams), for me this makes Java 8 the new Scala
                  Oh poor Doodab
                  Knock first as I might be balancing my chakras.

                  Comment


                    #10
                    Originally posted by doodab View Post
                    Maybe they are trying to persuade more people to move to scala or something.
                    Never really got on with Scala, seems to want to be all things to all men, they've made the language so flexible that it doesn't really have an identity. I imagine the '50 ways to do the same thing' will result in a world of maintenance pain on large projects.

                    Comment

                    Working...
                    X