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.
Enough with leaked logic already
Sometimes Service Objects, while extremely useful, actually hurt your OOP design. Read more
Active Record DB Schema documentation
Using Active Record, the How and why to embed docs into your DB schema.
S6 Blank - Slideshow (S9) (Jekyll-Compatible) Template Pack Rebooted / Updated
Hello, I’ve rebooted the (default) S6 Blank (Jekyll-Compatible) Template Pack for the Slideshow (S9) command line tool (and library). What’s news? The S6 machinery has now an easy-to-extend microkernel (Bespoke.js-Compatible). Why not build / generate your next talks / slideshows from your notes written in plain text with markdown formatting conventions? Happy publishing with S6 & S9. Cheers.
Prometheus and Ruby: Embracing metrics as new tests
An article on why any developer should care about project metrics and production, including a HOWTO on making your Ruby application report to Prometheus. [more inside]
Some sugar for your ActiveRecord models
Schema introspection & generator style methods/rake tasks for your models. Also, be sure to check out the annotate gem.
Implementation of Proxy pattern in Ruby
In this article, I cover Proxy pattern and its types. We will implement each of them using Ruby:
Using paper_trail gem for data snapshots
I’ve never used paper_trail gem for data snapshots but decided to give it a try.
Flippin' Features at Runtime
From keeping track of a default instance to preloading all your features to the awesome sauce that is Flipper::Cloud, a new version of flipper is hot off the press and ready for use.
Build Your Own Link Shortener App with Ruby & Sinatra
Looking for a project to practice your Ruby skills? Let’s build one together!
Why Aren't We Using More Service Objects Already
Avdi Grimm recently wrote a post in which he lambastes the rise of service objects. As an advocate for service objects I was interested in reading about their shortcomings. I want to know the strengths and weaknesses of the tools I use. That’s not what I found. Instead, I found a post that simply contradicted my own experience. Read More
Computer Science for Everyone: the Basecs Podcast
Looking for accessible computer science resources to learn more about CS? Want to brush up on your CS concepts but don’t know where to start? Check out the basecs podcast, a fun, byte-sized, and beginner-friendly podcast based on a blog series.
On sustainable testing
This investigation of RSpec styles and practices also raises a question of sustainable tests, e.g. tests which would be maintained and update as the system grows.
Ruby Versions Used in Commercial Projects in 2017
Find out which Ruby versions are used for building real-world applications in 2017.
How we switched from Sprockets to Webpack
We recently added Webpack to our Rails 4.2 app using the new Webpacker gem. In this post, I’ll share some challenges and lessons we learned along the way.
An Introduction to Travis CI
Before you start in to our CI, one must understand what is CI and why the CI is going to help us the development and what is a DevOps. [more inside]
Partition and Conquer — PostgreSQL and Rails database partitioning
Here is a tale of database partitioning inspired by real events. We’ll learn how to break down a gigantic table that is slowing down your application in production—Ruby on Rails and PostgreSQL, in our case. Expect a step-by-step guide. [more inside]
WebSocket Director
Command line tool for testing websocket servers using scenarios.
Understanding the basic of functional programming with ruby
Learn some of the aspects of functional programing language with Ruby. And see how useful is to use it in your daily tasks.
DuckRails docker image available (v2.0.0)
DuckRails v2.0.0 docker image is now available at docker hub. The Dockerfile is available also in the project’s repo at GitHub.
Useful advice on how to approach writing tests in Rails (or any language/framework)
Frameworks, TDD, what to test/what not to test: What constitutes good testing in Rails?
Ruby's Exception Class (Rails rescues Exception how many times?)
Learn all about Ruby’s Exception class in this week’s Exceptional Creatures profile.