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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
https://github.com/delonnewman/invokable Invokable 0.6.0 Brings an improved API for treating classes as curried functions that has now be included in the core module.
Programming for me is less about “getting it right” than “not getting it wrong”. To that end, I’ve documented and categorized the most common dumb mistakes I make, the idea being that awareness of these downfalls is transformed into a mental checklist of considerations for avoiding mistakes. [more inside]
Dig into the basics of design patterns and anti-patterns. https://blog.appsignal.com/2020/08/05/introduction-to-ruby-on-rails-patterns-and-anti-patterns.html
Code Review is one of the greatest tools we have as software developers to help us improve the quality of our code. It can be incredibly beneficial, but it can also be a source of pain, frustration, and overall, a waste of time instead of a time-saver. https://www.ombulabs.com/blog/best-practices/pull-requests/our-code-review-etiquette.html
Learn more how to send large files securely for free using ruby with firefox send. We evaluated couple of free services and finally chosen firefox sen. https://www.botreetechnologies.com/blog/securely-send-large-files-for-free-using-ruby-with-firefox-send
Few things are more frustrating than slow, flaky test suites. You’re ready to deploy, wait 20 minutes for CI to run, only to find that a test failure in code you’ve never touched is blocking you. You dig into the source and find the problem: an external API call. It works (slowly) most of the time. But sometimes the network glitches and it fails. What do you do? In this article, José Manuel shows us several techniques for removing external API dependencies from our tests. https://www.honeybadger.io/blog/ruby-external-api-test/
[1, 2, 3, 4] in [first, second, *other] # Puts 1, 2, [3, 4] into variables called first, second and other!
The behavior for autosplatting was inconsistent when an input is passed to procs with rest argument and keyword arguments vs when the same input is passed to procs with only rest argument. [more inside]
Check out new features in the render_async 2.1.7 version! [more inside]
Navigate the world of Webpacker and webpack on Rails with confidence using this collection of mental maps. https://rossta.net/blog/visual-guide-to-webpacker.html
First look at the upcoming Apple Silicon processor and what it will be like for us Ruby Developers. Honestly, I wish that it was a better experience. However, with macOS Big Sur being beta and the DTK not being the final consumer hardware, there’s still hope yet. https://www.driftingruby.com/episodes/apple-silicon-developer-transition-kit