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.
DIY Call Tree visualization
This is the fourth part of the DIY CPU Profiler blog series from Codemancers, the folks behind Rbkit Ruby profiler. This part is about how to use graphviz for visualizing call trees.
Vienna.html - Europe's 1st Jekyll (Static Site) User Group - Start Your Own City.html
Hello, still a little early - if you happen to be in Central Europe - I’m starting up Europe’s first Jekyll User Group in Vienna, Austria. The group name is Vienna.html in honor of the static nature of a Jekyll site. Missing out? No worries - why not start you own YourCity.hmtl group. If you’re interested in all things “Static is the new Dynamic “ follow along on Twitter @viennahtml. Join us. No database required. Cheers.
Just Learn Rails (Part 2)
In a previous post I explained how “just learning Rails” is not as straight forward as the phrase portrays. Even the novice programmer who learns Ruby on Rails in a methodical progression may still run into hardship. However, this is not entirely the fault of young programmer, he or she was simply enabled into bad habits. Ruby on Rails enables the complete disregard of encapsulation.
The Best of RailsConf 2015
I went through the 94 presentations from RailsConf 2015 and found the best of the best (IMHO). Here are videos of my 8 favorite talks, including a nice mix of general interest, in-depth Rails, and JavaScript-heavy topics. I decided to skip the keynotes in order to surface some of the presentations that maybe you haven’t seen yet. Enjoy!
High Performance Caching with Readthis
Discover how existing libraries and continual performance benchmarks shaped Readthis, a Redis backed ActiveSupport compliant cache. http://sorentwo.com/2015/07/20/high-performance-caching-with-readthis.html
Logging local & instance variables when exceptions occur in Ruby
With hard-to-reproduce bugs, it can be really handy to log all of the local and instance variables along with the exception. This post shows you how. Along the way we’ll introduce Ruby’s binding system as well as the binding_of_caller gem - a powerful tool for introspection. http://blog.honeybadger.io/log-local-variables-and-instance-variables-when-exceptions-occur-in-ruby/
Start Writing your API's with Rails
With the popularity of Javascript frameworks and the move to cross platform development, Now is a good time to start writing your green-field applications with an API first mindset. [more inside]
An in-depth post on Gemfiles
What is a Gemfile aims to take new Ruby developers through what is available to them when writing a Gemfile. [more inside]
RMagick - A year later
A summary of RMagick project development since it was forked a year ago. [more inside]
An Exercise in Implementing Pattern Matching in Ruby
Here’s a post about attempt to implementing Haskell-strength pattern matching in Ruby, which will be looking natural and Rubyish. Also there’s some pragmatic conclusions on adoption of such a “core language” features.
Introducing TestChanges gem
TestChanges is a light-weight gem for testing only the files that have changed since a given commit. You tell it what your test tool is, what files to watch, and what tests to run. It’s similar to guard, except that you have to run it manually and the configuration format is YAML. [more inside]
Symbolized Hash with indifferent access.
Symbolized provides a Hash with indifferent access, but with keys stored internally as symbols. Useful when you have a lot of hashes with the same keys, and it may become inefficient to keep all these identical keys as strings. A good use case is data processing pipelines.
Decoupling Ruby Applications with Amazon SNS & SQS
I’m excited to publish two new gems, “circuitry” and “circuitry-middleware”, which provide simple pub/sub through AWS services. Great for building out your service oriented architecture. http://engineering.kapost.com/2015/07/decoupling-ruby-applications-with-amazon-sns-sqs/
Getting started with Rails 5's ActionCable and websockets
In this post, we will use ActionCable to build a simple chat app, where people can pick a username and start posting to a public chatroom. http://nithinbekal.com/posts/rails-action-cable/
A Rusting Rubyist
The first three posts in my series on implementing an embeddable rustlang lib in a Ruby module. [more inside]
Testing "shape" of data and nested data structures
When testing code that integrates with DBs and JSON APIs I often don’t really care about attributes like id, created_at but still have to assert on them, or filter them out. See a different way: http://wojtekmach.pl/blog/2015/07/17/testing-shape-of-data/
Broad Modules in ruby
Broad modules are any that step outside a single namespace. Be those modules small or large is a secondary concern. Here is a comparison of import mechanisms from other languages and advice on keeping libraries narrow.
Keep your data types in check! Rails compatible validator to assert types.
No one is particularly fond of littering their code with trys and is_a?s. To remedy this, I make my models assert confidence that the data in my database is what I expect. I’m not talking about type coercion, type casting or any other munging of types that might happen on a typical read/write from your handy dandy ORM of choice. No no, this is the real deal, the bees knees, the elbows of a gazelle: actual type validation.
jekyll-book-theme - Static Site Theme for World (Literature) Classics e.g. The Trial
Hello, I’ve put together a new static site theme for world (literature) classics (e.g. A Tale of Two Cities, The Trial, etc.). See a live version (demo) for Strange Case of Dr. Jekyll and Mr. Hyde by Robert Louis Stevenson and the ready-to-fork /jekyll-book-theme github repo @ Dr. Jekyll’s Themes site. Happy reading (and forking). Cheers.
Technologies used for backend development
Backend development is centered in building the architecture that supports a web application, using a diverse range of languages and systems. Once you choose the language you like most, you will usually need to choose a web framework as well. And besides this, you have a wide range of databases, search engines and queue systems to choose from. http://davidmles.com/blog/backend-technologies/
ImageInfo - A Ruby gem that fetch web images metadata concurrently
ImageInfo finds the size and type of a single or multiple images from the web by fetching as little as needed in batches. It uses Typhoeus under the hood to get images metadata as fast as possible. Built to improve LinkThumbnailer performance on site with many images.
What is REST API ?
REST (REpresentational State Transfer) is a simple architecture that runs over HTTPS or TLS. The REST style emphasizes that interactions between clients and services are enhanced by having a limited number of operations. To read full article, take a look at RailsCarma Blog
Deep copying objects in Ruby
Deep copying is a topic that always appear when I’m working with junior developers, which is why I decided to write about a very simple technique for common objects. http://onox.com.br/deep-copying-objects-in-ruby/
Hello, Pluto - A Ruby Gem That Lets You Build Planets
To celebrate the successful flyby of Pluto by NASA’s new horizons spacecraft - allow me to highlight a little (unknown) Ruby gem named pluto - in honor of the (formerly) smallest planet. Try $ gem install pluto What’s it good for? Try $ pluto help Resulting in: [more inside]