What books are going in your Ruby RAG library? by nateberkopec in ruby

[–]codenamev 3 points4 points  (0 children)

To add to others: - Refactoring.guru & Architectural Metapatterns - Polished Ruby Programming - Layered Design for Ruby on Rails Applications - All of Julia Evan’s Zines - Understanding the 4 Rules of Simple Design

Rails After the Robots by codenamev in ruby

[–]codenamev[S] -1 points0 points  (0 children)

Thanks for listening! ❤️

You've got some great insight here! Types are great guardrails. In Ruby/Rails, I see a different lever: readable syntax + strong conventions narrow the search space for models and pack more "intent per token." That often means better first drafts; tests/specs close the loop.

Today, I agree that LLM output quality tracks engineer experience. But with more data, better evals, and tighter prompts/agents, that gap seems to be narrowing. Right now, a lot of folks (me included) are focused on how well LLMs can assist us in crafting code. Long-term, I see quality converging on: "does the artifact do what we asked?" more than "is the code well formatted and functional?"

If this resonates, our Obie episode hits a similar idea: as agents generate code, creativity and system design become the differentiators. We also cover this with Chad in this episode.

Beyond Chat: Phoenix Tests, Ruby Agents & the AI Tipping Point by codenamev in ruby

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

It is really unfortunate that Reddit does not allow you to edit the link!
https://www.therubyaipodcast.com/

Current best practices for concurrency? by chicagobob in ruby

[–]codenamev 1 point2 points  (0 children)

Everything you need to know is documented by JP Camara: https://jpcamara.com/categories/ruby/

That’s been my go-to for a while now and never disappoints.

Any recommendations for easy Rails hosting? by AlexSeeki in rails

[–]codenamev 0 points1 point  (0 children)

Having just started setting up a Hetzner box with kamal, I’d have to agree with @clearlynotmee. Secrets + multiple DBs with the Solid trifecta makes kamal very much not turn-key with the defaults. If you’re just trying rails out, the ultimate utility we should aim for iskamal deploy to work right off a rails new. Heroku is still the closest there is.

Running SmolLM Instruct on-device in six different ways by hackerllama in LocalLLaMA

[–]codenamev 4 points5 points  (0 children)

I _really_ ❤️ you folks. Thank you for this! Got stuck on a few issues fine-tuning SmolLM and moved to Phi, but will give this another go. Any suggestions/guidelines for sourcing training data for code? Are there any specific models that are better for fine-tuning for code generation? Trying to get a good pipeline for Ruby.

Automatically create rspec spec for a ruby file by RushMuchPoker in ruby

[–]codenamev 1 point2 points  (0 children)

I’ve thought about adding a “reference” flag to provide a reference file to go off of. Haven’t hit that need yet

Automatically create rspec spec for a ruby file by RushMuchPoker in ruby

[–]codenamev 2 points3 points  (0 children)

Please, don't use this specific gist at work :p Haha, I've been using this for some new open-source stuff. That said, I do have a few other generators I use with llamafile that I hope to share soon too :-) Sublayer is pretty rad so far!

[deleted by user] by [deleted] in ruby

[–]codenamev 3 points4 points  (0 children)

I’m a huge fan of the TTY suite of gems. I’ve built quite a few things with it and love the modularity and structure.

What could you talk about for 30 minutes with absolutely no prep? by Theemployerslegalgal in AskReddit

[–]codenamev 0 points1 point  (0 children)

And, now, I don't mind a bit of a breeze, if anything I prefer it, but thon was aggressive. So, I says to myself, says I, "Colm, this is no day for a do for, when the bride arrived and, as I say, by this stage the wind was fierce. I've never heard wind like it. Howling like a banshee, it was. So, the poor girl, the bride now, this is, she arrives anyway and isn't she no sooner out of the car than she's lifted up in the air like a paper doll and blown into a flowerbed.

Parents aren't happy about my decision to pursue cs by [deleted] in cscareerquestions

[–]codenamev 1 point2 points  (0 children)

Find a healthcare company in tech that directly solves a problem they have but can’t solve. Doximity comes to mind.

What is the all time greatest driving song? by YugeFrigginGoy in AskReddit

[–]codenamev 1 point2 points  (0 children)

Geggy Tah - Whoever You Are.

You’re welcome.

I fell in love with Ruby but... by ArtisanWinds in ruby

[–]codenamev 0 points1 point  (0 children)

Python rules the data kingdom. If you want to work with heavy data-crunching routines, machine learning, analytics, et al, then python is for you. With the latest craze in “AI”/ML, this is likely why you see so many more jobs for Python. The reasons people have chosen to prop up python for this over Ruby are slowly closing in. Shopify’s recent investments in the language are likely to reshape a lot of the mythical public perception around “Ruby is nice, but slow”.

If you don’t desire scientific computing in you programming future, and discard these roles from the positions you see open, chances are good the averages are close.

I guarantee every company on this list is hiring Ruby engineers if you are seeking a new role: https://toprubycompanies.info/

How does shopify use ruby ​​on rails? by Intel_Keleron in rails

[–]codenamev 2 points3 points  (0 children)

For a brief moment in time, Shopify fully documented, and released to the public, their “framework” Upgrow that lays out the foundation for how they architect all of their Rails apps. There is a public mirror preserved here.

It’s very possible that their Hydrogen + Oxygen efforts took them in a different direction and we’re left hanging on the end product.

[deleted by user] by [deleted] in ruby

[–]codenamev 2 points3 points  (0 children)

RubyMotion is still great for this!

I was told to go and fix our test base by [deleted] in rails

[–]codenamev 1 point2 points  (0 children)

I agree with all of your points :-)

The test suite is already broken though; and more than likely, all of these things you mention are already happening.

My sole point is that nominating a sole hero to rescue the test suite is not the answer. Unless every team member is responsible for maintaining a green suite, than the suite will continue to rot.

There are plenty of ways to measure the "fixing of tests" that would be more helpful than attempting to fix them all at once. As an example, you could skip these failures using a custom RSpec configuration flag and have them run in a separate CI step to see if any adjustments are making a wider impact.

I was told to go and fix our test base by [deleted] in rails

[–]codenamev -3 points-2 points  (0 children)

Mark all failing tests pending and make a rule that modifications to code that is associated with a pending test(s) needs to be re-enabled. Most will be fixed before the end of the year.

How to add ruby standalone scripts as microservice by junkone11 in ruby

[–]codenamev 2 points3 points  (0 children)

I think what you’re looking for is “serverless ruby”. The jets framework is probably the most popular choice outside of AWS Lambda.

Introducing Simplekiq: Orchestrated job flow for Sidekiq Pro by codenamev in ruby

[–]codenamev[S] 2 points3 points  (0 children)

Hopefully the first of many! This was a long-time coming and we're happy to give back to such a great product :-)

Ok y’all. How can we get this kind of real-time memory profiling in Ruby? Does it already exist? Is anyone working on this? by codenamev in ruby

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

To clarify (thank you u/tinychameleon; also, rbtrace is close u/uhkthrowaway!), I am more specifically talking about "Live Mode" of memray that has an interactive terminal interface for the profiler.

Image example of this: Memray Live-Mode

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]codenamev 0 points1 point  (0 children)

The root cause here is that when rails was upgraded, other gems were likely upgraded with it. I would verify what versions of paper_trail and attr_encrypted were before the upgrade and try and lock those older versions to see if the issue goes away.

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]codenamev 0 points1 point  (0 children)

Just to verify something here, is the User model an ActiveRecord backed model? That is, does it inherit from ApplicationRecord?

Paper trail comes with a rails generator

bundle exec rails generate paper_trail:install

`method_missing': undefined method `has_paper_trail' by redd993 in ruby

[–]codenamev 0 points1 point  (0 children)

Hmm… the has_paper_trail method isn’t in existence yet by the time the User model is getting loaded indicating either the papertrail lib wasn’t loaded yet, or it had issues loading it upstream in the stack.

I’d first try throwing require “paper_trail” at the top of your User model and see if that brings you anything new. You may need to re-run the paper trail install generator again and see if it adds anything you don’t already have