Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How should we use these metrics? #48

Open
aeisenberg opened this issue Jun 15, 2016 · 2 comments
Open

How should we use these metrics? #48

aeisenberg opened this issue Jun 15, 2016 · 2 comments

Comments

@aeisenberg
Copy link

Great project and great tool! Thanks for implementing this.

I am able to get metrics for the css in my project. This is good, but now that I have it, it's hard to know how to use it. In general, I understand that we want to use fewer identifiers per selector, and use fewer selectors per rule, etc. But what number is good? What metric values should a project be striving for?

Not all projects are the same, but I think that we can all agree that for 99.9% of projects, using 10 identifiers per selector is too much. I'm hoping to get more precise than that, though.

I'm not expecting a precise answer, but I am hoping to start a discussion.

@mrdrewkeller
Copy link

There's a good post from CSS Wizardry explaining how this tool can be used - http://csswizardry.com/2016/06/improving-your-css-with-parker/

@radiovisual
Copy link

I agree that having some sort of documentation that explains the output (what to look for, what is good, what is bad, etc), could be useful. Also, having some sort of visual output to indicate the problem areas (or good areas) to make the output more meaningful upon immediate inspection. For example, if I run parker on a legacy project that is violating every single BEM rule in the book, the output "feels the same" as the output generated on the most law-abiding BEM project ever written (even though the numbers are different, the output "feels the same", if that makes sense)

It could be satisfying to see problem areas output in red text, and the good areas are output in green text, something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants