Advertisement · 728 × 90

Posts by Jose Farias

Preview
Add Replicate provider by josefarias · Pull Request #435 · crmne/ruby_llm What this does This PR adds Replicate as a provider. Replicate may stand out from other providers in several areas: They don’t expose pricing via API (that I can tell). I’ve opted for not includin...

Working on adding Replicate support to RubyLLM

github.com/crmne/ruby_l...

6 months ago 3 0 0 0
Preview
RailsConf 2025 ideas — Attendees start here! · Issue #254 · josefarias/hotwire_combobox Welcome to our RailsConf 2025 Hack Space! Join me in contributing to HotwireCombobox at RailsConf day 2 (July 9th)! Location: Banquet Hall Hack Space Station: Teal Station Schedule Time: July 9th, ...

github.com/josefarias/h...

9 months ago 0 0 0 0
Screenshot of the GH issue linked in the thread. A list of ideas we could work on.

Screenshot of the GH issue linked in the thread. A list of ideas we could work on.

If you’re going to RailsConf next week and are interested in pairing on HotwireCombobox during day 2’s Hack Spaces—I’ve written up some ideas for what issues we could work on.

We can also work on whatever else, or just chat. Hit me up at the teal station from 10:00AM ~ 12:40PM.

9 months ago 3 0 1 0

Yeah I don’t mind this syntax 👌

1 year ago 1 0 0 0

Yeah I guess that also works! Too verbose for my taste though 😄. You’re not alone—someone else brought it up on _the other site_.

1 year ago 4 0 1 0

re: `protected` methods—there’s usually so few of them you can see the access modifier immediately anyway. But I’d consider them an edge case.

1 year ago 1 0 0 0

Indenting private methods tells you what the intended access policy is without having to orient yourself inside the class.

Specially useful when reviewing diffs and you’re not even shown the full context by default.

This is why it’s my preference in Ruby.

1 year ago 6 0 2 0

Oh no! Does it happen upon submitting the form, or when attempting to confirm the subscription?

1 year ago 0 0 1 0

Thanks for reading! Phoenix contexts are interesting. While they make it obvious where to put things, my opinion is in the end they’re unnecessary overhead in an object oriented codebase. They’re well suited for FP though. Might write more about that in the future. Good topic!

1 year ago 1 0 0 0
Advertisement

Mil gracias Julia! 😄

1 year ago 1 0 0 0

Thanks Stephan! Yeah I’ll probably add that soon. This is the reason I’ve avoided it:

bsky.app/profile/jose...

1 year ago 1 0 0 0

Wild! I actually did not know about this. And here I am reinventing the wheel. Thanks for sharing!

1 year ago 1 0 1 0

I’ve just added a mailing list form if you’re interested! Check out part 2 (just posted), it’s at the bottom of the post. Thanks for reading!

1 year ago 2 0 0 0

Right! I’d actually suggest putting it in models (even if more than one) over using service objects. But we’ll get to that further in the series.

I just published what that might look like in part 2. Thanks for reading!

1 year ago 1 0 0 0

RSS is a great idea, thanks Rosa!

I just wired up buttondown for a mailing list. Check out part 2 (just posted) if you’d like to sign up 😄

The reason I’ve avoided RSS/email before is I don’t want to make sure things look good there before posting 😅. But I might just link to my site instead.

1 year ago 2 0 1 1

Of course! That’s why I tried the service initially. No worries about what happened way back when. It was years ago. Just wired things up again and it seems to be working beautifully. Appreciate you offering!

1 year ago 2 0 0 0
Preview
Just Write English How to move logic out of your jobs and into your domain model.

Here’s post 2 in my Object-Oriented Rails series.

Post 1 argued business logic doesn’t belong in active jobs. But it lacked some code examples. Now we put pen to paper explaining how to move the logic into the model and out of your job.

Also, email newsletter is live!

jose.omg.lol/posts/just-w...

1 year ago 18 2 3 0

Nice!

1 year ago 0 0 0 0

I did try buttondown once but got turned off from it when my single test email landed in spam. I’ll give it another chance though. I probably just caught a temporary bug. Nbd.

Really just looking for something that’ll let me turn off open rate tracking and won’t sell my subscriber’s data.

1 year ago 2 0 2 0
Advertisement

Thanks a bunch Zack!

1 year ago 1 0 0 0

I really need to get on that 😅. Really I’m just avoiding having to choose a privacy-conscious mailing list provider. I don’t know of any offhand and researching seems like super dull work.

1 year ago 2 0 1 0

Right! Choosing between those `_at` columns and a model would be a great topic for one of these. Same goes for the many-to-many relationships. I’ll keep those in mind!

1 year ago 3 0 0 0
Preview
It’s none of their business Why business logic doesn’t belong in active jobs.

I’m kicking off a series of blog posts called "object-oriented Rails". First off — why business logic doesn’t belong in active jobs. Let me know what you think!

jose.omg.lol/posts/its-no...

1 year ago 26 3 4 0

Thanks Chris! I’m really excited about this 💪

1 year ago 1 0 0 0

After 2.5 years at 37signals I’m moving on to a new role as a Senior Software Engineer at Harvest. I start next week! 😄

1 year ago 24 0 3 0

Merry Christmas Chris!

1 year ago 1 0 0 0

It did! 😄

1 year ago 2 0 1 0
Two commit messages.
First one reads: "Unnecessary include". CI failed.
Second one reverts the first one. CI passes.

Two commit messages. First one reads: "Unnecessary include". CI failed. Second one reverts the first one. CI passes.

Guess it was necessary lol

1 year ago 27 0 1 0
Advertisement

Yes! I think a lambda would’ve been fine, too.

1 year ago 1 0 0 0

I think that important condition is fine to be implied as long as the context is at-hand (rarely is).

That said, I don’t feel particularly strong about the name of that method. I wouldn’t insist on it. Mostly trying to illustrate the main point that code can be context-aware and thus simpler.

1 year ago 0 0 0 0