Coder Social home page Coder Social logo

Comments (7)

SebastianZ avatar SebastianZ commented on April 27, 2024 2

I totally agree with @wbamberg. Let's just keep an alphabetical order to be implementer neutral and make the order consistent.

Displaying the data is a totally different topic.

Sebastian

from browser-compat-data.

wbamberg avatar wbamberg commented on April 27, 2024 2

It seems like keeping the order alphabetical is the consensus decision. But let's keep this issue open until we have it enforced in the schema or some other validation method.

from browser-compat-data.

wbamberg avatar wbamberg commented on April 27, 2024 1

So first, the order of features and subfeatures in the JSON can be separated from the order of features and subfeatures in compat tables on MDN. The macros that build compat tables for MDN can (and should) reorder data to follow their policy (and other possible consumers might want to have a different policy).

But I think it makes sense to have some kind of defined order for both the raw data and the MDN compat tables.

I like alphabetizing, for two reasons really:

  • it's the simplest policy: it's a really easy rule for readers and contributors to understand. Ordering by implementation order (by Firefox, then Chrome, then...?) is more complicated to grasp.

  • choosing a browser to order by (Firefox) seems to be against a policy of browser-neutrality. Alphabetizing is neutral.

I do take your point that ordering by implementation version can help tell the story of how subfeatures were added. There are lots of features where this doesn't apply though, and in those cases, ordering by implementation version just seems arbitrary.

from browser-compat-data.

jpmedley avatar jpmedley commented on April 27, 2024

Can you provide more context please? Which macro are you talking about?

from browser-compat-data.

snoack avatar snoack commented on April 27, 2024

Assuming you are talking about rendering the data on MDN, currently sub-features appear in the order they occur in the raw data (the JSON files in this repository). As far as I'm concerned, this is fine, but I'd rather ensure the raw data to have a sane and consistent structure in the first place. Regardless of that, I think implementation order is more useful than alphabetic (or arbitrary) order, for reasons outlined above.

from browser-compat-data.

wbamberg avatar wbamberg commented on April 27, 2024

Oh, here's the corresponding issue for the macros: mdn/kumascript#193.

from browser-compat-data.

jpmedley avatar jpmedley commented on April 27, 2024

from browser-compat-data.

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.