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.
Fast Kubernetes client library
Based on excon, uses persistent HTTP connections and request pipelining. https://github.com/kontena/k8s-client
[Screencast] Improving Partial Loading Performance
N+1 queries can make an application slow. Having queries called within views can also slow down an app as well as making it less extendable. https://www.driftingruby.com/episodes/improving-partial-loading-performance
Generator, Yielder and Lazy enumerators in Ruby
In this article we’re going to explore the following topics:
I’ve created a free full-length course about building Rubyflow.com clone
The app source is also available on Github. READ MORE
Fix non set locale in path helpets in RSpec test files
This filter hook set the default locale for the filtered examples to get the correct path helpers. [more inside]
The Case of the Flaky Test Suite
In this story, Jason Swett of The Ruby Testing Podcast discusses the pitfalls of external dependencies in your test suites, and how to avoid them on the Honeybadger blog.
Back to the primitive - testing with simplicity
Our tests (same as our code) needs to be maintained and clean. Therefore we often try to reuse parts of application in the tests. This may lead to several problems that we may get away with if we just tested the most primitive objects we can like “Strings, Integers” etc. [more inside]
Run only recently modified specs
https://github.com/igorkasyanchuk/rrr do you want to run only recently changed specs? Here is a simple wrapper over “rspec” command can simplify your life.
Keep your API in Shape with Blueprint and JSON-Matchers
Keeping your API, API documentation, and API tests all sync can be a daunting task, here I cover how to use API Blueprint and JSON-Matchers to ease the process. Keep your API in Shape with Blueprint and JSON-Matchers
Should you build or buy microservices?
Many developers want to build a microservice because they can, but should they? This article looks at the costs of building versus buying to help CTOs make thoughtful decisions
Passenger 5.3.4: fixes crash on startup for BSD
Version 5.3.4 of the Passenger app server for Ruby, Node.js, Meteor and Python has just been released. This release contains fixes for a bug that crashed Passenger on BSDs, as well as the handling of chunked bodies when PassengerBufferUploads is off. Release notes and installation instructions: https://blog.phusion.nl/2018/08/01/passenger-5-3-4/
Client-Side Validation Powered By ActiveRecord
How to expose validation logic from the server to power client-side validations: https://medium.com/@ccschmitz/client-side-validation-powered-by-activerecord-6d8c1fed4e6
Building a Testing Framework Similar to RSpec in Ruby
A guide to building and understanding a testing frameworks like RSpec [more inside]
Firefox needs some more RAM to run your Rails system tests
Just a quick remainer to increase memory limits for system tests.
Generating Random Numbers in Ruby
Random numbers are useful for a variety of purposes such as in gaming, encryption and building simulations. In this article, we’ll look at the various ways you can generate random numbers in Ruby. [more inside]
Trolling in Ruby - Implementing JavaScript-like Maths With Implicit Conversion Hijack
If you’ve ever worked with JavaScript, especially in pre-SPA/pre-frameworks era with just jQuery, you probably had a chance to see an “exotic” maths in action that looks similar to this: [more inside]
Using Rails Encrypted Credentials with Docker
A quick post on how to use rails credentials:edit when developing your Rails apps using Docker containers https://www.chrisblunt.com/rails-on-docker-rails-encrypted-secrets-with-docker/
ButterCMS vs WordPress: Why Choose Butter
Learn about the WordPress fallacies that lead people to use it as their default CMS experience and why Butter may actually be the ingredient you need.
Static site generator in 20 lines
Super short article about how and why would you want to build your own personal static site generator: http://masa331.github.io/new_posts/create_your_own_static_site_generator.html