Engineering principles

After a few years of working in software, I have come to appreciate a few engineering principles that I try to follow in my work. Some of them are more general, while others are specific to the software industry. Some of them are mine*, some of them are borrowed from other people. I hope you find them useful.

Read more  ↩︎

Bankers Round in PostgreSQL

Bankers Round (aka "half even up") is a rounding scheme very used in financial apps as it produces statistically less rounding issues than the most commonly extended "half up".

The problem is that Postgres' round function implements "half up". Read on to find out how to implement "half even up".

Read more  ↩︎