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. New language standards catering to abandoned libraries

New language standards catering to abandoned libraries

Scheduled Pinned Locked Moved The Lounge
13 Posts 11 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.
  • C Chris Maunder

    I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

    ...

    That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

    cheers Chris Maunder

    E Offline
    E Offline
    Erick Mattew
    wrote on last edited by
    #4

    I don't think the web will be better with badly molded javascript language. No versioning, js has to be redesigned from ground up. That's final!

    1 Reply Last reply
    0
    • C Chris Maunder

      I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

      ...

      That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

      cheers Chris Maunder

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #5

      Chris Maunder wrote:

      MooTools defines its own contains so changing this method's implementation would break 6.5% of the web.

      So, our implementations are now dictated by the errors of others? :) Anything built on top of JavaScript will still be JavaScript.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      1 Reply Last reply
      0
      • C Chris Maunder

        I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

        ...

        That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

        cheers Chris Maunder

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #6

        Off-topic. Hey, we are still waiting for the IOT competition announcement. Thought it was going to be today?

        Regards, Nish


        Website: www.voidnish.com Blog: voidnish.wordpress.com

        C 1 Reply Last reply
        0
        • C Chris Maunder

          Nish Nishant wrote:

          Hey, we are still waiting for the IOT competition announcement

          Give it about another half hour ;)

          cheers Chris Maunder

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #7

          Thanks :-)

          Regards, Nish


          Website: www.voidnish.com Blog: voidnish.wordpress.com

          1 Reply Last reply
          0
          • N Nish Nishant

            Off-topic. Hey, we are still waiting for the IOT competition announcement. Thought it was going to be today?

            Regards, Nish


            Website: www.voidnish.com Blog: voidnish.wordpress.com

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #8

            Nish Nishant wrote:

            Hey, we are still waiting for the IOT competition announcement

            Give it about another half hour ;)

            cheers Chris Maunder

            N 1 Reply Last reply
            0
            • C Chris Maunder

              I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

              ...

              That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

              cheers Chris Maunder

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #9

              Apologies for the meta-observation: The one that pisses me off is, every standard defines a method for extending the standard to cover new situations. Over time, people realize that the extension method doesn't cover all the cases, so they define a new standard, with a new extension method. The process then recurses into its own navel.

              Software Zen: delete this;

              1 Reply Last reply
              0
              • C Chris Maunder

                I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

                ...

                That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

                cheers Chris Maunder

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

                Perhaps they should think of something that actually works, i.e. not HTML/CSS and JavaScript :~

                Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                Regards, Sander

                1 Reply Last reply
                0
                • C Chris Maunder

                  I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

                  ...

                  That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

                  cheers Chris Maunder

                  R Offline
                  R Offline
                  Rob Grainger
                  wrote on last edited by
                  #11

                  I absolutely concur, semantic versioning (ala Rust) for language versions. Breaking changes necessitate a new language version. Minor, non-breaking changes are minor versions. Bug fixes and the like are revisions. Bought to you by Code Project 1.0.1

                  "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                  1 Reply Last reply
                  0
                  • C Chris Maunder

                    I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

                    ...

                    That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

                    cheers Chris Maunder

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #12

                    Chris Maunder wrote:

                    changing this method's implementation would break 6.5% of the web.

                    I was bored enough yesterday to drill down to the analytics dashboard where that 6.5% number came from. 6.5% was from when the original objections were raised a few years back. It's down to about 2% now. Journalism at its finest. :rolleyes:

                    Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      I was reading the article Where The Web Is Going In 2016[^] and it discusses how the prototype.contains standard method was renamed .includes in order to not break a bunch of sites using the old MooTools library. MooTools defines its own contains so changing this method's implementation would break 6.5% of the web. Evidently. To me this is a bad, bad case of painting yourself into a corner. If you're going to keep not defining new language constructs because a library de jour once used it then you're going to run out of names. Wouldn't it be more sensible to start by defining a pattern by which new language versions could be introduced into the web without breaking old sites? I dunno - something like what we actually already have:

                      ...

                      That way if you want to use new features you explicitly use them. If you don't name your poison then you get the default. It won't solve version issues, but it would allow a path forward and a reasonable path to deprecation.

                      cheers Chris Maunder

                      K Offline
                      K Offline
                      Kiriander
                      wrote on last edited by
                      #13

                      There's a great read about idealism vs. pragmatism: http://www.joelonsoftware.com/items/2008/03/17.html

                      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