profile

Fullstack Ruby

What’s Better Than DRY? DOEY! (Don’t Over-Exert Yourself)

Published about 2 years ago • 1 min read

Greetings, my fellow Rubyist! It's been a while! Getting back into the swing of things this year after the holiday break proved to be more challenging than I anticipated. But nevertheless, I am here and ready to talk shop.

I thought it might be worthwhile to switch gears a bit and write a philosophical post about a topic near and dear to my heart: less code. As many an experienced programmer will tell you, sometimes the amount of code you remove, or refrain from writing in the first place, is just as important as the code you contribute to a codebase. I explain in my article:

When I’m in my “flow state” as a programmer, what I’m constantly doing is finding ways to eliminate redundancies. This goes far beyond DRY (Don’t Repeat Yourself), which is a generally useful concept but typically only thought of as applying to small code blocks. “Hey, these few lines here are basically the same as these few lines over there. Let’s extract them out to a single function! Cool, cool.”
I find that application of DRY to be far less compelling than one where you can recognize that entire subsystems of your application as a whole can be made entirely redundant if you simply took the time to search for higher-level abstractions.

I am always on the lookout for these higher-level abstractions. By ensuring many of the lines of code in your application serve a broader purpose, rather than comprise part of merely a single chain of logic, you can get way more done with (ultimately) less. And the more you pivot from solely writing feature-facing code and wade into the waters of authoring libraries and frameworks, the more vital this skill becomes.

Anyway, I hope you enjoy this article, and please let me know what you think! Your feedback is much appreciated. –J

What’s Better Than DRY? DOEY! (Don’t Over-Exert Yourself)

Fullstack Ruby

The hip place to be for a groovy take on developing web apps using this plucky language.

Join 400 of your fellow Rubyists and receive fresh updates from our podcast & blog:

Read more from Fullstack Ruby

Hello Ruby friends! OK, so it's been a minute. 😅 Fullstack Ruby was on hiatus last year, and I delve into the some of the reasons why in my new blog post as well as another post on the Bridgetown website. (post link) But the TL;DR is I've found a way to thread the needle back to feeling pumped about working in Ruby and on Ruby-themed projects again—most specially around the Bridgetown ecosystem as well as Roda, Sequel, and Rodauth which are increasingly playing a role in my business to enable...

about 1 month ago • 1 min read

Hello Ruby friends! ✌🏼 I hope you had a lovely St. Patrick's Day ☘️ weekend…certainly much fun was had here in Portland, Oregon with plenty of bagpipes and beer to go around. But that's not why you're subscribed to this newsletter. So let's talk about Ruby! Signalize, a Ruby Port of Preact Signals I'm excited to announce a new gem called Signalize. It's a direct port of the JavaScript package called Signals, brought to us by the fine folks at Preact. As it says on the tin, Signalize provides...

about 1 year ago • 3 min read

Greetings fellow Rubyists & happy Friday! I've got a couple of exciting bits of news for you. Bridgetown, the Ruby-powered site generator & fullstack framework of which I am lead maintainer, just celebrated its v1.2 release. Some of the new features include a new plugin configuration format, slotted content for templates and components, easier access to front matter and site-wide data, and bunch of quality-of-life improvements to i18n, helpers, SSR, and more. But if you aren't already a user...

over 1 year ago • 1 min read
Share this post