Skip navigation

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.


  1. When do we get the lint or JSHydra or whatever tool to automatically tell us the errors?

  2. 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?

  3. Ah, right, there is a style guide. I remember seeing it around the time I started with Mozilla. Then I learned the simple rule “just follow the style of the file your are changing” and forgot about it…

One Trackback/Pingback

  1. By Ehsan Akhgari on 30 Apr 2010 at 8:30 am

    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.