Re: [nodejs] Node.js for real-time app, that involves bank accounts? Is recommended?

2012-07-13 Thread Anton Whalley
Hey The stackoverflow answer is fine but the libs provided may not be as node friendly as https://github.com/iriscouch/bigdecimal.js Peace Anton On Friday, July 13, 2012 4:09:29 PM UTC+1, Jeff Barczewski wrote: > > If you want to get around the rounding errors with javascript

Re: [nodejs] Node.js for real-time app, that involves bank accounts? Is recommended?

2012-07-13 Thread Jeff Barczewski
If you want to get around the rounding errors with javascript then you need to work in cents (or even hundreths of a cent for more accuracy). So basically multiply your currency like dollars by 100 to get it into cents, do your calculations, then finally, divide by 100 or simply sprintf to dis

Re: [nodejs] Node.js for real-time app, that involves bank accounts? Is recommended?

2012-07-13 Thread Micheil Smith
Hi Eysenck, You may not want to use Node.js (or any javascript vm) for this, due to the inherent issues javascript has dealing with fractional numbers, for instance, take the classic expression: "0.3 - 0.2 != 0.1" However, as this is a financial application, you'd probably be storing

Re: [nodejs] Node.js for real-time app, that involves bank accounts? Is recommended?

2012-07-12 Thread Stewart Mckinney
When you have highly structured data with high levels of interdependence, such as lots of numbers that all depend upon one another - i.e bank accounts - you use SQL. When you have fairly unstructured, loose data that is fairly independent, such as content - i.e you are building a blog or another

[nodejs] Node.js for real-time app, that involves bank accounts? Is recommended?

2012-07-12 Thread Dave Clements
When it comes to finance, SQL comes out on top - things like MySQL have been battle tested for decades, accounts information is intrinsicly relational so relational databases are the right fit, ACID compliance with nosql is more liberal but with your project you'd need 100% reliability. Also t

[nodejs] Node.js for real-time app, that involves bank accounts? Is recommended?

2012-07-12 Thread Eysenck Gómez
Hi, I'm a bit new here, I have in mind to make a real-time application on that involve money and bank accounts, and was thinking of using Node.js + Express + Now.js any SQL database or NoSQL, the problem I have no information on how safe or good is Node in this field, any of you have used Node.