Ana's Newsletter

Archive

Rails frontends and an ActiveRecord course

Hey folks 👋,

It's been a while!

After some time away from writing, I'm back with a post on ViewComponent. Created by Github, ViewComponent is an open-source framework to create reusable, testable, and encapsulated view components in Rails. In this post, I explain why this framework was created, and the issues with the rails-way of building frontends. As a guide to how the framework works, the post also shows how Rails views can be abstracted to ViewComponents.

A bit of context to this post: I tend to work more on the backend side of things. At work, frontend usually means a React or Angular application on top of a Rails API. This is probably the case with most Rails developers nowadays. The complexity of these frameworks most often implies a complete separation between backend and frontend roles.
However, lately I have been curious about some of the new frontend tools that are promising to make building frontends with Rails simple and scalable - like Stimulus, Tailwindcss (not only for Rails), ViewComponents, and others. I will be exploring some of these tools and writing about them in future posts.

On another note, I have been thinking about creating a course or micro-courses on querying with ActiveRecord. I will probably send a free beta version to some of my newsletter subscribers for feedback. If that is something that would interest you, let me know by replying to this email.

Thank you for reading,

Ana

#4
July 4, 2022
Read more

Pagination in Rails from scratch

Hey all,

I have just published a new article on how to add pagination to a rails app from scratch

I have written this article after adding pagination to the articles list on my blog. I decided not to default to the rails gems to solve this problem and thought it would be interesting to document the process.

There are at least three popular gems out there that allow us to add pagination, in just a couple of minutes, to our ruby apps (not only rails): will_paginate, kaminari and pagy.

#2
November 23, 2021
Read more

Docker and two ruby methods I love

Hey everyone!

It has been a while since you last heard from me. First, thanks for joining this newsletter!

I am still figuring what the format will be - I will let it flow for now. Besides sharing the latest content from the blog, I am interested in creating a friendly channel to communicate with fellow Rubyists.

So, if you would like to comment on a particular article or if there is a ruby topic you would like to see covered - hit reply and let me know!

#1
November 2, 2021
Read more
Brought to you by Buttondown, the easiest way to start and grow your newsletter.