photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

239
active users

#rails

4 posts4 participants0 posts today
Alda Vigdís<p>New blog post: Eager loading Rails ActiveStorage Variants Almost Killed My Site</p><p>"Our Heroku dynos were crashing. I was burning the midnight oil and there were no changes to my own codebase that could explain this".</p><p><a href="https://aldavigdis.dev/2025/07/21/eager-loading-rails-activestorage-almost-killed-my-site/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">aldavigdis.dev/2025/07/21/eage</span><span class="invisible">r-loading-rails-activestorage-almost-killed-my-site/</span></a></p><p><a href="https://topspicy.social/tags/Ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ruby</span></a> <a href="https://topspicy.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> <a href="https://topspicy.social/tags/RubyOnRails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RubyOnRails</span></a> <a href="https://topspicy.social/tags/Webdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Webdev</span></a></p>
Alda Vigdís<p>I just upgraded a <a href="https://topspicy.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> app from 7.0 to 8.0 only to realise after agonising for two days that in version 7.1, "eager loading" ActiveStorage records was "fixed" so now it takes 1200 ms to load a page in production instead of 120 ms.</p>
codeDude :archlinux: :neovim:<p>I figured out <a href="https://floss.social/tags/mastodon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mastodon</span></a> is coded in <a href="https://floss.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> Now I motivated to take a look the source code. Probably in future I can make contributions.</p>
Shane Becker<p>Every year or two (especially with a major version bump), I re-read <a href="https://ruby.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> intro docs, guides, and onboarding materials</p><p>I re-watch intro videos and screencasts</p><p>To see what's new, yes<br>But also to see what ossified ways I have that have been obviated or improved</p><p>Too see with fresh eyes</p>
Scott Wright 🏳️‍🌈🏳️‍⚧️<p>I’m upgrading a <a href="https://ruby.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> app from 7.1 to 8.02. The App uses tailwindcss-rails even though I don’t use any <a href="https://ruby.social/tags/TailwindCss" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TailwindCss</span></a> in the app. I had problems taking Tailwind to 4.x so I pinned it to ~&gt; 3.3.1 per the README. I’d love to get over the hump and get it all the way to 4.x. but there was an @forms plugin that seemed to be missing.</p><p>Anyone know of specific steps to upgrade a Rails App? (The instructions seem more geared to a generic App and I can’t seem to make the translation). Boosts appreciated.</p>
Issy Long<p>Reminder that I’m available to hire for casual <a href="https://ruby.social/tags/Ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ruby</span></a> <a href="https://ruby.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> <a href="https://ruby.social/tags/DeveloperExperience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeveloperExperience</span></a> things like improving tests, dependency upgrades, and, my favourite, writing code style rules!</p><p><a href="https://www.issylong.com/work-with-me/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">issylong.com/work-with-me/</span><span class="invisible"></span></a></p><p>It sounds fairly niche, but hey, I know what I like and what I’m best at!</p>
Kerrick Long (code)<p>I've seen a lot of content about using <a href="https://ruby.social/tags/DDD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DDD</span></a> (Domain-Driven Design) with <a href="https://ruby.social/tags/Ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ruby</span></a> on <a href="https://ruby.social/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a>, but none of it has addressed how to do the "one database per bounded context" pattern--especially in the world of Solid* and SQLite by default.</p><p>Does anybody have any strategies for this?</p><p><a href="https://ruby.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://ruby.social/tags/RubyOnRails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RubyOnRails</span></a> <a href="https://ruby.social/tags/DomainDrivenDesign" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DomainDrivenDesign</span></a> <a href="https://ruby.social/tags/RailsConf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RailsConf</span></a> <a href="https://ruby.social/tags/RailsConf2025" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RailsConf2025</span></a> <a href="https://ruby.social/tags/Architecture" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Architecture</span></a> <a href="https://ruby.social/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareEngineering</span></a></p>
James Smith 💾<p><a href="https://mastodon.me.uk/tags/Rails" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rails</span></a> question: does anyone know if you can enable/disable (and even install?) Rails Engines at runtime, to behave as some sort of dynamic application extension plugin system? I'm wondering about having a way to enable optional features for <span class="h-card" translate="no"><a href="https://3dp.chat/@manyfold" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>manyfold</span></a></span>...</p>
Continued thread

It's also become clear to me that legacy #programming organizations by and large are wildly unprepared to serve your best interests by standing up to Big Tech, because duh, they are *funded* by Big Tech. Is an org sponsored by Shopify going to protect you from the harms perpetuated by Shopify? Lol, nope.

Open source also won't save you. In many ways, it created the problem.

We need *entirely new cooperatives*, based on real ethical principles and not crony capitalism.

Welp, #Ruby just can't quit #Rails. Or the corporate sponsorship dollars which are totally "ick" you might say.

The problem with niche markets—like Ruby—is if you don't stand on moral principles and core values, uh, what is the actual point? I can just pivot to TypeScript and be in the programming mainstream, messy and regularly unethical as it is.

Ruby as a community has lost all appeal. MINASWAN is nostalgia, not present reality. You can have your DHH and your AI!

I'll have no part of it. 👋

Also, important PSA if you're working with #Rails, (and this may actually be a #Ruby thing, or maybe a #PostgreSQL thing, or combination):

I was trying to run a seeds.rb file to load data into my test env db. That script references an external (local) file with a bunch of items, each line being correctly formed data for an ltree path.

I kept getting errors on line one. I tried a bunch of things, and none worked.

Turns out my text file had a UTF-8 BOM, and script no likey.

3+h of madness.

New blog post: how we made more efficient use of a web app's database for a substantial performance boost 🚀 blog.pablobm.com/2025/05/28/ba

In short:
1. Group together sequential `INSERT` statements to the same table.
2. Temporarily store large blobs of data in #Redis or similar, if storing in a relational database is only useful later and only in certain events.

There, that's the meat of the article. I saved you having to read it 😅

The specific stack was #Ruby #Rails #Postgres, but the technique was mostly technology-independent.

(And because we have now come to this: no "AI" was used at any point in the writing of this article 🙄).

blog.pablobm.comBatch and delay DB writes to improve app performance
More from Pablo Brasero

Labor is the most expensive part of repairs.

The Repair App we're working on depends on being low cost because repairs are already too expensive.

Now that #rails v8 has folded caching, queueing and pub/sub into the db and removed the need for redis, my favorite framework is even easier.

That's one less resource demanding compute and one less dependency demanding attention when stuff starts breaking.

therepair.app

therepair.appThe Repair App