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 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]
Checkout whats new in Ruby 2.5
https://blog.redpanthers.co/whats-new-ruby-2-5/ [more inside]
Day 25 - Ruby Advent Calendar'17: officetxt - The Writer's Command Line Tool Suite
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s wrap-up the series on the last Day 25 with officetxt - Write notes, articles, journals, presentations, websites, blogs, manuscripts, books & more; the free writer’s command line tool suite works w/ any text editor; uses future-proof text formats. Happy coding with Ruby 2.5! Cheers. Prost.
DuckRecord - ActiveRecord without DB to easy build virtual model
DuckRecord is a fork of ActiveRecord 5.0 and removed all Arel and DB-related things that aim to provide a powerful infrastructure for virtual model (a class which conforms ActiveModel’s protocol and not backed by a database),
DuckRecord also support embeds_one and embeds_many association just like Mongoid does. There’s a dynamic form app demo shows how virtual model pattern (with many my practice) with ActiveRecord’s serialize can introduce NoSQL experience to traditional Rails-stack app.
Day 24 - Ruby Advent Calendar'17: centralbank - Print Your Own Money / Cryptos
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 24 with centralbank - Print Your Own Money / Cryptocurrency.Run Your Own Federated Central Bank Nodes on the Blockchain Peer-to-Peer over HTTP. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too! Last chance.
Day 23 - Ruby Advent Calendar'17: beerdb - Serve Yourself Beer & Brewery Data in JSON
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 23 with beerdb - Serve Yourself an Irish Stout, Vienna Lager or Bamberger Rauchbier as JSON. Free home (computer) delivery with Sinatra-like webservice library and route matching with mustermann. Cheers, Prost, Kampai, Na zdravi, Salute, 乾杯, Skål, Egészségedre! PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Cryptos, Cryptos, Cryptos - New Awesome Crypto Page @ Planet Ruby - Contribs Welcome
Hello, I’ve started a new Awesome Crypto Page @ Planet Ruby that collects crypto goodies about cryptocurrencies and blockchains, public key infrastructure (pki), merkle trees and more. Anything missing? Updates more than welcome :-). Cheers.
pry-larrify v1.0.3 released
Larry is a plugin for the Pry repl that measures the duration of code (and optionally, Pry commands!) you enter during a Pry session. No manual interaction required. The measurement of time is wall clock time. Almost everything about Larry is configurable.
Day 22 - Ruby Advent Calendar '17 - datapak - Work w/ Tabular Data Packages in SQLite
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 22 with datapak - Work with Tabular Data Packages (.CSV Files w/ datapackage.json) Using In-Memory SQLite (w/ ActiveRecord). All about open data, frictionless data, tabular data packages, core (open tabular) datasets and much more. Happy reading & querying. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 21 - Ruby Advent Calendar '17 - sportdb - Ready-to-Use Football Models & Readers
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 21 with sportdb - Read in Your Own Sport (Football) Datasets in (Structured) Text into any SQL Database (SQLite, PostgreSQL, …); Fire Up or Write Out (Static) HTTP JSON APIs and Much More. World Cup - English Premier League - Spanish La Liga - Austrian Bundesliga :-) and Much More. Happy reading & writing. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 20 - Ruby Advent Calendar '17 - eventdb - Build Your Own Live Calendars
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 20 with eventdb - Build your own what’s on / what’s up event calendars from (awesome) READMEs in (structured) text. Happy reading & writing. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Modern Front-end in Rails 3 (it's a wrap)
The last part of the tutorial on modern front-end in practices in Rails. Using Action Cable as npm package, deploying “Sprocketless” Rails application to Heroku. In a three-part beginner-friendly guide (Part 1, Part 2) we learned how to move away from Asset Pipeline, fully embrace Webpacker and organise front-end code around the idea of “components” using mostly built-in tools, without relying on external frameworks.
Ruby Conferences in 2018 - Updating Awesome Events @ Planet Ruby - Are We Dead Yet?
Hello, I’m updating the Awesome Events Page @ Planet Ruby that collects meetups, camps, (un)conferences and more. Anything missing? Updates more than welcome :-). Are we dead yet? Any conferences upcoming in 2018? Let us know. The first batch of updates gets added to the Ruby Advent Calendar 2017. Cheers. Prost.
Webinar today: Is Ruby dead? What's the future for Ruby?
Hey all, it’s Andrzej from Arkency [more inside]
Some of the most popular Ruby links of 2017
A round-up of Ruby highlights from the past year.
Counting Or Sorting By An Association In A Rails SQL Query
I was having issues writing a SQL query with GROUP BY so I wrote a blog post in order to dig deeper: Counting Or Sorting By An Association In A Rails SQL Query
Day 19 - Ruby Advent Calendar '17 - merkletree - Build your own crypto hash trees
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 19 with merkletree - Build your own crypto hash trees; grow your own money on trees. Happy (crypto) hashing & minting. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Lesson learned after trying functional programming (as a Ruby developer)
Ruby is all about Objects. But in this article we will have a look on how your Ruby and Ruby on Rails application team can benefit from more more functional flavor of programming. [more inside]
A general guide to upgrading Ruby in your Rails applications
In honor of the pending release of Ruby 2.5, I’ve written up the general approach I take to upgrading a Rails application’s Ruby version for Everyday Rails, including why to upgrade, when (and when not) to upgrade, and how to upgrade. Thanks for checking it out, and I hope you find it useful!
Introducing sequel_tools: Rake integration over Sequel migrations and related tasks
A few days ago I created the sequel_tools gem to make it easier to integrate Sequel migrations and related tasks to Rake. I’ve also written about the reasoning behind it in a two-sections article. The first section is very long and completely optional and I’d advise you to skip it unless you enjoy reading rants. The other section talks about the sequel_tools gem and its features and some reasoning behind some decisions.
Day 18 - Ruby Advent Calendar '17 - slideshow (s9) - Write your slides/talks in text
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 18 with slideshow (s9) - Write your slides / talks / presentations in (structured) text with formatting conventions in markdown - kramdown really ;-); build (static) webpages w/ (jekyll-compatible) theme packs incl. Reveal.js, Bespoke.js, Impress.js, and many more. Happy writing, publishing & talking. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!