Contributions

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.
Article
Have you ever wondered where to start learning DRY-RB libraries? This dependency chart for the whole ecosystem may help you with it!
Tutorial
Everyone knows how messy Rails controllers can become. In this Hanami Mastery episode, I implement the service-object pattern - but on steroids.

Using dry-monads in my sample Rails application you'll learn how to write a truly framework-agnostic web applications.
Article
If you've ever worried if your hash has stringified keys or not - and you didn't have Rails in your hand.... then check this out! The new Hanami Mastery episode covers a neat way to transform anything into anything else in Ruby!
Article
This article shows the thinking process behind evaluating the Hanami ruby framework as a Rails replacement, in a working project, the mistakes I've made, and the learnings I've taken from that experience.