Owais
2025-06-20

@joeldrapper we use newrelic, which has yml configs

2025-05-22

@henrik Nice.

Yea, the thing i built by default doesnt hide the namespace.

It does however allow you to customize the behavior to do that if you so wish. I think there are some examples of that in the readme.

2024-08-10

If you use Zed and work with ERB templates in a Rails app, and would like to use erb_lint & htmlbeautifier to format them:
owaiskhan.me/post/formatting-a

2024-03-02

@joeldrapper Following the selective rendering stuff with great interest.

Excited to see how it works. Some obvious benefits I guess are less data sent to the client + we stop rendering things on the server once we've found the thing we've been looking for.

Curious if therre are other/less-obvious benefits too?

2024-02-29

Not sure how well known, but rails has a helper called token_list (also aliased as class_names).

Super helpful when you're writing conditional stuff a lot, especially HTML classes.

Very similar to clsx, etc. in the JS ecosystem.

Alias it to `cx` to make it even shorter.

#rails #tailwind

2024-02-26

For anyone stumbling across this, I wrote a gem that you can just add to your app and start using: github.com/owaiswiz/vc_shortcu

2024-02-22

I wrote a blog post recently about speeding up code reloading in Rails for a faster feedback loop while developing.

owaiskhan.me/post/improving-pe

Might be a significant enough improvement if you've got a huge Rails app with lots of routes and making a request after doing a code change locally is very slow for you.

#rails #performance

2024-02-20

If you use VSCode and have a lot of View Components, configuring explorer.fileNesting might clean up your `app/components` in the explorer a lot:

"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*_component.rb": "_${capture}_component_*.html.erb, ${capture}_component.html.erb, ${capture}_component.js, ${capture}_component_controller.js, ${capture}_component.scss"
},

#rails #viewcomponent #vscode

How the file explorer looks with file nesting enabled.How to enable file nesting in VSCode (UI)How to enable file nesting in VSCode (JSON)
2024-02-19

I've always felt rendering ViewComponent with Rails is a bit too verbose.

Especially if you have namespaces. E.g:

render(Admin::Navigation::Item.new(label: 'Example'))

I've used a helper to make it nicer on 2 projects so far:

vc.admin.navigation.item(label: 'Example')

Maybe make it into a gem?

(Might seem a bit over-engineered on a first glance. But it's something that might be called 100s-1000s of time on a page, so had to make sure it's fast enough.

#rails #ruby #ViewComponent

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst