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]
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
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
The limitation of MySQL’s default utf8 encoding and how to use a better one
[Read More]
Direct Upload to S3 with CORS
Using CORS with AWS to upload files directly to S3 from a webpage using a Ruby on Rails server.
[Read More]