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.
How to find records where column is not null or empty in Rails 4 or 5
This is a very typical usecase for some older apps which did not use NOT NULL. http://blog.arkency.com/rails-how-to-find-records-where-column-is-not-null-or-empty/
Implementation of PDF Streams and Filters in HexaPDF
Find out what PDF streams and filters are, how they are implemented in HexaPDF and why fibers play a big role: https://gettalong.org/blog/2017/pdf-filter-implementation-in-hexapdf-using-fibers.html
A very quick and short guide to using ActiveRecord outside Rails
It’s just a few lines but sometimes they come in handy - http://blog.arkency.com/how-to-connect-to-and-use-activerecord-outside-of-rails/
Versioning REST APIs: The Theory and Using Grape in Ruby
I took a stab at explaining what are the popular API versioning strategies, how to implement each of them and how the Grape gem provides these solutions out of the box. Read the article here.
Extracting a Method to It's Own Class
If you’re like me you like seeing real code examples of how others are doing things. This is a small example of how I extracted a method into it’s own class, the basics of what I looked for and the basic benefits I think I gained. See the Blog Post for more…
Deep dive into Cloud coding
Cloud Coding is a method of developing software on a remote VM. In this article I’ll give you some insight on benefits and the flow. [more inside]
A crazy idea: could we drop Symbols from Ruby?
Check it out: http://blog.arkency.com/could-we-drop-symbols-from-ruby/ especially if you’ve been hit too many times by the distinction as well.
FREE Online Ruby Conference - Matz and Uncle Bob speaking
FREE online Ruby conference. (That's right, no travel/hassle.) [more inside]
RubyData Workshops
New workshops on Data Processing are being scheduled by the RubyData community. [more inside]
On Bundler 2.0 compatibility
Bundler 2.0 will create lock files that are not backwards compatible. Let’s see why these changes have been introduced and what this means for users and tool makers.
Node JS vs Ruby on Rails. Which is the best for web development
The choice of technology is always the important thing. One of the latest discussions in the web community is dedicated to such technologies as Node.js and Ruby on Rails. In our Node.js vs Ruby on Rails research, we will shed some light on both technologies’ advantages and disadvantages in order to help facilitate your choice. https://activebridge.org/blog/node-js-vs-ruby-on-rails
EuRuKo 2017 talks shortlist
Last week I attended the 2017 European Ruby Conference in Budapest. Here is a shortlist of the talks I enjoyed the most and some thoughts on the conference in general. [more inside]
Real World Ruby apps
Real world Ruby apps and their open source codebases for developers to learn from. “Just Ruby”: no frameworks like Rails or Sinatra.
Hanami v1.1.0.beta2
Initial support for Hanami plugins, new database CLI command hanami db rollback, add error messages to params, bug fixes. http://hanamirb.org/blog/2017/10/03/announcing-hanami-110-beta2.html
Build an Image Downloader in Ruby
Learn how to use Nokogiri + RestClient to build an image downloader. https://www.rubyguides.com/2017/10/build-an-image-downloader/
Universal Feedparser Library / Gem Update - v2.1 Adds Attachments / Media Enclosures
Hello, The universal feedparser library / gem that reads web feeds in XML (RSS, Atom) and JSON (JSON Feed) and HTML (Microformats w/ h-entry, h-feed, etc.) now includes support for attachments / media enclosures (used for podcasts, for example). Happy publishing w/ web feeds. Cheers. Prost.
Rediscovering Modularity in Ruby
At this year’s RubyKaigi conference in Hiroshima, I introduced a concept I call the Module Builder Pattern. In this post I reflect on the importance of this pattern as an example of finding new in the old—and of the properties of Ruby that make this possible—rather than immediately reaching for new features to solve problems.
Mastering Ruby: Strings and Encodings
I’ve written a book all about strings and encodings in Ruby. Strings and encodings? A whole book? Take a moment to consider the types of Ruby objects you use the most. I’ll wager strings are at the top of that list. How much do you know about them? In the forward to the book, Richard Schneeman wrote, “It wasn’t until I came across this book that I realized how deep the string “rabbit hole” went.” [more inside]
One simple trick to make Event Sourcing click
Event Sourcing is like having two methods when previously there was one. There — I’ve said it. [more inside]
yield_self in Ruby 2.5
Ruby 2.5’s Object#yield_self method makes it possible to chain operations in a different way. [more inside]
Roguelytics: Free On-Page Analytics Platform Ruby Gem Released
My name is Rachel. I would love to introduce you to Roguelytics - real-time, on-page web analytics. [more inside]