~/talk

Mo Money Mo Problems (with Ruby)

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby]
slides:none on file

Don't use floats for money; store amounts as integer cents or accept BigDecimal's memory cost. Use deterministic rounding like round half to even (banker's rounding). Run captures asynchronously with background jobs (ActiveJob or similar) and serialize related steps with transactions or Mutex locks so captures and payouts remain atomic. Keep per-transaction ledgers read-only, persist exchange rates for multi-currency work, and abstract gateway code (Stripe, PayPal, Braintree) behind a payment-source interface.

AI-written summary · about

  1. 0:00Introduction
  2. 2:12Handling money in databases
  3. 4:20Rounding and currency
  4. 10:48Using the Money gem
  5. 12:56Security and background jobs
  6. 15:41Concurrency and integrity
  7. 18:23Timing and logging
  8. 20:26System architecture
  9. 22:25Fraud detection and close
~/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.