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.
Measuring what matters with SimpleCov
100% test coverage is an admirable goal, but it’s not the only measure of an effective test suite. Here’s how I use SimpleCov to guide my Rails application development.
Ameba - a static code analysis tool for Crystal
Ameba is a static code analysis tool for the Crystal language heavily inspired by Rubocop. It enforces a consistent Crystal code style, also catches code smells and wrong code constructions.
RuboCop-based static code analyzer for enterprise Rails applications
After everyday PR code reviews, I tried to automate it as much as I can. When Rubocop is more about code style, Ducalis is aimed at application logic and follow-up code support. [more inside]
How to add React JS to your Ruby on Rails App with Webpacker!
This tutorial will guide you on how to create a Ruby on Rails application and add the power of webpacker and React JS to it. [more inside]
How Kajabi Got to a 10-minute CI Build for 100k Lines of Rails Code
Kajabi has a 10-minute CI build for 100k lines of Rails code. Find out how they run Rails tests in parallel with Semaphore Boosters: https://semaphoreci.com/blog/2018/03/21/kajabi-10-minute-rails-ci-build.html
How to win friends and open-source your software
Traveling Ruby, one of Phusion’s open source projects, gets a massive overhaul. Find out how to make your work pull request-ready: https://blog.phusion.nl/2018/03/21/how-to-win-friends-and-open-source-your-software/
Octopod Updated - Build Podcast / Radio Talk Show (Static) Websites 'n' Feeds
Hello, Thanks to Stephan Haslinger et al for pushing out a new update for Octopod that lets you publish / build (static) websites incl. feeds (in xml and json) for your podcasts and radio talk shows with Jekyll (and Ruby) and (structured) text in kramdown for your show notes etc. Find out more @ https://rubygems.org/gems/jekyll-octopod and https://jekyll-octopod.github.io. Happy publishing with Jekyll and friends (in ruby).
Ruby Object Model - Part 1
Ruby is a fully object-oriented programming language. But what does that really mean ? In this series of articles, we’ll try to demystify the Ruby Object Model.. see more
SOLID Principles #3 - Liskov Substitution Principle
Five-part series of blog posts about SOLID Principles. This one is about the third of them - Liskov Substitution Principle: [more inside]
3 things that slow down and make your RSpec tests worse
Find out why some of the RSpec matchers are bad and why you should avoid using FactoryGirl.build READ MORE
Interactive diagramming application for Rails
Hello, I created an open source project that helps people familiarize themselves with a new Rails database. I provided the link to the Github page below for anyone interested in reading more about the project or for anyone looking to contribute. Thanks! [more inside]
Microservices for Startups: An Interview with Christian Beegden and Stefan Zier of Su
Sumo Logic’s CTO and Chief Architect discuss their microservices driven approach to building one of the most powerful machine data analytics services in the world.
Inside @CryptoKitties geneScience.mixGenes - Sooper-Sekret Gene Mixing Formula
Hello, I converted the pseudo-code published by Sean Soria in
“CryptoKitties mixGenes Function” into a running (working) ruby script, that is, mixGenes.rb. Try: $ ruby ./mixGenes.rb to breed new kitties (with matron and sire) and mix the 256-bit (with 48 genes in 12 trait groups) genome. Happy CryptoKitties gene mixing in ruby. Cheers.
2 Quick Tips for IRB
IRB is a pretty handy tool to quickly manipulate code gist. But sometimes, it becomes a bit complicated to use. [more inside]
JSONify your Ruby Translations
PostgreSQL offers native column types for efficiently storing and retrieving JSON-formatted data. Although these types are a natural fit for model translations, most applications use separate tables for storing such data. In this post, I describe a new translation strategy for storing model translations on a single database column, implemented in the latest version of Mobility, a pluggable Ruby translation framework.
Toy Robot Simulator - A Ruby Gem Implementation for Learning Purposes
A few weeks ago, I created a basic Ruby gem implementation of the Toy Robot Simulator problem for learning purposes. It is a simulation of a “robot” moving on a square table of certain dimensions. The robot is free to roam around the surface of the table controlled by a limited set of commands but must not fall.
What's Your Hash Rate? Find out your Mining Speed w/ compute_hash_with_proof_of_work
Hello, I’ve added a couple of new chapters to the “Programming Blockchains Step-by-Step from Scratch (Zero)” and starting with (crypto) hashes… What’s News? Mining, mining, mining! What’s your hash rate? Let’s find out and use the “stand-alone” version of the by now “classic” compute_hash_with_proof_of_work function. Let’s try (run) benchmarks for the difficulty from 0 (4 bits) to 0000000 (28 bits)… On my “low-end” home computer the hash rate per second is… about 100 000. What’s yours?
Convert an ActiveRecord object into the fixture
Small but useful blog post on how to convert an ActiveRecord object into the fixture
How I've Built a Profitable Slack Bot as a Side Project in Rails
I’ve built a Slack bot in Ruby on Rails and it is profitable. In this blog post I will describe what I did and tools I used to create, promote and monetize a simple SAAS product. [more inside]
Ruby-Devscoop: issue #4
Avoid Short-Circuit Evaluation During OR/AND Expression.. see more
Differences Between Procs and Lambdas
lambdas are strict on argument number. If the call doesn’t respect the exact number of argument then an ArgumentError is raised.. see more
Installing Ruby and Rails on Windows (For RailsGirls)
Small guide on how to install ruby and rails for RailsGirls in 2018 Here
SOLID Principles #2 - Open/Closed Principle
Five-part series of blog posts about SOLID Principles. This one is about the second of them - Open/Closed Principle: [more inside]
SOLID Principles #1 - Single Responsibility Principle
Five-part series of blog posts about SOLID Principles. This one is about the first of them - Single Responsibility Principle: [more inside]