Contributions

Article
After years-long marathon, the combined effort of DRY, ROM and Hanami teams resulted in this. Completely new Hanami, released today!
Tutorial
Semantic versioning is a useful approach to version your projects or gems - let’s deep dive into it together!

The knowledge about versioning will be necessary at some point if you seriously think about Ruby career.
Tutorial
Did you know that ROM has built-in pagination support? And so, Hanami has! In this short episode I show you how to paginate resources in Hanami with ROM, and why it's useful to validate the get parameters!

Enjoy!
Tutorial
If you have experience testing ruby applications, I'm sure you've heard about FactoryBot. Here I show you the alternative, suited for ROM-based applications, including Hanami 2.
Tutorial
Learn how to integrate the best ORM in Ruby ecosystem with Hanami (and any Ruby) application!

Hanami 2.0 comes without the persistence layer nor views preconfigured. It is useful then to know how to set up the best ORM available in the Ruby ecosystem.

While this episode showcases the Hanami integration, you can apply these tips to any application you'll ever write.
Article
Hanami 2 is behind the corner, so we started putting effort into upgrading our projects. It's not easy, but doable and we decided to share our findings for others to have an easier time. Check it out, next steps to come!
Tutorial
Sidekiq is probably the most known background processing engine for Ruby projects. In this episode, I’ll show you how to integrate it into Hanami applications!

Even if you’re unfamiliar with Hanami, this guide helps with integrating with ANY Ruby project!
Article
A sitemap is one of the core features for any web application, to make sure your site is indexed properly. Here is how to generate sitemaps in Hanami applications using the sitemap_generator gem!
Tutorial
Integrate Simplecov with Hanami and master your test coverage reports minimizing false positives!

You can apply these tips to any ruby application even though Hanami is used as an example.
Article
An opinionated video overview about different test coverage levels in Ruby applications
Tutorial
In the recent Rails 2022 Survey, Rubocop found its place on the list of the most Loved AND most frustrating gems which is quite an achievement. Neverless, I didn't like it, so in this episode I'm sharing a few thoughts how to fix all the issues related to Rubocop and be left with LOVE only.
Tutorial
Routing is one of the basic components of any web application. In this episode I’ll dig a bit into the hanami-router from the usage point of view, covering why it’s great and how to work with it.
Article
If you are working with API, data serialization is definitely a feature you would love to be done well. In this article I'm guiding you to serialize JSON responses in Hanami applications using Alba - the fastest ruby serialization gem
Tutorial
Validating data input is an extremely important problem to tackle in all applications. In Ruby ecosystem there is no better tool for that than dry-validation. Here is why!

The most popular DRY gem finally covered on Hanami Mastery! Check it out!
Tutorial
Meet one of the most powerful DRY gems, dry-schema!

dry-schema is an extremely powerful and validation engine for Ruby applications and as it's a **built-in validation solution for Hanami projects**, it'is important to get familiar with it.

In this Youtube screencast I describe the main features and mention the importance of this gem in Hanami applications. Check it out!
Tutorial
Hanami actions are one of the richest building blocks in terms of available features and in this episode I want to go through them, showing how to validate params, handle errors and and use before or after hooks.
Tutorial
Everyone would love to have a secret power. A skill that makes you a hero. There is no one such skill, but [in this episode, I'll talk about inline documentation - a great skill that can make you a better developer.
Article
Separating the business domain apart from the application layer can help a lot in untangling your code and simplifying architecture.

In this episode of Hanami Mastery, I overview 4 different approaches to the same problem of simplifying mapping business to our app.
Tutorial
Dependency injection brings you great power but comes with its own headaches. If you can get rid of them, You're left with the power only. In Ruby, with dry-system, it's possible. Here is how to reach GOD-level DI in Ruby!
Tutorial
Dependency Injection is an extremely useful programming technique and can be easily implemented in Ruby! Mastering it is an important skill to leverage the power of Hanami applications! dry-container is one way to help you with it!
Tutorial
dry-system and dry-container are extremely powerful tools and if you understand how to work with them, you'll never look back. It's amazing that Hanami uses them by default! Check out some useful debugging tips!
Tutorial
Authorizating your API applications can be trivial, if you have proper tolls to do it! Here I showcase how authorization with JWT can be done effortless in any ruby application by using Hanami 2.0 as an example and the jay_doubleu_tee gem.

Check out my new Hanami Mastery episode, the gem uses dry-effects under the hood, to manage non-local state!
Library
A JWT authorization middleware for any web application.
Article
dry-effects is a neat library allowing us to solve common programming problems in a new, coherent way! Here are 2 simple, but real-world examples of using dry-effects in Hanami applications!
Article
A struct with static type check for all attributes is a pretty useful thing in Ruby and all other languages.

In this episode of Hanami Mastery I showcase 3 examples of [using typed structs, encouraging you to send me more ideas!] (https://hanamimastery.com/episodes/10-dry-structs-in-action).

URL: https://hanamimastery.com/episodes/10-dry-structs-in-action
Article
Have you wondered what are the alternatives for ActiveRecord and why Hanami uses ROM instead? [Here is why](https://hanamimastery.com/articles/sequel-over-activerecord)!

I have started an article collecting differences between Sequel and ActiveRecord and the results are surprising! It's seems ActiveRecord is popular only because... It's popular!

https://hanamimastery.com/articles/sequel-over-activerecord
Article
I’ve just shared what I believe is a secret of getting stunning Open-Source contributions!

I’ve just changed my life for Hanami Ruby framework by making the biggest shift in my career life and composed a deep-dive article about the reasoning hidden behind this move.

All that, to be more engaged and deliver higher quality content, help Ruby community to thrive and Hanami project to succeed.
Article
In this new Hanami Mastery Episode,
I showcase the complete persistence layer of a Hanami 2.0 application!
Save your records easily, without boilerplate!

YT video guide included!
Article
If you've ever designed an API endpoint, I have a question for you!
This is a missing piece in ALL APIs in the world, because it's missing in the specs.
People do handle the business rules violations, but do they handle them correctly? Why it's not handled the same way across different APIs? Where this inconsistency comes from?

How would YOU do it?
Article
When I've started learning Hanami, I've struggled a lot because of the different concepts Hanami has over Rails. In this episode of Hanami Mastery I'm mapping Rails to Hanami for easier learning.

Mapping known concepts into new ones is a powerful learning technique and I hope You'll find it useful.

Showing the last 30 only...