Comments (4)
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.
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.
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.
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)
- [spam]
- Anonymous react components are allowed in eslint config but not a good practice HOT 2
- "semver" dep vulnerability HOT 1
- [spam]
- [spam]
- [spam]
- `import/no-unresolved` doesn't support package.json exports field HOT 1
- Style guide question: how to handle names with consecutive initialisms? HOT 2
- Deprecation of formatting rules HOT 3
- [spam]
- [spam] HOT 1
- [spam]
- [spam] HOT 1
- [spam]
- [spam]
- [spam]
- [spam]
- [spam]
- `defaultProps` is deprecated for functional components HOT 1
- [spam]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript.