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.
Affect is a tiny Ruby gem providing a way to isolate and handle side-effects in your Ruby programs. It can make it easier to test your code, and provide a cleaner separation between your program logic and external entities such as I/O, databases, files etc. Affect is also useful for implementing dependency injection. Go read the docs.
A handy checklist to keep in mind when looking through your logs while developing a web application https://withatwist.dev/using-logs-to-power-up-your-rails-development-workflow.html
NiceHash creates hashes following certain patterns so your testing will be much easier. Parse and filter JSON. You can easily generate all the hashes you want following the criteria you specify. Many other features coming to Hash class like the methods ‘bury’ or select_key, access the keys like methods: my_hash.my_key.other_key. You will be able to generate thousands of different hashes just declaring one and test easily APIs based on JSON for example. Perfect to be used in test data factories https://github.com/MarioRuiz/nice_hash
Nick and Brittany join forces again for a catchup about Past Rubies, Brittany’s Google Pay implementation, and even get into Turbolinks! [more inside]
I was debugging HTTParty recently and found a little class. Took me some time to actually understand it. So I thought: “Why not share what I’ve found?” [more inside]
Over the last month, I’ve been experimenting with a code taken from a Ruby Refactoring kata called Tennis Game. I’m applying many different techniques to learn from the existing code and to shape a better code. Some of those refactorings are simple, like extracting paramater objects, some are bigger like turning code into data. [more inside]
Hello, I’ve updated the Ruby Conferences ‘n’ Camps in 2019 - What’s Upcoming? Calendar page @ Planet Ruby. What’s upcoming? The line-up includes: Thu-Fri Jul/25-27 (3d) - RubyConf Kenya @ Nairobi, Kenya ++ Fri+Sat Jul/26+27 (2d) - RubyConf Taiwan @ Taipei, Taiwan ++ Thu+Fri Aug/1+2 (2d) - Southeast Ruby @ Nashville, Tennessee, United States ++ Sat Aug/10 (1d) - Deccan RubyConf @ Pune, Maharashtra, India ++ Fri+Sat Sep/6+7 (2d) - RubyConf Thailand @ Bangkok, Thailand ++ Sat+Sun Sep/14+15 (2d) - Kyiv RubyC @ Kyiv, Ukraine ++ Fri+Sat Sep/20+21 (2d) - RubyConf Colombia @ Medellín, Colombia ++ Sun Sep/29 (1d) - RubyConf Indonesia @ Jakarta, Indonesia ++ Thu+Fri Oct/3+4 (2d) - Ancient City Ruby @ Jacksonville Beach, Florida, United States ++ Happy meeting up with rubyists in 2019. Cheers. Prost.
This week’s issue of Past Rubies features a classic Tenderlove talking speed, _why’s Shoes release, hidden Ruby bits, and Ruby on BELLS http://www.pastrubies.com/past_rubies/2
Find out about the benefits of using the Rails and React combo for a tech project: https://www.nopio.com/blog/when-to-use-rails-and-react/
Vladimir Dementyev (AnyCable, TestProf, ActionPolicy) from Evil Martians shares the cherished Docker config for working with Ruby/Rails apps in development and explains every single line of it.
Provides Slack notifications for with backtrace, raw SQL, time duration, etc. [more inside]
In this article, we’re going to explore the following topics: