Railway Oriented Programming in Scala

Railway Oriented Programming in Scala
Playing with the Railway Oriented Programming concepts in scala. Translating them from F# and seeing how we can adapt them to Scala constructs. We will not mention Monads. I just did, but that was the only time. [Read More]

TIL CLI

A small cli available as a ruby gem to maintain a repo of TILs [Read More]
ruby  cli  dev 

Error Handling in Scala

Previously published on Medium

After a few years of using Scala to develop backend services at Harry’s, we developed a robust approach to error handling, leveraging its powerful type system. It takes advantage of the flexibility of Scala types and tries to avoid defensive programming such as aggressive exception catching and re-throwing.

[Read More]

Atomic Increment/Decrement operations in SQL and fun with locks

Atomic Increment/Decrement operations in SQL and fun with locks

A zipper with red & blue sides

Previously published on Medium

We recently rewrote our inventory management system and managed to improve the performance while reducing the operational complexity by taking advantage of native SQL increment & decrement operations. In this post we’ll dive into the details and common gotchas of these operations and we’ll compare our new implementation with the previous one to highlight the benefits.

[Read More]
dev  sql 

Mysql Utf8

The limitation of MySQL’s default utf8 encoding and how to use a better one [Read More]
dev  sql  mysql