The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Yesterday
Organize your Ruby code using blocks
Real world refactoring example (after code review), where happy path is made obvious through block usage. https://medium.com/@apneadiving/organize-your-ruby-code-using-blocks-bf5902622c42
Catch Ruby errors before your users do
Monitor Ruby production errors in real-time and debug them in minutes, before users notice. Our open source Ruby SDK works with Rails, Sinatra, and more. Use this link and get one month free!
New Features, Methods & Improvements in Ruby 2.7
Ruby 2.7 is coming! Discover the most interesting changes in this new Ruby version & get ready for the update: https://www.rubyguides.com/2019/12/ruby-2-7-new-features/
Working Around ActiveRecord Callbacks
I just published an article over on my company’s site called Working Around ActiveRecord Callbacks. In it I talk a little bit about the issues with ActiveRecord callbacks and how they don’t scale well once your app grows beyond being a “simple CRUD app”. I got on to explain a useful technique for working around troublesome callbacks when you don’t have the resources to refactor them out into service classes or some other pattern.
ActiveWorkflow 0.9.6 released - Automation powered by software agents
You can now write your software agents in any programming language you like, including Ruby of course. An agent written in Python is given as an example. You can find full documentation for this feature at Remote Agent API.
Tap on your Ruby objects!
I just wrote a post to introduce some powerful features of the tapping_device gem and how you can use them to speed up the debugging process!
PyTorch made available for Rubyists
torch-rb, the new experimental LibTorch’s bindings for Ruby, is another step to make Ruby a viable solution for Deep Learning applications.
whatson gem / library incl. rubyconf command line tool powered by event.db
Hello, I’ve updated the rubyconf command line tool (that’s packaged up in the whatson gem / library)
and powered by event.db (that is, the eventdb gem / library). Use $ rubyconf
to print
out ongoing and upcoming ruby conferences & camps. Resulting in: [more inside]
Semaphore 2.0 now provides free CI/CD pipelines for open source organizations
Each open source organization receives unlimited CI/CD minutes for building public repositories on Linux, macOS or Docker. Read more →
Digging through the Ruby on Rails Whitepaper, 10 years later
10 years ago saw InfoEther publish a comprehensive white paper on Rails, a great ‘time capsule’. Check it out! https://dev.to/schwad/the-ruby-on-rails-whitepaper-past-rubies-288d