News for hackers. Stuff that matters.

hanamimastery

Re:What's an LLM? on Tuesday November 03, 2026 @11:42AM (#50354280)
The best definition of LLM on the internet - In the form of a comic issue. How would YOU explain LLM to a kid?
Re: on Tuesday October 15, 2024 @07:28PM (#41854162)
Hanami 2.2-beta2 is relased, which finally becomes a complete, fullstack framework. Let's make a blog in Hanami taking a closer look at its basic features.
Re: on Thursday September 12, 2024 @09:05AM (#41520460)
Working with templates is a hard job and eliminating the logic out of them is absolutely not trivial. In this episode we'll use Hanami tools to implement advanced forms - without logic leaking to them.
Re: on Tuesday December 19, 2023 @03:58PM (#38701446)
A new Episode had been released for Hanami Mastery!

This time I show how to render flash messages in Hanami 2.1+ using different levels of advancement! Check it out!

Re: on Tuesday November 28, 2023 @02:04PM (#38449825)
Probably any web app nowadays requires font icons to be loaded this or other way. In this episode, I'm showing the integration of Font Awesome icons in Hanami 2 applications.
Re: on Wednesday June 14, 2023 @06:17AM (#36323758)
A new Hanami Mastery episode had been released! This time we cover sending emails with Hanami, using hanami-mailer. hanami-mailer is not yet updated to work seemlessly with Hanami 2, but we've decided to integrate it to show the power of providers, which give you a full control over the component loading mechanisms.

But what do You use to send emails in ruby, except action-mailer ?

Re: on Tuesday May 30, 2023 @05:26AM (#36122828)
With the release of Hanami 2.1, the view layer is fully integrated with our Hanami applications. Let's check how to make use of a form helper to send a contact email.
Re: on Tuesday May 09, 2023 @04:09PM (#35879727)
I had a lot of fun trying out Bridgetown static site generator, and I've decided to do a video showcase of it. I hope you'll find it useful.

What do you think about Bridgetown vs other static site generators?

Re: on Tuesday March 07, 2023 @08:25AM (#35055038)
If you want to work with front_matter in Ruby, you need to know the front_matter_parser gem. Here is everything you need.
Re: on Tuesday February 21, 2023 @01:53PM (#34885176)
Learn how to quickly deploy Hanami apps to production-ready server, using Render hosting provider, the best replacement for Heroku right now.
Re: on Tuesday January 31, 2023 @12:55PM (#34598780)
I always liked rails templating collections that allowed us to quickly compose ruby apps. Now the same is possible for Hanami!
Re: on Tuesday January 24, 2023 @05:07AM (#34501764)
Have you ever considered how to efficiently render HTML out of your markdown input in ruby? Here we cover this problem with additional custom cosmetic improvements.
Re:Screencasting tips – content_for:devs #003 on Wednesday January 18, 2023 @07:59AM (#34426120)
Hi, we have shared our thoughts around different approaches of producing screencasts, and why we choose the one on Hanami Mastery.

I hope it will be useful for some of you and I am super curious about other approaches you have heard about!

I solely use Hanami since 1.5 year, and I had bever looked back!

It provides evwrything needed, while still allowing to fully control which features I want to disable.

Re: on Tuesday January 10, 2023 @04:23PM (#34331705)
Utility scripts in Ruby can be very powerful, but also very messy. In this episode I showcase dry-cli, to help you maintain advanced ruby CLI programs.

Wondering, what is your approach to this?

Re: on Tuesday December 20, 2022 @08:39AM (#34065695)
A revolution in writing scalable applications in ruby, with selective code loading, and modularized apps, come with Hanami 2.0 and the slices feature! Check it out!
Re: on Tuesday December 13, 2022 @07:28AM (#33967992)
I've released a video and article related to handling errors in Hanami apps. What would be your approach to deal with them?
Re: on Tuesday November 29, 2022 @04:35AM (#33785481)
Upgrading gem versions can lead to introducing bugs in your system, by bumping some versions too much at once. Use tools like Pessimize to avoid such things to ever happen! In this episode We're explaining how and why it's important. Any thoughts?
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger on Wednesday November 23, 2022 @04:10AM (#33716844)
Similar to what rodauth did, or active-admin - extracting mountable, shareable and reusable parts of your app to a separate thing.
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger on Tuesday November 22, 2022 @04:35PM (#33711847)
Contributions to Hanami components would be appreciated for sure! There is a whole persistence and views integration to be done fir 2.1 release! The core team will not rest for too long after 2.0 being out :D
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger on Tuesday November 22, 2022 @04:32PM (#33711813)
I agree! My rails applications became way more maintainable since I started being interested in DRY and Hanami:)
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger on Tuesday November 22, 2022 @04:27PM (#33711743)
Hanami aims to be a complete Ruby framework, allowing you to write web apps, but also gems, and non-web ruby applications. Hanami 2.0 only ships for API focus, but in next minor versions this is going to be extended. I see it as a direct alrernative to Rails for anyone who would like to try different style of programming while still using Ruby.
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger on Tuesday November 22, 2022 @04:24PM (#33711713)
Hanami 2.0 is almost completely rewrite in it's core from 1.3, and it took over 3 years. I could not imagine companies relying on owned frameworks - maintaining it, documenting it, educating people to work with them - it's just too expensive.
Re:Hanami 2.0 (Ruby): Better, Faster, Stronger on Tuesday November 22, 2022 @04:20PM (#33711672)
I am working on upgrading a few big services from Hanami 1.3 -> 2.0 at the moment. feel free to reach out if you will need some help.
Re: on Tuesday October 18, 2022 @09:11AM (#33246570)
Do you validate pagination parameters? Or filter params? In this episode I'm showing the possible use case for doing exactly that using built-in ROM pagination support and dry-schema.
Re: on Tuesday October 11, 2022 @05:59AM (#33161386)
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.
Re: on Tuesday September 20, 2022 @03:25AM (#32908731)
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.

Older »