mozilla

Revision 172038 of JavaScript Tips

  • Revision slug: Talk:JavaScript_Tips
  • Revision title: JavaScript Tips
  • Revision id: 172038
  • Created:
  • Creator: Nickolay
  • Is current revision? No
  • Comment Talk:Javascript Style Guide moved to Talk:JavaScript style guide

Revision Content

  • "The character set for XUL, DTD, script, and properties files is UTF-8 which is not easily readable."
    • This needs explanation. "Not easily readable" sounds weird. How is DTD being UTF-8 related to \uXXXX escapes?
  • "Convenience constants for interface names should be prefixed with nsI"
    • This makes little sense for mozI interfaces. Are the short names like nsIWBP a good idea anyway?
  • "Duplicate variable declaration"
    • This is not a JS strict warning anymore (iirc ben lobbied for that, need to find a bug and update the text in the article)

--Nickolay 14:30, 9 June 2006 (PDT)

Revision Source

<ul><li> "The character set for XUL, DTD, script, and properties files is UTF-8 which is not easily readable."
<ul><li> This needs explanation. "Not easily readable" sounds weird. How is DTD being UTF-8 related to \uXXXX escapes?
</li></ul>
</li><li> "Convenience constants for interface names should be prefixed with nsI"
<ul><li> This makes little sense for mozI interfaces. Are the short names like nsIWBP a good idea anyway?
</li></ul>
</li><li> "Duplicate variable declaration"
<ul><li> This is not a JS strict warning anymore (iirc ben lobbied for that, need to find a bug and update the text in the article)
</li></ul>
</li></ul>
<p>--<a href="User:Nickolay">Nickolay</a> 14:30, 9 June 2006 (PDT)
</p>
Revert to this revision