Announcing TextParser for Elixir

I’m excited to announce the initial release of TextParser, a new Elixir library for extracting and validating structured tokens from text. Whether you need to parse URLs, hashtags, mentions, or custom patterns, TextParser provides a flexible and extensible solution. Why TextParser? TextParser was born from real-world needs at justcrosspost.app, where processing tags, mentions, and URLs for Bluesky required precise handling of text tokens. The library has been designed with several key features in mind: ...

March 14, 2025 · 2 min · Peter Solnica

Speed Up Your Elixir Testing with Custom Tasks and Key Bindings in Visual Studio Code

Testing is an integral part of software development that ensures your code works as expected. However, running tests can sometimes be a slow and cumbersome process, especially when you’re looking to quickly iterate on your code. I use a “secret” method that allows me to quickly run tests using custom tasks and key bindings in Visual Studio Code (VS Code). This approach is much faster and lighter than other solutions I’ve tried. ...

February 28, 2024 · 3 min · Peter Solnica

Elixir Drops 0.2.0 with support for custom types was released!

Since the previous release in October, my intermittent efforts have been dedicated to developing version 0.2.0 of Elixir Drops, concentrating primarily on enhancing its type system. The main objective has been to introduce the functionality for users to create custom types and to enable their composition. I’m thrilled to share that today I’ve completed the work and released Elixir Drops version 0.2.0! Let’s explore the new capabilities it brings. Defining custom types You can encapsulate validation logic in simple custom primitive types. Let’s say you want a user with age and name attributes, here’s how you could define it: ...

February 1, 2024 · 4 min · Peter Solnica

Introducing Elixir Drops

A few years ago my Ruby friends asked me if it would be possible to port some of the dry-rb libraries to Elixir. I remember some early community attempts at porting dry-validation specifically, I did my best to support the effort but back then my Elixir knowledge was too basic and I was too busy with other work. Fast forward to today and I’m happy to announce the very first release of Elixir Drops! 🎉 In this article I’ll introduce you to the concepts of the library and show you how you could use it. ...

October 25, 2023 · 5 min · Peter Solnica

A quick​ recap and plans for the future

Hi, I’m back! I haven’t written anything on this blog since November 2016, which is sad but it is what it is. I’ve got so much to tell you. A lot happened during this time, and I’ll try to summarize it here and also talk a bit about my plans for the future. The Ruby Prize Almost a year ago I was honored to go to Matsue, Japan, to attend the Ruby World 2017 conference, where I received the Ruby Prize from Matz himself. Getting the prize and visiting Japan was a fantastic experience for me, and I’m deeply grateful. I’ve been thinking a lot about the Ruby community since then, mostly reflecting on how we’re evolving as programmers and trying to see how well my 8+ years of OSS contributions fit in this process. There are clear signs that a lot of Ruby developers are entirely on board with various ideas introduced by projects like rom-rb or dry-rb. Watching growing adoption makes me very happy (dry-types has > 2.7M downloads on rubygems.org already!), but at the same time, I’m aware that there’s much more work that we need to put into these projects if we want more people to use them. ...

August 29, 2018 · 7 min · Peter Solnica