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.
Private & Protected: a matter of Message
As a Ruby method is, behind the scene, a message handler associated with a block of instructions that returns an object, the private and protected policies are strongly correlated with the Ruby message concept.. see more
More yield_self awesomeness
The second yield_self-praising blogpost investigates some approaches to code that the new method brings. And also proposes better name for the method :)
Code editors for Mac
I am currently developing with Ruby on Rails, and my favorite editor is TextMate 2. In this article, I will explain my reasons for this by comparing it with other well-known editors: Sublime Text 3, Atom, Visual Studio Code and Brackets.
Method Driven Development with the new 'interesting_methods' gem
I’ve created a new gem called interesting_methods that gemifies what some developers already do (add an interesting_methods method to all their objects).
http://smallcity.ca/2018/03/23/interesting-methods-gem.html [more inside]
webpacker & less & Semantic UI Theming
Some copy&paste instructions on how to make less and semantic ui theming work nicely with webpacker.
Bitcat - Bit catalog browser for digital bit(s) collections eg (crypto) kitties etc.
Hello, I’ve put together - bitcat - a little sinatra web app / server in ruby packaged up as a command line tool that lets you browse your digital bits(s) eg. crypto kitties and friends unchained (offline) using a single-file SQLite database eg. kitties.db. Note: Bitcat includes the gene reader from copycats in base32/kai notation and more. Happy collecting. Cheers.
RVM Gemset as a Freelancer
As a Ruby on Rails Freelancer since few years now, I have been worked in a bunch of projects. For each mission, the environment setup is very important as I’ve to be efficient quickly. This is where RVM Gemsets are important.. see more
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:
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:
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.
I just open sourced 30min of my work on github
Discover the schema and unique values of an XML file you need to parse
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?