Git Product home page Git Product logo

Comments (10)

andrewplummer avatar andrewplummer commented on September 2, 2024

I have to admit that this is a feature I am interested in and have wanted in the past. After having a quick look, however, the bottom line is that Sugar would have to abandon IE support < IE8 ... The support currently goes back to IE6 and I'm not sure if I'm ready to give this up yet...

It's a very interesting idea though... let me think about it some more...

from sugar.

raila avatar raila commented on September 2, 2024

Maybe, add this features as a plugin.

I´m personally working on a webapp that won´t support IE at all. Since it has a strong focus on mobile, but will be used on desktops too.

Since we can now use sugar.js in node.js, we don´t have to care about IE, atleast on the server side, too.

from sugar.

medikoo avatar medikoo commented on September 2, 2024

This could be easily accomplished with getters/setters isn't it (when we don't count IE support) ?

from sugar.

andrewplummer avatar andrewplummer commented on September 2, 2024

That's a good point (about node.js) ... I agree that it's a feature that definitely has potential... let me think about this a bit more...

from sugar.

Baggz avatar Baggz commented on September 2, 2024

+1

from sugar.

jasonkuhrt avatar jasonkuhrt commented on September 2, 2024

It would be a shame if IE held back sugar.js. Perhaps there needs to be a version of sugar.js that is explicitly incompatible with IE<9 thus letting sugar.js move toward the future with node.js on the backend and modern browsers on the frontend.

That forward-looking space is more used every day around the world and provides for more interesting features like this one, not to mention that Sugar.js becomes more fun to work on/contribute to for us devs.

I'm not doubting there is an audience that needs IE<9 support but they do not represent the trend, future majority, or creators of cutting-edge programs (be it games, tools, social networks, etc.). I don't think supporting IE<8 is a sustainable path for a forward-looking library/framework IMO. In 3 months it will be 2012. Cut the cord with the past.

from sugar.

andrewplummer avatar andrewplummer commented on September 2, 2024

I agree with all your statements and I agree that every day we're heading more toward common standards and that's great. There are 2 big reasons for this, though, one is IE9 and the other is the node environment.

The problem though is think about it from the (client-side) developer's perspective. If you're trying to support IE7/8 then any feature that can't be used is interesting, it's nice, but in the end it's worthless. I agree that it's not the TREND to support IE7/8... naturally the trend is to move away from them and thank god for that. But the trend begins with people doing experimental stuff in an environment that has the leaway to allow it. Sugar is going for something a bit more stable than that. In most cases these two concepts don't have to conflict, but they do in this case, and it would be far too damaging for Sugar to have to say something like "may not work in IE7/8 in all cases". That being said, the server-side dimension adds a different light on the issue.

I think that we're nearing a tipping point and we're almost there when we can abandon IE7/8 entirely, but we're not quite there yet. I'm still considering this idea but I'm not sure how I'd want it to be presented...

Anyway I haven't abandoned the idea or anything but still unsure about adding it....

from sugar.

jasonkuhrt avatar jasonkuhrt commented on September 2, 2024

Perhaps the right time to stop 100% support for IE<9 is when IE 10 comes out? Or 11?

Edit:

But... I realize the issue might also relate to the fact that IE8 is as far as the browser goes for XP users.

from sugar.

andrewplummer avatar andrewplummer commented on September 2, 2024

@jasonkuhrt That's part of the reason... yes timing-wise it might be a good time and all that, but for most people who are seriously supporting IE7/8 in the first place, they will keep on supporting it as long as there is an incentive (ie. money) in them for doing so, so it's never going to be a 100% ready in that sense.

There's a number of things to think about here so I'll keep both sides in mind. I'm leaning toward doing it but we'll see.

from sugar.

andrewplummer avatar andrewplummer commented on September 2, 2024

OK! This feature is now in v1.0 of Sugar. The method is Object.watch, like the non-standard Mozilla method of the same name (re: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/watch). Unlike other Sugar methods, watch WILL overwrite the native method, as they have different implementations and intentions (despite having identical syntax). It is unfortunate to have to lose < IE8 support in this one method only, but I think the benefits justify it here.

from sugar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.