Josh Frankel
@joshfrankel.bsky.social
38 followers 33 following 11 posts
Sr. Fullstack Software Engineer @ Buoy Software Blog: https://joshfrankel.me/blog/ GitHub: https://github.com/joshmfrankel Mastodon: https://ruby.social/@JoshFrankel LinkedIn: https://linkedin.com/in/joshmfrankel/
Posts Media Videos Starter Packs
joshfrankel.bsky.social
Good question! My response would be, it depends. I follow the standard of General-Purpose components remaining stateless to allow composability. Application-Specific components on the other hand are targeted to a page or feature. These can be stateful, though I'm open to changing my opinion here 😀
joshfrankel.bsky.social
Today, I learned about the `after` function in #nextjs as a simple background job processor. Lighter and simpler than using #Redis or #Database backed queueing, it is ensured to execute even when an error is encountered.

joshfrankel.me/blog/simple-...
Simple Background Jobs with After in Next.js
Today I learned about the after function for scheduling side effects which avoid blocking execution. Think of it as a simple background job scheduler. These are much lighter than a database or Redis b...
joshfrankel.me
joshfrankel.bsky.social
I've been working on a project with #Next.js and #prisma. I miss the niceties provided by ActiveRecord along with PostgreSQL's best practices, so I wrote a blog post detailing how to customize tables, columns, and associations in Prisma.

joshfrankel.me/blog/custom-...

#JavaScript, #Nextjs, #Prisma
Custom Naming for Database Tables, Columns, and Associations in Prisma ORM
I’ve been working with Prisma as an object-relational mapping tool for my projects. Coming from a background of using raw SQL along with ActiveRecord, I’ve noticed that default Prisma caters to JavaSc...
joshfrankel.me
joshfrankel.bsky.social
ViewComponents reduce bloat, simplify data, and create reusable frontend styling. Despite these benefits, they're often under-utilized in the Rails community. I've written a blog post refactoring a real-world example into isolated ViewComponents.

joshfrankel.me/blog/viewcom...

#ruby #rubyonrails
ViewComponents, the Missing View Layer for Rails
If you’ve worked with Rails for any measure of time, then you know that Rails’ Views can quickly get out of hand. Between Helpers, instance variables, and inline logic, they quickly become bloated and...
joshfrankel.me
joshfrankel.bsky.social
Enumerable#partition and Object#tap are both very handy
joshfrankel.bsky.social
Tailwind UI (great starting point) with ViewComponents backing. 👌

ViewComponents have a great way to easily preview their variations as well: viewcomponent.org/guide/previe...
Previews
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
viewcomponent.org