Ryan Strickler

Ryan Strickler

@ryanstrickler.com

Always building something, usually with Ruby. Into calm business and slow travel. Let's be friends 👋 Job board: https://railshotwirejobs.com

341 followers106 following118 posts

Just found a nice trick when lazy loading with a turbo frame. I'm working on a page that loads timesheets for a list of employees as you scroll down a long list. When there are no timesheets, I update the frame to be empty, but it was still taking up a little extra space in the layout.

View full thread

Then in your response, just make sure your frame is empty when there is no data: <%= turbo_frame_tag dom_id(@employee, :timesheets) do %> <% if @timesheets.any? %> ... <% end %> <% end %>

Just found a nice trick when lazy loading with a turbo frame. I'm working on a page that loads timesheets for a list of employees as you scroll down a long list. When there are no timesheets, I update the frame to be empty, but it was still taking up a little extra space in the layout.

Assuming you're using Tailwind, you can use `empty:hidden` in the turbo frame tag where you're making the lazy loading call, like this: <%= turbo_frame_tag dom_id(employee, :timesheets), loading: :lazy, src: employee_timesheets_path(employee), class: "empty:hidden" do %>

Ryan Strickler reposted

It’s happening guys!

Pascal Laliberté@pascallaliberte.ca

Hey Rails friends. I'm trying an experiment. Can you help me send this out to our industry friends? "A week of Hotwire Office Hours, so you can finally tweak your Hotwire-based app." Part group training, part accountability, part hangout with friends. Details soon👇 hotwiresupport.pascal.works

Started getting up earlier than usual and going straight to a coffee shop. Still adjusting to the new schedule, but feeling productive and excited to take this momentum into the new week. 🚀 Also makes me realize that weeks where I mostly write code feel good. 🤔 How's your week shaping up?

Ryan Strickler reposted

Today, I’m thrilled to share that Spotify has returned Podlink to my care! After four and a half years, Podlink is back with its original founder, and I’m excited about what’s ahead.

Ryan Strickler reposted

Five years ago, coding was the easy part, and knowing what to code and promoting it (talking to customers, positioning, sales, etc.) was the hard part. Right now, coding is still the easy part, and knowing what to code and promoting it is the hard part.

Been trying Windsurf recently. Not sure I love it overall, but having someone to immediately ask questions when you encounter a bug or error is definitely helpful. AI makes a great rubber duck.