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.
The essence of queries encapsulation in a Rails model
Check what is the proper way of encapsulating queries in a Rails model - http://pdabrowski.com/blog/ruby-on-rails/encapsulating-queries-in-a-rails-model/
Rearmed-JS - A library inspired by Ruby to make your JS code readable & relaxing
While working with some basic constructs in Javascript, I always get choked up trying to do something that should have been a dead simple iteration method or string method in Ruby, yet it ends up being the most disgusting code ever. Well I have written a library Rearmed-JS that solves a large part of this problem by taking inspiration from Ruby. This library is a collection of helpful methods and monkey patches for Arrays, Objects, Numbers, and Strings that will make your code more relaxing and more readable by taking inspiration from Ruby. Works in the browser and NodeJS. https://github.com/westonganger/rearmed-js
Should You Always Start with a Monolith?
Should You Always Start with a Monolith? - Conventional wisdom says start with a monolith but are there exceptions? This article will help you choose the right path based on your own situation.
Gem Series ++ Web Services (HTTP JSON APIs) the Modern Micro Way - Free Book
Hello, I added another free (online) book to the Yuki & Moto bookshelf. Let’s welcome the second volume to the new Gem Series: Web Services (HTTP JSON APIs) the Modern Micro Way - almost-sinatra • webservice • worlddb • beerdb • sportdb • feedparser • json-next • feedtxt and more. Happy new year. Prosit 2018. Cheers.
Memery: a minimalistic gem for memoization
Memery is a new small Ruby gem based on Module.prepend feature. Check it out if you like to memoize method call results in your code.
Everything You Need to Know About Nil
Happy new year! Today I bring you a new article about NIL. What is it? Where does it come from? https://www.rubyguides.com/2018/01/ruby-nil/
Kafka on Rails: Using Kafka with Ruby on Rails - Getting started with Ruby a
Second part of my multi-part tutorial on building scalable systems with Ruby, Rails, Apache Kafka, Karafka and couple other tools. https://medium.com/@maciejmensfeld/kafka-on-rails-using-kafka-with-ruby-on-rails-part-2-getting-started-with-ruby-and-kafka-44535c6edb26
Navigating the Ruby Standard Library
Ruby’s standard library is divided into three parts: Default gems, bundled gems, and standard libraries which are no gems (yet). On stdgems.org, there is now a commented list of standard libraries not-yet-turned-gems in addition to the standard gems overview.
Gem Series ++ Ruby Project Automation & Database Documentation Tools - Free Book
Hello, I added another free (online) book to the Yuki & Moto bookshelf. Let’s welcome the new Gem Series. First volume: Project Automation & Database Documentation Tools - quik • hoe • schemadoc • erd • annotate • and more. Happy new year. Prosit 2018. Cheers.
2 Easy Ways to Check Code Coverage
If you find yourself reviewing code (your own or a teammate’s) you’ll probably want to know about the code coverage any changes. This post walks through a couple ways to easily find out which parts of changed code are covered.
5 Ways to Deal with Nil in Ruby
This article suggests some ways to prevent, or at least mitigate, the occurrence of nil values from causing problems.
awesomecode.io continuously improve your code readability
We release a new product today, Awesome Code, it improves your code readability by git push or sending pull requests, with one click or even fully automated. [more inside]
tty-prompt v0.14.0 with improved input editing
The newest release of tty-prompt fixes many issues with processing and editing input, which includes pasting long strings as input or content wrapping terminal width. The slider prompt also has new UI, configuration options and behaviour. Check it out if you’re building a shiny CLI tool! Happy New Year!
tty-reader - pure Ruby input reading of keypress, line and multilines
tty-reader is a pure Ruby library that provides a set of methods for processing keyboard input in character, line and multiline modes. In addition it maintains history of entered input with an ability to recall and re-edit those inputs and register to listen for keystroke events. Enjoy!
Programming Cryptocurrencies and Blockchains in Ruby - Free Online Book (in Beta)
Why not learn and build your own cryptos in 2018?! I’ve put together a new free (online) book: Programming Cryptocurrencies and Blockchains in Ruby (Beta / Rough Draft) @ Yuki & Moto Press Bookshelf. The book incl. merkle trees, central banks, shilling, crypto kitties & copycats and, of course, tulips (on the blockchain) :-) and more. Happy new year. Prosit 2018! Cheers.
simple-admin - rails engine for admin dashboards
simple-admin is an efficient and convenient framework for creating admin dashboards in an instant. Is a new way to customize you admin panel, demo.
Changes in Ruby 2.5 that I'm excited about
Every year on the Christmas Eve there’s a new Ruby release. This year it’s Ruby 2.5. While many blog posts are covering major features like yield_self, I wanted to bring your attention to something in the bottom of CHANGELOG, which I think deserves mention. http://iempire.ru/2017/12/26/ruby-2-5/
Ruby 3x3 - Ruby 3 Will Be 3 Times Faster (in 2020) - What's News?
Hello, over at the Ruby Advent Calendar 2017 I’ve added another new page Ruby 3x3 - Ruby 3 Will Be 3 Times Faster (in 2020) - What’s News? that collects news bytes, (optcarrot) benchmarks and more about Ruby 3x3. Ruby is getting faster and faster. Happy new year. Prosit 2018. Cheers.
Ruby Conferences (& Camps) in 2018 - What's Upcoming in 2018?
Hello, over at the Ruby Advent Calendar 2017 I’ve added a new page Ruby Conferences (& Camps) in 2018 - What’s Upcoming? that collects ruby events (incl. conferences, camps, and more). Happy meeting up with Rubyist around the world in 2018. Cheers. Prosit 2018.
Stimulus: A modest JavaScript framework that works with the HTML you already have
Stimulus pairs beautifully with Turbolinks to provide a complete solution for fast, compelling applications with a minimal amount of effort. https://github.com/stimulusjs/stimulus
Advanced Active Record
I’ve written a book digging into some of the more advanced Active Record topics. Lots of bits on scopes, joins, queries, migrations, Arel, code deep dives, association extensions, and much more. Enjoy! https://advancedactiverecord.com/
Rails system tests with RSpec
A quick guide on how to set up system specs (introduced in RSpec 3.7) and why system specs, based on Rails 5.1 system tests, are now recommended way over feature specs for full-stack application testing.