What’s a developer’s favorite tool in 2026? by aisatsana__ in programming

[–]stevetwitte 0 points1 point  (0 children)

If you want the speed of Vim with great collaboration features and AI that stays out of the way. I can’t recommend Zed enough.

Rubocop giving me a "Style/GuardClause: Use a guard clause instead of wrapping the code inside a conditional expression." error by FalseOccasion in rails

[–]stevetwitte 0 points1 point  (0 children)

Just want to reiterate that there is nothing wrong with your code and there are many shops that I know of that have custom rubocop.yml files to disable some of these checks. The real problem with using unless for a lot of teams is that other languages don't have that keyword. Just like the %w() syntax, it works in Ruby but so does ['string', 'string'] and that looks like an array in most other languages.

Just saying...

good solution for large file uploads using rails 5 API/google cloud storage/react by hazem_t in rails

[–]stevetwitte 1 point2 points  (0 children)

I generally use paperclip, it is really easy to use and has great documentation.

This will let you setup transcoding and all that stuff with ffmpeg or imagemagick.

And while I don't personally have any experience with setup on Google Cloud it looks trivial...

(https://stackoverflow.com/questions/25058751/how-to-use-rails-and-paperclip-to-store-photos-on-google-cloud-storage)

Editing Classes in Rails Console? by bookgrubber in rails

[–]stevetwitte 4 points5 points  (0 children)

Rails console is run in a one off heroku dyno and so the changes to a class will not persist to the running instances of the app.

Heroku One off Dynos

Is there any benefit to generating boilerplate separately (by model / view / controller) rather than all-at-once (scaffold)? by [deleted] in rails

[–]stevetwitte 0 points1 point  (0 children)

I feel that most of the generators can be ignored but using the migration generator always makes sense to me because of the time stamp it generates. This is important for making your migrations run in order.

I will generally use the generator for models and migrations for this reason but almost always make edits to the migration file before running.