Categories
Mozilla

Did you know we have a style guide?

I’ve been surprised at the number of people who were unaware that Mozilla has a coding style guide. It contains the rules for new files for both JavaScript and C++. You can save your reviewer a whole bunch of time by making sure your code conforms to this before asking for review.

By Shawn Wilsher

The man behind the site.

5 replies on “Did you know we have a style guide?”

From the JavaScript section:
“Use \uXXXX unicode escapes for non-ASCII characters. The character set for XUL, DTD, script, and properties files is UTF-8 which is not easily readable.”

That has me confused. Are you (as in: Mozilla) really claiming hexadecimal references to Unicode code points are more readable than the actual characters they represent?

Making sense of Firefox startup time…

One of the things that we at Mozilla would like to do better at is the amount of time it takes between when you launch Firefox, and when it starts up and is usable.  We’ve been tackling this problem for quite a while, and have already made tremen…

Comments are closed.