In order for Webcraft community members to best interact with each other, it will be helpful for us if we define a set of coding and formatting style guides. As well as increasing readability and encouraging best practice around commenting and code layout, working to standards is a valuable professional skill.
I'm aware that it's going to be difficult to choose a standard approach that suits everyone's preferences, but we'd be grateful to have your input about suggested coding standards as well as ways to maintain and educate Webcraft developers in their implementation.
Things these standards should cover include capitalization, variable and function naming, indentation, references to original code authors, licenses etc.
It would be great to have specific input from Mozilla developers as well as those working on the P2PU Lernanta project.
Rather than necessarily prescribing one or the other on such sensitive
topics, it might be useful to thoroughly educate folks on the benefits
and drawbacks of each, so that they can choose which way to go depending
on the needs of their project.
That said, I'm a fan of Doug Crockford's JSLint and its "The Good Parts"
option set, but I know lots of folks who aren't, in part because it
prohibits usage of language features that sometimes have perfectly valid
One particularly nice thing about JSLint, of course, is that it gives
you a programmatic way of verifying code quality. If adopted by P2PU
at-large, you could easily verify how much of your code being written
conformed to your style guide. Even if you go with another style guide,
though, I guess you could write your own verifier.
If you're interested, these are Mozilla's style guidelines, which are
used for Firefox:
For the Jetpack/Add-on SDK project, we've sort of "subclassed" this
style guide, overriding it in certain places and creating new rules in
All in all, I think this is a really tough task for JS. At least with
Python you've got PEP-8, which practically everyone in the community
> You received this message because you are subscribed to the "P2PU
> School of Webcraft" mailing list. This is a community mailing list for
> discussing ideas and making decisions about the School of Webcraft run
> by Mozilla and P2PU.
> To find out more about the project you can visit
> http://p2pu.org/webcraft or http://drumbeat.org/p2pu-webcraft
> To post to this group, send email to p2pu-w...@googlegroups.com
> To unsubscribe from this group, send email to
> For more options, visit this group at