-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use StandardJS #64
Comments
And that would be useful because? |
My bad @tomsmeding - I clicked the submit button too fast. Please bear with me while I try to explain why I think Standard is a perfect solution for MagisterJS. Contributing to an open source project can sometimes be a struggle, since so many different coding styles and personal opinions exist. Adopting this standard style means ranking the importance of code clarity and community conventions higher than personal style. This might not make sense for 100% of projects and development cultures, however open source can be a hostile place for newbies. Setting up clear, automated contributor expectations makes a project healthier and easier to access and contribute to for every developer. There are lots and lots of debates about tabs vs. spaces, etc. Those will never be resolved. These debates just distract from getting stuff done. At the end of the day you have to 'just pick something', and that's the whole philosophy of Standard - its a bunch of 'just pick something' opinions. Hopefully, you can see the value in that over defending own opinions. I think in order to be a more welcoming community for new developers, pull and feature requests, MagisterJS should start using Standard. This would make it tremendously easier for anyone to follow up on that sarcastic you're always free to open a PR if you want x to be implemented, fixed or added comment. We, as (somewhat) experienced developers know of all people that an existing open-source project is not something you can just start working on right away. This brings me to another (somewhat unrelated) point, proper documentation and a clear explanation of a project's architecture, is of vital importance for new contributors to understand what they're working on and to be able to improve existing work. Because, let's face it, you can't edit something without understanding how it works in the first place. It is our responsibility and in our best interest to give everyone who has access to our repository (and has basic knowledge of Javascript) a chance to contribute and share their ideas, without all the hassle of following a custom in-house style that only a few people master. (Bonus: the So in short:
Edited 2 times |
Hey @lesander! |
Hey, Talking about v2 here, of course, since v1 is deprecated and is in coffeescript. First I want to point out that we already use everything of standard I agree with, which is everything except for the indention style (we prefer tabs). I won't go in a tabs vs space debate here.
Sorry but I just disagree with this completely, we already had popular style guides, Google has one for years, airbnb has a really in-depth one, and there are more for sure.
I don't really see a standard fixing this. If it's something like being afraid of helping out, which I can see (I was afraid too with my first PR), I fail to see how a standard would improve that. We need some other way to improve that.
Sure thing, very true.
This is not a standard-only feature, this feature belongs to eslint, which we use, so everybody can use too, just replace standard with eslint and you're ready to go. The standard repo says standard is easier since you don't have to maintain a .eslintrc, but I already have set one up so no more work tho be done there (and I'm willing to take some time to configure it properly). I already thought of jumping to standard for personal projects, but I don't to give up tabs. (And if somebody can figure out how to set their space width to 2, they can also figure out how to turn off tab expansion and set their tabstop to something they like (2 for example).) Sorry for the rant. |
Obviously, yes 😄 .
That's true, yeah. Although I would not call Feross just 'somebody'. But the fact is that StandardJS is rapidly becoming one of the most popular coding styles for JavaScript.
While that is true, this standard could lower the barrier for people to start contributing a little. Perhaps I shouldn't have made the title of this issue StandardJS, but rather Making contributing easier for everyone or something like that. The main issue for me is not particularly using a different code style, but I would rather see it as a first small step.
I stand corrected, I wasn't aware of that.
Great, I look forward to that 😊. One of the main reasons I have not committed to v2 yet, is because I'm unsure what development environment works the best and is required.
No problem, I was the one being blunt 😆 . |
So as you maybe have seen I have created #65, which should help with that issue! I hope this fixes the problems, thanks again for sharing your idea :) |
http://standardjs.com
The text was updated successfully, but these errors were encountered: