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.
Testing Example Code In Your Jekyll Posts
I’d like my code examples to be as good as the real code that I write. Ideally, all code examples would have tests, which are run before the site is deployed, as part of a CI build process. And so, I created a Jekyll plugin to enable that workflow.
Event Sourcing made Simple
Event Sourcing is to data what Git is to code. We’ve implemented a minimal event sourcing framework at Kickstarter to power d.rip. It’s simple and it has made our life so much better! [more inside]
How To Transform Hash Values & Keys
In this video I explain how to transform the keys & values of a Ruby hash.
Make Jekyll (4.0) Better, Faster, ...! Yes, you can! »Now is a great time to... «
Hello, building (static) website, books, presentations, radio shows, and more with ruby? Let’s make jekyll 4.0 better, faster, ….! Yes, you can! To quote Olivia Hugger (@dog_awoo), the Jekyll Open Source Project Lead writes: »Now is a great time to finally take on the feature you’ve wanted to see in Jekyll for ages! Just open an issue or experiment with the code to get going!« Source: Jekyll 4.0 is on the Horizon! Happy jekylling with ruby and friends. Cheers. Prost.
Using singleton objects as default arguments in Ruby
Have you ever seen this technique? [more inside]
ApiStruct - API wrapper builder with response serialization
If you use lots of APIs on your project, you need to write lots of logic to standardize work with those APIs. Good news: we’ve created an ApiStruct gem that allows easily create API wrappers for your project. The gem works as a single configuration file and enables you to write not only RESTful actions.
RubyConf 2018 - November 13-15, 2018
Los angeles will be the site of theThe RubyConf 2018 Conference, hosted by the Millennium Biltmore Los Angeles Hotel. [more inside]
Direct & Secure Rails Client-side File Uploads to AWS S3 Buckets
Many Ruby on Rails apps use Amazon AWS S3 buckets for storing assets. When dealing with files uploaded by front-end web or mobile clients there are many factors you should consider to make the whole process secure and performant. In this blog post, I will describe common pitfalls and an optimal solution when it comes to handling client-side file uploads. [more inside]
Xf - Transform Functions - Tame Ruby collections
Tired of dealing with messes of JSON, deeply nested and arbitrarily keyed? Xf has your back. A play on Haskell lenses with a distinctly Ruby flavor. [more inside]
JSON Web Tokens once again
Here’s a few tips for using JWT in the wild
Ruby’s New Infinite Range Syntax: (0..)
Ruby 2.6 will be released with support for a new syntax denoting an endless, infinite range:
Get the profile information from Github, Twitter or Instagram without the API
Have you ever tried to pull the information from the social profile using given URL? Configuring the API access may be a time-consuming and difficult thing to do. On the other hand, scraping a profile may be not as easy as it seems to be. To solve that kind of problems I created the Hawker gem. READ MORE
Ruby 2.5.1 Rails 5.2 Bootstrap Heroku starter app
A starter application based on Ruby 2.5, Rails 5.2, Webpack 2, Yarn and Bootstrap 4, deployable on Heroku. Includes the following technologies: [more inside]
Two levels deep Service Objects
I personally prefer small classes, short, single purpose methods over the one big piece of code. Having said that I have to admit that this approach has a significant downside - methods are short quite often because internally they call other methods, which call other methods, which call other methods… Let’s look at another approach to writing your Service Objects
Working Effectively with Data Factories Using FactoryBot
Learn about patterns that can help you use factories more effectively with examples based on Ruby’s FactoryBot:
Using Webpacker in Ruby on Rails applications
Walkthrough on using ES6 in Ruby on Rails applications today with Webpacker: with Bootstrap, Turbolinks, fonts, and other images.
Linear regression in Ruby
want to get into machine learning? Follow along in this short post on how to implement linear regression in ruby. Expect some math, a few terminators and most importantly, ruby code:
Top 10 errors from 1000+ Ruby on Rails projects (and how to avoid them)
We’ve compiled a list of the top 10 errors from more than 1000 Ruby on Rails projects in production. We’re going to show you what causes them and how to prevent them from happening. If you avoid these “gotchas,” it’ll make you a better developer. [more inside]
Ruby's NameError has approximate knowledge of many things.
NameError is raised when you reference a constant or a variable which isn’t defined in the current context. See code examples and learn how Ruby 2.3+ helps you debug NameError.
The best code editors for remote pair programming
This article looks at the strengths and areas for improvement of some of the best code editors out there for collaborative work
Who’s responsible for the software we build?
Turns out running a company isn’t just about money, fame or even cool products and happy customers. We have a social responsibility towards our employees and society at large:
How To Create A Memory Leak in Ruby
There are a few articles out there about how to find memory leaks. But do you know what a memory leak looks like?
Running a Government Department on Ruby for over 12 Years - Jeremy Evans
Great talk from Jeremy Evans at Isle of Ruby this last week: