Code Monkey home page Code Monkey logo

Comments (4)

ssorallen avatar ssorallen commented on May 5, 2024

Even though you might not need to support IE8, I still see this as good practice. "default" is a case that might look nice, but if you disagree with this entirely then you could end up with:

var superman = {
  var: { clark: 'kent' },
  function: true,
  for: 'yup',
  if: 'then',
  else: false
};

The syntax works, but seeing that in code can be confusing.

from javascript.

 avatar commented on May 5, 2024

Well I don't agree, it doesn't look confusing to me. But anyway this is not
my point actually. My real point is it is important not to sacrifice
code quality because of broken software, but to fix the software. Of course
we can have different opinion on what "code quality" is, but this is not my
point, my point is only about renaming something that you would normally
name otherwise because of IE8.

On Fri, Nov 8, 2013 at 3:57 AM, Ross Allen [email protected] wrote:

Even though you might not need to support IE8, I still see this as good
practice. "default" is a case that might look nice, but if you disagree
with this entirely then you could end up with:

var superman = {
var: { clark: 'kent' },
function: true,
for: 'yup',
if: 'then',
else: false};

The syntax works, but seeing that in code can be confusing.


Reply to this email directly or view it on GitHubhttps://github.com//issues/98#issuecomment-28025798
.

from javascript.

hshoff avatar hshoff commented on May 5, 2024

We still have to support IE8 at Airbnb so it's our best practice. When we drop support for IE8 we will be sure to update the guide.

from javascript.

serbanghita avatar serbanghita commented on May 5, 2024

This is important for the guide, and I believe it makes sense. Of course if you address a different context (like top smartphones, browsers) might not matter.

Regargind IE8: the browser still matters if you provide a critical worldwide product to your customers. Can't tell half China to upgrade and lose money.

from javascript.

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.