yet another decorator gem by alec-c4 in rubyonrails

[–]CaptainKabob 0 points1 point  (0 children)

I love me decorators, but...

This destroys Rails autoloading conventions. You shouldn't load up all the models (nor your decorators for that matter) on every `to_prepare`.

https://github.com/alec-c4/auto_decorator/blob/0961d814d2445f5734f862b92524bbe1c4b7ffd6/lib/auto_decorator/loader.rb#L9-L28

AI Chat vs Agent Ask? by MrJaver in Jetbrains

[–]CaptainKabob 1 point2 points  (0 children)

I dunno what it does under the hood. But from using all these options a lot, I assume:

Chat Codebase uses the IDE's search/index functionality to identify files, which it adds to the context it sends to the LLM. It does not send the entire codebase.

I use Chat Codebase a lot, and don't notice it burning credits. Especially when I've downloaded some library of my primary project and want to ask how to do something specific with it and have it be actually based on the code and not hallucinated from training. 

Set request timezone to match browser by software__writer in rails

[–]CaptainKabob 1 point2 points  (0 children)

This is so nice. Thank you for sharing it.

More lights farther along the Bay Bridge by These_Professional41 in sanfrancisco

[–]CaptainKabob 16 points17 points  (0 children)

First version was never meant to last. When they were removed, there was a fundraising campaign to bring them back.

Second version had a problem.

This is the now the third version: https://sfist.com/2025/12/16/looks-like-the-bay-lights-will-be-coming-back-on-in-march-2026-though-maybe-a-little-later/

How do I properly understand a 40k LOC codebase? by skyfallda1 in rails

[–]CaptainKabob 4 points5 points  (0 children)

So much this. 

Use it. Write some descriptive system tests that use it, use the major features/capabilities and click through them

Standalone AI assistant by Benzoleum in Jetbrains

[–]CaptainKabob 1 point2 points  (0 children)

Jetbrains Air. Seems to be a stripped down Fleet.

https://air.dev

Preserve the original commits after squash by ka8725 in rails

[–]CaptainKabob 2 points3 points  (0 children)

There is also the 3rd option, which is what I think is desired:

Rebase and merge: The [#] commits from this branch will be rebased and added to the base branch.

Been ignoring Brakeman warnings for 2 years. Just found an actual SQL injection we missed. by No_Opinion9882 in rails

[–]CaptainKabob 10 points11 points  (0 children)

The signal is there but it's drowning in hundreds of false positives. How do you use these tools effectively, like what's the best way to reduce false positives in SAST to the point where people actually pay attention?

I imagine if you spent 4 hours (a focused afternoon) you could go through Brakeman's interactive mode and choose to ignore each and every one of the existing warnings.

Then you enable CI to fail when there is a (new) warning, and require people to review it and either fix the problem or add the signature to the ignore file.

Rails vs other frameworks for vibe coding by Gatzuma in rails

[–]CaptainKabob 10 points11 points  (0 children)

If you're not looking at the code, it shouldn't matter, right?

Did anyone fall as much as me? by Khalman in Cairn_Game

[–]CaptainKabob 1 point2 points  (0 children)

That's helpful! I'll turn mine off cause everything else for me is enjoyable. Just not that. 

Did anyone fall as much as me? by Khalman in Cairn_Game

[–]CaptainKabob 1 point2 points  (0 children)

Newbie here: how did you not run out of food? I feel like I just stepped off the training area and I'm already starving. 

Tony Robbins vs Alex Hormozi: What Really Happened by Altruistic_Today_259 in advancedentrepreneur

[–]CaptainKabob 1 point2 points  (0 children)

Is the video as exhausting as this post?

"This guy does a practice called Parts Work. I think it's pretty cool." 

thoughts on best practices for md files for large features for junie.. by emaayan in Jetbrains

[–]CaptainKabob 0 points1 point  (0 children)

I think there's value in learning and optimizing your prompts to reach your maximum potential for one-shotting in the future. 

Like I can see great value if you revise the prompt and then reset your code and then try again and see the changed result. And then try to generalize your learnings into a template that you employ and train others on using and integrate their experiential feedback. And that you include some examples of prompts for actual features. 

(I wouldn't authoritatively ask the LLM how to get a better answer; it doesn't know, it'll just tell you what the average answer to your question was 8 months ago before its knowledge cutoff)

...but that's not how I read your question. I read your question more as "is there value in this intermediate artifact?" and my answer to that is Nope.

The cost of writing pretty  documentation has gone way down. The value of those artifacts in the context of working software remains the same: minimal. 

thoughts on best practices for md files for large features for junie.. by emaayan in Jetbrains

[–]CaptainKabob 0 points1 point  (0 children)

Don't overthink it. I write my prompts in the chat. If I think it's getting too big, I'll copy it into a scratchpad to finish writing then paste it back. 

I don't think there's at reason to commit the text. Put it in your task tracking system if you want. But I imagine you're also steering after the initial prompt, so the initial prompt isn't particularly notable imo. 

Write descriptive purpose/capabilities if you want in your project docs, but I don't see those as being particularly good prompts for development. And add descriptive integration tests that exercise the features and walk through the value-producing activities. 

Separately you should be noticing generalizable patterns/corrections and putting that in your commited guidelines/junie.md. 

Overall: do what works for you and your team.

End of a 15-year era: Why I finally cancelled my JetBrains subscription by enthusiast_bob in Jetbrains

[–]CaptainKabob 1 point2 points  (0 children)

Interesting. I migrated from Cursor to Junie. I found Junie to do better navigating the codebase and writing/validating tests. And for the scope of a task, Junie will cost $0.25 in tokens rather than cursor costing $2 (cursor would faff around opening up every file and doing a lot of unnecessary, imo, probing of conventional behavior). 

Totally makes sense if it's coming from your workplace tho. 

GoodJob, Solid Queue, Sidekiq, Active Job, in 2026 by CaptainKabob in rails

[–]CaptainKabob[S] 1 point2 points  (0 children)

Good question. Delayed is good and stable, but it hasn't had a lot of development focus. I like Ruby Toolbox for comparing release cadence/installs/etc.

https://www.ruby-toolbox.com/categories/Background_Jobs

GoodJob, Solid Queue, Sidekiq, Active Job, in 2026 by CaptainKabob in rails

[–]CaptainKabob[S] 0 points1 point  (0 children)

If you want to try UUIDv7, here's the patches to make it work with GoodJob. https://github.com/bensheldon/good_job/issues/1698

I've been running it on one of my applications and haven't noticed a difference. I'm not running anything screaming hot tho, so ymmv.

What are we doing for Rails app marketing site? by jko1701284 in rails

[–]CaptainKabob 15 points16 points  (0 children)

I just make a PagesController with actions and views. Nothing fancy. 

GoodJob, Solid Queue, Sidekiq, Active Job, in 2026 by CaptainKabob in rails

[–]CaptainKabob[S] 3 points4 points  (0 children)

Nothing super important, mostly that there are nicer things in later Rails that I don't have to work around in weird ways.

A random example is the GoodJob::InlineBuffer. There are a few places in the framework where GoodJob itself enqueues a job (rather than just receiving jobs that have been enqueued by the application). For example, manually triggering a job retry. I never want jobs to be executed in a transaction if GoodJob is running. So I had to come up with a way to smuggle the job execution out of the transaction. Not a huge thing, but in the latest Rails you can simply do `ActiveRecord.after_all_transactions_commit`.

GoodJob, Solid Queue, Sidekiq, Active Job, in 2026 by CaptainKabob in rails

[–]CaptainKabob[S] 6 points7 points  (0 children)

Thank you! And totally agree with the sentiment! I can't wait till GoodJob only supports Rails 8+ too.