Railway Oriented Programming in Scala

Posted on June 26, 2020
(Last modified on January 2, 2023)
| 16 minutes
| 3343 words
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
Posted on June 17, 2020
(Last modified on June 24, 2020)
| 10 minutes
| 1938 words
A small cli available as a ruby gem to maintain a repo of TILs
[Read More]Error Handling in Scala
Posted on January 4, 2020
(Last modified on June 23, 2020)
| 12 minutes
| 2508 words
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

Posted on June 27, 2017
(Last modified on January 13, 2023)
| 6 minutes
| 1179 words

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]Mysql Utf8
Posted on August 17, 2013
(Last modified on June 23, 2020)
| 5 minutes
| 863 words
The limitation of MySQL’s default utf8 encoding and how to use a better one
[Read More]Direct Upload to S3 with CORS
Posted on September 21, 2012
(Last modified on June 23, 2020)
| 7 minutes
| 1418 words
Using CORS with AWS to upload files directly to S3 from a webpage using a Ruby on Rails server.
[Read More]