How to Write a Condition With Interdependent Variables
▻https://www.fluentcpp.com/2019/12/13/how-to-write-a-condition-with-interdependent-variables
Sometimes, the simplest requirements can be tricky to code in an expressive manner. For example, I recently had to code up some logic to determine if a transaction consisted in paying money or receiving money. To determine this, the transaction has two relevant parameters: the price of the transaction, that can be positive or negative. […]