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.
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.
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. https://github.com/hopsoft/model_probe
Implementation of Proxy pattern in Ruby
In this article, I cover Proxy pattern and its types. We will implement each of them using Ruby: http://rubyblog.pro/2017/11/proxy-pattern
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! http://www.rubyguides.com/2017/11/sinatra-link-shortener/
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.
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. https://rossta.net/blog/from-sprockets-to-webpack.html
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]
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.
An unorthodox approach to Ruby performance profiling when everything else fails
I had to follow an unconventional approach to understand why and where our Ruby app is so slow, more here: https://blog.kollegorna.se/ruby-performance-profiling-an-unorthodox-approach-69c549e3293b [more inside]