News for hackers. Stuff that matters.
Re:My weekend project: accounting.js, tiny JS library for mo... by yannis on Sunday August 21, 2011 @11:40AM (#2909394)
Nice project. Check also some of the i18n classes in Google's Closure package (http://code.google.com/closure/library/), for more comprehensive routines and support for almost any currency.
Re:My weekend project: accounting.js, tiny JS library for mo... by josscrowcroft on Sunday August 21, 2011 @11:46AM (#2909410)
Sweet, thanks for the link - I'll read through it and see if I can improve or expand the library.
Re:My weekend project: accounting.js, tiny JS library for mo... by cdsanchez on Sunday August 21, 2011 @02:39PM (#2909853)
I think it'd also be useful if you included an enumeration of the common currency symbols. For example, accounting.DOLLAR, accounting.EURO, etc.
Re:My weekend project: accounting.js, tiny JS library for mo... by josscrowcroft on Sunday August 21, 2011 @09:19PM (#2910873)
Yeah, that could work actually - I've purposefully left everything to do with symbols (apart from the standard dollar sign) up to the developer, to avoid bloat, but I can see a use case for the most common ones (along with default formatting for said symbols)
Re:My weekend project: accounting.js, tiny JS library for mo... by beck5 on Sunday August 21, 2011 @12:41PM (#2909529)
Thanks, for me it makes sense to use the smallest unit available as the main unit, i.e. cents not dollars / pence not pounds.
Re:My weekend project: accounting.js, tiny JS library for mo... by veyron on Sunday August 21, 2011 @02:25PM (#2909801)
What are you using for minifying the javascript?
Re:My weekend project: accounting.js, tiny JS library for mo... by josscrowcroft on Sunday August 21, 2011 @09:18PM (#2910872)
YUI - via http://refresh-sf.com/yui/ when I'm in a hurry.

Why, did you find errors, or room for improvement?

Re:My weekend project: accounting.js, tiny JS library for mo... by veyron on Monday August 22, 2011 @11:57AM (#2912868)
Just curious. I'm not really a JS person
Re:My weekend project: accounting.js, tiny JS library for mo... by jsavimbi on Sunday August 21, 2011 @11:09AM (#2909327)
Well thank you very much, sir.