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.
I, Object! Demystifying the Ruby Object Ancestry
This post is adapted from an answer to a Stack Overflow question. Understanding the way Ruby handles message passing and method stashing is not always the most intuitive. Luckily, a new amazing explanation how Ruby Object Ancestry works has been written.
HTTPie, A CLI, cURL-like tool for humans
HTTPie provides a simple http command - the client side of the HTTP/1.1 protocol - which allows us to send HTTP requests using a simple and natural syntax and returns colorized output. The package implements the GET, POST, and HEAD operations of HTTP/1.1. Read more
Quik in Action - Sinatra Web App Quick Starter Template (Wizard) Script & Code Gen
Hello, I’ve put together a new quick starter template for Sinatra web apps using the quik machinery. Try: $ quik new sinatra or $ qk n sinatra. This will download and run the sinatra.rb quik starter wizard script. Resulting in a ready-to-use/run Sintatra app. Not your Sinatra template style? Add your own template/script. Cheers. Read more
Create parallel workflows with Rockflow
With rockflow you can define a workflow by writing small steps and executing them in a flow. (Yes even parallel execution but beware of thread safety)
Quik in Action - Gem Starter Template - Hoe Classic Edition - New Gem Code Generator
Hello, For the new qk/quik tool - the missing code generator for ruby - that lets you use quick starter wizard scripts and github-hosted code templates - I’ve put together a new
example that lets you generate new gems using the “classic” gem starter template from the hoe gem. Use $quik new gem-hoe to (auto-)generate a new gem that will use the gem-hoe.rb wizard script and the gem-starter-template-hoe repo. Not your gem style? Add/use your own script and template. Cheers.
Karafka – Ruby micro-framework for building Apache Kafka message-based applications
Karafka is a microframework used to simplify Apache Kafka based Ruby applications development. Up until now there was no Sinatra “like” framework to rapidly develop message based applications. Karafka goes beyond simple sending and receiving. It provides an environment to work with multiple topics and groups.
Lyon Gem 0.1.0 Released
A simple gem configuration gem to allow a gem user to configure gem specific variables. Lyon Gem . Please read the source code and provide any ideas on how to define a class method that can take a block in Ruby 2.2.3. The source code is less than 30 lines of code. Thanks!
Job search process for Programmers
An interview with Stepan Parunashvili, one of the youngest programmers at Facebook
Build your own middleware stack
I just released a new version of ruby-middleware. A tiny library to build middleware stack, for simple composition of decorator/chain of responsibility objects. Improving the readability and testability of data-transformation code.
Fixing That Mysterious Slow Request in Your Rails App
Even if your Rails app is humming along just fine most of the time, your users probably still occasionally experience painfully slow requests seemingly at random. While unexplained slowdowns can happen for many reasons, the most common root cause is excessive object allocations. Find out how you can fix it on the Skylight blog.
Rails and Ember Side by Side
Deploying Ember next to (not inside of) Rails
Variable hoisting in Ruby
Yesterday I published a very short article on variable hoisting in Ruby. Check it out.
Updated "case when and matcher classes"
Hello people, download my ruby book (I Love Ruby) here
Commanding Objects Toward Immutability
I wrote about how organizing objects and their behavior helped prepare my code for immutable objects
Lita 4.5 released
Version 4.5 of Lita, the Ruby ChatOps framework, has been released. Details of what is new and changed are available on the release page.
Scraping of Websites using Mechanize Gem
Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. The Mechanize library is used for automating interaction with websites. Mechanize gem automatically stores and sends cookies, follows redirects, and can follow links and submit forms. To read full article, go to RailsCarma Blog.
Exploring some Ruby string methods
It’s important to be able to manipulate Strings effectively in Ruby. In this article I explore a few of the different methods I used to format a phone number correctly.
Direct uploads to AWS S3 from the browser in your Rails app
Why do you need to submit user upload to the controller and then upload it to S3 from the backend, when you can upload the file directly to AWS S3?
Mixing code and data in Ruby with DATA and __END__
Did you know that Ruby provides a way for your script to use its own source file as a source of data? It’s a neat trick that can save you some time when writing one-off scripts and proofs of concept. Let’s check it out! http://blog.honeybadger.io/data-and-end-in-ruby/
Revisiting the "rails:update" task
Some notes on how to effectively use the rails:update rake task.
Delayed Job Worker Pooling
Need to run a pool of Delayed Job workers on a single machine like a Heroku PX dyno? We wrote a blog post exploring how we did this at Salsify and we released a corresponding gem.
Creating Rails Application Templates
Use Rails Application Templates to set up and structure your projects to your liking without wasting time with boilerplate code.
ROM 0.9.0 Released with new repository, model and mapper gems and new adapters!
You can read the announcement on the ROM blog