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.
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.
tulipmania - tulips on the blockchain; learn by example from the real world (a. 1637)
Hello, I’ve published a new ruby command line tool (and core library) called tulipmania. Let’s welcome tulips on the blockchain! Learn by example from the real world (anno 1637) - buy! sell! hodl! enjoy the beauty of admiral of admirals, semper augustus, and more; run your own hyper ledger tulip exchange nodes on the blockchain peer-to-peer over HTTP; revolutionize the world one block at a time. Cheers.
Ruby 2.5 - What's News? An Awesome Collection About Ruby 2.5 News
Hello, over at the Ruby Advent Calendar 2017 I’ve added a new page Ruby 2.5 - What’s News? that collects articles, posts & more about ruby 2.5 news bytes. Happy hacking with Ruby 2.5. Great to see (in benchmarks) that ruby 2.5 is running faster and faster and much more. Cheers.
New Features in Ruby 2.5.0
On this post, I’d like to do a quick rundown of the features that I’ve found most interesting. [more inside]
A Better Time with Rails url_helpers
This post compares calling Rails.application.routes.url_helpers directly vs. including it in a class. TL;DR calling it directly is pretty slow.
Clear your sidekiq queue when seeding your database
A quick tip on clearing your sidekiq queues when seeding your database: http://www.jvanbaarsen.com/blog/2017/12/28/clear-your-sidekiq-queue-when-seeding-your-database.html
Benchmarking Ruby 2.5.0, 2.4.3 and 2.3.6
I did a small real world benchmark last year before Ruby 2.4 came out - and since Ruby 2.5.0 is out now I expanded the benchmark to include it. Tl;dr: Ruby gets faster 😊
Writing C and Sharing Memory... in Ruby!
In this episode of “Doing terrible things in the name of science” we will look into how we can write C extensions for Ruby. This would be pretty harmless… so… we will look into sharing memory between two Ruby processes and two-way communication. Of course, this could be separate processes, separate forks, you name it! https://blog.rebased.pl/2017/12/27/writing-c-and-sharing-memory.html
Ruby 2.5.0 upgrade remarks
An article that describes what to expect during the upgrade and what errors you might encounter. Ruby 2.5.0 upgrade remarks
The aesthetics of Ruby - Kernel#itself method
Recently, I’ve had quite a popular problem to solve: count the occurences of the given item in a collection. There are few ways to solve this problem - starting from using Enumerable#inject or Enumerable#each_with_object with an empty hash as an accumulator value and writing a code looking like this: [more inside]