- Stick with ECMAScript 5's strict mode.
- Follow the MediaWiki coding conventions.
- Always document new classes and methods.
- Load third-party libraries from the cdnjs mirror at Wikimedia Tool Labs.
- Use jQuery
Deferred
s andPromise
s instead of callbacks. - Work with dates in UTC flavors, e.g. use
Date#getUTCDate()
instead ofDate#getDate()
andd3.time.format.utc()
instead ofd3.time.format()
. Mixtures of local and UTC times are likely to cause subtle bugs.
There is no aided translation system yet. You have to copy one of the existing
JSON files from the i18n
folder — preferably English or Italian, since those
are the most up to date. Sorry for the inconvenience.