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.
How to build rock-solid Ruby on Rails apps with BDD
Learn best practices for building sustainable web apps with behavior-driven development: https://medium.freecodecamp.org/how-to-build-rock-solid-ruby-on-rails-apps-with-bdd-735de9319cc6
Microservices for Startups: An Interview with Isaac Mosquera of Armory
Isaac Mosquera, CTO at Armory, discusses how they use microservices to help software teams ship better software, faster while working on the open source deployment tool, Spinnaker.
SOLID Principles #5 - Dependency Inversion Principle
Five-part series of blog posts about SOLID Principles. This one is about the fifth of them - Dependency Inversion Principle: [more inside]
ActiveRecord performance: the N+1 queries antipattern
The N+1 queries problem is a common, but easy to spot, performance antipattern. This week in AppSignal Academy, we’ll learn what causes it (and why it’s called N+1), how to spot it and how to prevent it. [more inside]
Make your CI pipeline fast and awesome with Gitlab Container Registry
Do you want to use CI in your Rails project but struggle with setting it up? Or maybe you already use it but it’s too slow? This quick start guide will show you how to make it fast and awesome: https://blog.daftcode.pl/make-your-ci-pipeline-fast-and-awesome-with-gitlab-container-registry-41ef244d1ce6
Transform any Active Record query into the analytics hash
Chartable gem is a lightweight and database-level Ruby library to transform any Active Record query into the analytics hash ready for use with any chart library READ MORE
Taming Rails memory bloat
One simple ENV setting to halve your Sidekiq or Puma memory usage: MALLOC_ARENA_MAX=2 [more inside]
Microservices for Startups: An Interview with Khash Sajadi of Cloud66
“The value of containers comes from microservices, from breaking the application up into smaller pieces and imposing the disciplines that you need within your development team to roll this thing forward.” - Khash Sajadi of Cloud66 shares his experiences and more in this interview
RoleCore: A Rails engine provides essential industry of Role-based access control
RoleCore provides a way to abstraction roles and permissions that making building RBAC system more easier. [more inside]
Testing New Frameworks & Languages: How to Separate the Grain from the Chaff
As developers, we’re often over-enthusiastic about the new shit-hot trends in the industry: the newest javascript frameworks, bleeding-edge CI tools, or even new frameworks to use in your side-projects. It’s easy to end up with a clusterfuck of technologies & frameworks scattered in all the projects of a company, so you should develop a skill to continuously assess whether to adopt them in your company or not. [more inside]
The Results from the 2018 Rails Survey Are In!
The 2018 Rails Survey results are now live. You can see how many of your peers are using which versions of Rails, which gems are most beloved and most frustrating, and more. [more inside]
Simple way to use Paperclip with S3 and CloudFront!
A lot of people looks for instruction how to use Paperclip with S3 and CloudFront. In this post you can read about how to do it in very simple way!
Requiring a file or library in Ruby
In this article we’re going to explore the following topics:
How To Make Your Rails App International
https://blog.daftcode.pl/how-to-make-your-rails-app-international-b65404e1c7b6 – Creating an international application basically means displaying the same data in many languages. The beautiful world of ruby gems offers many options for achieving that goal. But which one will be the best choice for your project?
Testing Example Code In Your Jekyll Posts
I’d like my code examples to be as good as the real code that I write. Ideally, all code examples would have tests, which are run before the site is deployed, as part of a CI build process. And so, I created a Jekyll plugin to enable that workflow.
Event Sourcing made Simple
Event Sourcing is to data what Git is to code. We’ve implemented a minimal event sourcing framework at Kickstarter to power d.rip. It’s simple and it has made our life so much better! [more inside]
How To Transform Hash Values & Keys
In this video I explain how to transform the keys & values of a Ruby hash. https://www.youtube.com/watch?v=_a4Hpu590AI
Make Jekyll (4.0) Better, Faster, ...! Yes, you can! »Now is a great time to... «
Hello, building (static) website, books, presentations, radio shows, and more with ruby? Let’s make jekyll 4.0 better, faster, ….! Yes, you can! To quote Olivia Hugger (@dog_awoo), the Jekyll Open Source Project Lead writes: »Now is a great time to finally take on the feature you’ve wanted to see in Jekyll for ages! Just open an issue or experiment with the code to get going!« Source: Jekyll 4.0 is on the Horizon! Happy jekylling with ruby and friends. Cheers. Prost.
Using singleton objects as default arguments in Ruby
Have you ever seen this technique? [more inside]
ApiStruct - API wrapper builder with response serialization
If you use lots of APIs on your project, you need to write lots of logic to standardize work with those APIs. Good news: we’ve created an ApiStruct gem that allows easily create API wrappers for your project. The gem works as a single configuration file and enables you to write not only RESTful actions. https://rubygarage.org/blog/gem-for-api-wrapping
RubyConf 2018 - November 13-15, 2018
Los angeles will be the site of theThe RubyConf 2018 Conference, hosted by the Millennium Biltmore Los Angeles Hotel. [more inside]