~/talk

"It's all about money, money, money"

Talkat RubyC 2019 · 2019-09-14..09-15· [finance-and-economics, software-architecture]
links:none on file
slides:none on file

Practical rules for handling money: never use floats — use BigDecimal or fixed-point types; prefer store integers for smallest unit (cents/kopecks) unless asset has variable subunits like crypto, where you need higher precision and a configurable scale. Choose rounding per business rule (round fees up, referral payouts down, aggregate high-precision values and round monthly). Persist amounts with correct DB precision, and implement a double-entry ledger with pessimistic locks (or event-sourced accounting) to avoid double-spend and keep books balanced.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:26Fibonacci and money history
  3. 3:39Representing money in code
  4. 6:50Floating point money pitfalls
  5. 9:22Database precision for money
  6. 11:39Rounding money wisely
  7. 16:03Banking errors and rounding
  8. 16:46Double-entry accounting basics
  9. 21:07Why accounting matters in code
  10. 21:51Double-entry in Ruby systems
  11. 23:49Ensure your books balance
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.