DDD в Go без красивых схем: как один платеж получил три курса валют

В какой-то момент у нас один платеж начал жить с тремя курсами валют: checkout показывал сумму из Redis, payment-service ходил в API, а ledger писал проводку по снапшоту из Postgres. Расхождения были 2-5 тенге, иногда до 180. Разбираю, как это дебажили, какие костыли ставили и где DDD реально помог, без красивых схем. Читать статью

https://habr.com/ru/articles/1025226/

#ddd #domaindriven_design #go #golang #архитектура #value_object #aggregate_root #платежи #курсывалют #decimal

DDD в Go без красивых схем: как один платеж получил три курса валют

Писать про DDD легко, пока в примерах User , Order и пара красивых стрелочек. В проде оно обычно выглядит менее аккуратно: у клиента в интерфейсе одна сумма, списывается другая, саппорт открывает...

Хабр

How to Stop Decimal Precision From Losing Money

Floating point can silently drop cents.

#mysql #decimal #float #howto #money #bug

https://www.youtube.com/watch?v=25gvtTJ21QA

How to Stop Decimal Precision From Losing Money #money

YouTube

I just released decimal-java 2.0.1, https://github.com/FirebirdSQL/decimal-java/releases/tag/v2.0.1. Decimal-java is a library to convert java.math.BigDecimal to and from IEEE-754r (IEEE-754-2008) decimal byte representations.

Compared to decimal-java 2.0.0, this version adds JSpecify nullability annotations.

#decimal #ieee754 #java

Release decimal-java 2.0.1 · FirebirdSQL/decimal-java

Minor changes: Upgraded to Gradle 9.3.1 Upgraded to JUnit 6.0.3 Added JSpecify nullability information Requirements: Java 17 or higher Also available on Maven: <dependency> <groupId>org.fireb...

GitHub
https://m.youtube.com/watch?v=Bkq_N9g6mmY
Two days ago, it transpires, marked 60 years of #Decimal #currency in #australia .
Gotta get me one of those limited edition coins 👀.
Australia marks 60 years since switching to decimal currency | ABC NEWS

YouTube

Decimal Precision Rounds Numbers?!

DECIMAL precision ROUNDS values! Cast 1.999 to DECIMAL(5,2) and it becomes 2.00. This silent rounding will cause calculation errors!

#sql #sqltricks #decimal #precision #rounding #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #datatypes #advancedsql

https://www.youtube.com/watch?v=wNyhCqAhlb8

Decimal Precision Rounds Numbers?! #codingchallenge

YouTube

Happy 60th anniversary of Changeover Day (Australia). 🎵🎶In come the dollars and in come the cents
to replace the pounds and the shillings and the pence.🎶🎵

Here's a piece I wrote on one of the last Australian pennies, saved as a keyring: https://coinofnote.com/1963-australian-penny-keyring/

Here's a blog Michelle J Morgan wrote on the song: https://michellejmorgan.com.au/blog/on-the-14th-of-february-1966/

And here's the Royal Australian Mint's article on today, with description of the coin design released this year to commemorate it: https://www.ramint.gov.au/about-us/whats-new/2026-sixty-years-australian-decimal-currency

#Numismatics #CoinCollecting #Currency #Changeover #Decimal #Coins #History #Histodons @numismatics @histodons

Australia marks 60 years since switching to decimal currency

Six decades ago, Australia swapped its old currency for dollars and cents. A catchy jingle sung by a cartoon character named Dollar Bill helped the country adapt.

Learn about numeric data types (and the number 998,001) in Python

The value 1 / 998,001 has an interesting property, but to see it in Python you need to learn about numeric data types.

https://rodstephensbooks.com/many_digits.html

#Python #FloatingPoint #Decimal #Precision

Round Number via 3 Methods

Round Number via 3 Methods This content explores interesting aspects of this topic. The information provided offers valuable insights and perspectives. Understanding this reveals how everyday things are more thoughtful than they appear. Next time you'll notice this detail. This fascinating detail shows how much thought goes into things we take for granted.

#python #coding #programming #tutorial #math #round #decimal

https://www.youtube.com/watch?v=4EbTU9onToU

Round Number via 3 Methods #programming

YouTube