GraphQL file upload with Shrine

Title image for "GraphQL file upload with Shrine"

At the moment of writing there is no officially supported way to do file upload through GraphQL. Here is a roundup of all available methods to do file upload through it, their pros and cons. This post grew out of a request on the Shrine issue tracker — you can find the original issue here. It'...

Continue reading ...

Best image uploader for Rails — Revisited

Title image for "Best image uploader for Rails — Revisited"

Three years ago I wrote about how to choose the right uploader gem for your project. Since the time the original article has been published, all mentioned libraries got updated, one got deprecated, and two new libraries have appeared. I feel it's time to revisit this topic. Why do we use uploa...

Continue reading ...

Function composition >> Ruby

Title image for "Function composition >> Ruby"

Last week Proc#<< and Proc#>> got merged into Ruby 2.6. This opens the door for function composition. Here’s my opinion as to why this is a great leap forward for Ruby and what needs to improve. Composition vs. inheritance Ruby is an object-oriented language (among others), meaning it has the...

Continue reading ...

Licensing software

Title image for "Licensing software"

Recently I've started working on a small Ruby library. While I was sketching the architecture of it to I was listening to some lectures from Richard M. Stallman which got me thinking about how I should license my library. Note: I'm by no means a legal expert. Everything written here is what I'...

Continue reading ...