Stef's Avatar

Stef

@stefhdj

Rubyist, dad, whiskey lover

23
Followers
200
Following
10
Posts
28.10.2024
Joined
Posts Following

Latest posts by Stef @stefhdj

I have been using it for the last week. And it works great. The problem is that cursor ignores the links inside rules. I have to yell at him and explicitly tell him to reread the file before he gets it :(

should i just remove the link and c/p the contents of ~/.agent-os directly in .cursor/rules?

13.08.2025 12:11 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

TIL: You can use #ruby pattern matching on Time. Comes in handy if you have to check if there's an important conference happening today! πŸ€”

19.03.2025 14:28 πŸ‘ 24 πŸ” 8 πŸ’¬ 4 πŸ“Œ 0
Preview
Introducing the RSpec monorepo, and some updates on the future of RSpec.

Exciting to see that we're finally moving towards a new version of RSpec. I assume we've all been living with those settings in our spec_helpers that say "this will be the default in RSpec 4". Can't wait to delete those.

11.03.2025 20:11 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

I believe that app/models should really be just for defining bare minimum of a model.
Validations that are in the database, and callbacks which do not have side effects.
Everything else should live in form objects or even better in your domain models.

10.03.2025 05:46 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

This!
But have not found a good enough alternative for our company. Introduced pubsub, but no one is using it.
There are just too many places a user can be created (via API call, via import, via indirect webhooks...) and all are using app/models/user.rb class in one way or the other.

10.03.2025 05:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0
The Mythical IO-Bound Rails App When the topic of Rails performance comes up, it is commonplace to hear that the database is the bottleneck, so Rails applications are IO-bound anyway, hence Ruby performance doesn’t matter that much,...

I want to write a post about Pitchfork, but before I can get to that I need to share some thoughts.

I suspect this one may be more controversial than the optimizing JSON series πŸ˜….

byroot.github.io/ruby/perform...

23.01.2025 11:48 πŸ‘ 59 πŸ” 22 πŸ’¬ 4 πŸ“Œ 1
Optimizing Ruby’s JSON, Part 7 In the previous post, we started covering some parser optimizations. There’s just a handful more to cover until we reached what’s the state of the currently released version of ruby/json.

It is done, I finally concluded the ruby/json optimization series.

I hope you enjoyed it: byroot.github.io/ruby/json/20...

14.01.2025 21:50 πŸ‘ 76 πŸ” 15 πŸ’¬ 5 πŸ“Œ 2
Preview
call.rb GitHub Gist: instantly share code, notes, and snippets.

gist.github.com/byroot/780c1...

14.01.2025 07:28 πŸ‘ 5 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Preview
Release RuboCop 1.70 Β· rubocop/rubocop New features #13474: Add new Style/ItAssignment cop to detect local assignments to it inside blocks. (@dvandersluis) #11013: Add new Lint/SharedMutableDefault cop to alert on mutable Hash defaults...

RuboCop's first release for 2025 is now out and it's huge! Version 1.70 brings a lot of bug-fixes and small improvements here and there, most notably improved integration with Shopify's ruby-lsp. Check out the release notes for more details github.com/rubocop/rubo...

Enjoy!

10.01.2025 07:51 πŸ‘ 22 πŸ” 6 πŸ’¬ 0 πŸ“Œ 0

Docker and expose port to localhost.
Homebrew tends to install latest versions and overwrite the data we already have.
With docker you can set your own data paths and have multiple different versions for different apps

09.01.2025 08:14 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Rails 8 Unpacked is finally live! 9 videos on the latest and greatest from Rails 8! Check it out here

youtube.com/playlist?lis...

14.12.2024 02:11 πŸ‘ 18 πŸ” 6 πŸ’¬ 2 πŸ“Œ 2
RubyConf 2024 talks on RubyVideo.dev

RubyConf 2024 talks on RubyVideo.dev

RubyConf 2024 talks are live on @rubyvideo.dev! πŸ₯³

13.12.2024 18:16 πŸ‘ 39 πŸ” 9 πŸ’¬ 2 πŸ“Œ 0
Preview
GitHub - jhawthorn/discard: πŸƒπŸ—‘ Soft deletes for ActiveRecord done right πŸƒπŸ—‘ Soft deletes for ActiveRecord done right. Contribute to jhawthorn/discard development by creating an account on GitHub.

I suggest you take alook at github.com/jhawthorn/di... because default_scope is evil

08.12.2024 08:33 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

You can take this a step further by putting a `binding.pry/irb` in some local gem source. Run your own code. See when it hits. Poke around a bit.

05.12.2024 16:20 πŸ‘ 2 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Speeding up Ruby by rewriting C… in Ruby There is a recent language comparison repo which has been getting shared a lot. In it, CRuby was the third slowest option, only beating out R and Python. The repo author, @BenjDicken, created a fun vi...

I dug into CRuby and YJIT to better understand a recent, popular synthetic benchmark run against various languages. It was alot of fun to investigate how YJIT and CRuby work together!
jpcamara.com/2024/12/01/s...
@k0kubun.com @timtilberg.bsky.social

04.12.2024 12:53 πŸ‘ 32 πŸ” 10 πŸ’¬ 6 πŸ“Œ 2
Post image

Trying #gleam for #adventofcode this year. Figured i need a quick debug loop within neovim. Found github.com/stevearc/ove... that does the job! Solutions repository github.com/d4be4st/adve...

03.12.2024 17:09 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
1Password joins the Rails Foundation: Strengthening the community, empowering developers | 1Password 1Password is joining the Rails Foundation as a core member. Learn more about the announcement and what it means for Kolide and other 1Password products.

1Password has joined the Rails Foundation.

"1Password is joining the Rails Foundation for three reasons: Rails is where the future is, Rails is where the community is, and Rails is where the challenge is."

blog.1password.com/1password-jo...

02.12.2024 22:26 πŸ‘ 49 πŸ” 11 πŸ’¬ 1 πŸ“Œ 0

Just to test it. Did some exercism challenges with it. Requires some new perspectives and it does not have `if` statemens!

02.12.2024 15:15 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Will try gleam this year

02.12.2024 06:06 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

TIL that instead of going:

`git reset --hard HEAD~3`, for example, you could just do:

`git reset --hard HEAD^^^` and so on

How did I not know about this before #buildinpublic?!?! 🀯

(β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻

29.11.2024 11:26 πŸ‘ 110 πŸ” 2 πŸ’¬ 18 πŸ“Œ 0
Preview
Rails World 2025: Save the date - September 4 & 5, Amsterdam Mark your calendars: Rails World 2025 will take place September 4 and 5, 2025, again in Amsterdam. The same venue, the same city, and good news - this time we will release more tickets.

Save the date! #RailsWorld 2025 is September 4th and 5th in Amsterdam. rubyonrails.org/2024/11/27/r...

27.11.2024 19:26 πŸ‘ 23 πŸ” 6 πŸ’¬ 2 πŸ“Œ 1

I belive it is destined

24.11.2024 12:20 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
a bald man wearing a red sweater with a star trek logo on his chest ALT: a bald man wearing a red sweater with a star trek logo on his chest

Just bought a fan for Raspberry pi 5, and 3d printed the case.
I have a raspberry pi 4...

24.11.2024 10:12 πŸ‘ 1 πŸ” 0 πŸ’¬ 3 πŸ“Œ 0