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.
Learn how to get started with DynamoDB in Rails
Published an article explaining how to get started with DynamoDB in Rails Working with DynamoDB , which covers how to create tables, setup and choose indexes, popular use cases along with Batch operations and Conditional writes. [more inside]
The sacrifices we make to our health as programmers
Read this post on the short-term sacrifices that we make to our health as programmers that ultimately have long-term effects.
Rails Techniques: Using Polymorphic Associations
A polymorphic association is an Active Record association that can connect a model to multiple other models. Here’s how to implement polymorphic associations in Rails.
Batching – A powerful way to solve N+1 queries every Rubyist should know ☝️
I published the post about batching as a technique which helps avoid N+1 queries, existing battle-tested tools like Haskell Haxl and JavaScript DataLoader, and how similar approaches can be used in any Ruby code including RESTful APIs and GraphQL: https://engineering.universe.com/batching-a-powerful-way-to-solve-n-1-queries-every-rubyist-should-know-24e20c6e7b94
Yet another introduction to pundit gem
Security is an important aspect of application development. Two main components of security are Authentication (Who are you?) and Authorization (are you supposed to be here?). Authentication verifies the user’s identity while authorization verifies whether that user has access rights on certain resources to perform actions on them. [more inside]
Real time rails with Action Cable
A guide describing how Action Cable works in Ruby on Rails to enable Real time applications: https://www.icicletech.com/blog/real-time-rails-with-action-cable
Handle sidekiq processing when one job saturates your workers and the rest queue up
A list of potential solutions in a situation when one of your sidekiq jobs starts to misbehave and affects the whole system’s stability: http://blog.arkency.com/2017/07/sidekiq-slow-processing-one-job-saturates-workers-rest-queue-up/
Funding to maintain your open source libraries
Our company just launched which helps open source (gem) developers find money through sponsorships. We would love your feedback. https://github.com/codesponsor/dev
When to take a Rails deep dive
Have you ever found a Rails topic that didn’t make any sense to you? When you kind of know enough to get by, except you spend so much time fighting edge cases that you could have been an expert in it by the time you were done? That might mean it’s time for a deep dive.
RSpec addons for DRYer specs
saharspec is a newly released gem with a small but growing set of additional features for RSpec: some new matchers and its-style goodies.
Automating a redirect_to / flash cleanup
Some notes on automating a redirect_to / flash cleanup with synvert.
I Love Ruby has a permanent website
I Love Ruby Book now has a permanent website. You can get it here https://mindaslab.github.io/I-Love-Ruby/
APIQ Models and SEO extensions 1.0 releases
Following the APIQ CMS 1.0 release, recently the most useful extensions were updated as well. Learn what’s new: https://www.apiq.io/2017/08/14/apiq-models-and-seo-1.0-release/
How I got RSpec to load 50 times faster
RSpec load time is important in a TDD workflow. Here’s how I got mine to be lightning-fast. https://schwad.github.io/ruby/rails/testing/2017/08/14/50-times-faster-rspec-loading.html
[Screencast] Recurring Events with ice_cube
ice_cube is a ruby library for easily handling repeated events and schedules. https://www.driftingruby.com/episodes/recurring-events-with-ice_cube
That one time I used recursion to solve a problem in Ruby
Some time ago I was working on a problem and I could not find a satisfactory solution. But when I reminded myself about recursive functions, it got much easier. Read the code and images illustrating the problem
LangTool - easy localizations for developers
Released my web application https://langtool.tech on Ruby on Rails. It helps developers with free automatic localization for their projects. Just select file for localization, wait a few seconds and take translated one. Supported yml, xml, json, strings, resx types.
Enhanced Ruby on Rails Architecture
Hi, few days ago I wrote a small summary of advanced Rails architecture patterns that are going beyond standard Rails mvc: https://github.com/CodeRocketCo/enhanced-rails-architecture
Teaching an AI to play a simple game using Q-Learning
In this post I will walk you through how to teach a computer to master a simple video game using the q-learning reinforcement learning algorithm. We will implement the algorithm from scratch in Ruby without the use of external gems. Read more here: http://www.practicalai.io/teaching-ai-play-simple-game-using-q-learning/
Mobility 0.2: Now with Plugins
I’ve just released the second major version of Mobility, the Ruby pluggable translation framework I’ve been working on recently. In this blog post, I describe some of the new features: extensibility through a plugins structure, more configuration options, enumerability, and more.
Advanced Active Record
I’m working on a book about more advanced Active Record topics; please let me know if you’re interested or have thoughts on things to cover.
Fabrication vs FactoryGirl - Which is Faster?
A benchmark of Fabrication and FactoryGirl (+ charts): https://ksylvest.com/posts/2017-08-12/fabrication-vs-factorygirl
Results of the Code Quality Tools survey
Results of the survey regarding tools that Ruby developers use to keep the code in a good shape: http://rubyblog.pro/2017/08/results-of-the-code-quality-tools-survey?utm_source=rubyflow