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.
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.
Colorized SQL Log Backport for ActiveRecord
Why let Rails 5 have all the fun? This gem allows you to leverage this feature now. Compatible and tested for Rails 3.2 to 4.2. Happy logging!
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.
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.
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: Read more
Ruby value objects
Using ruby value objects for Domain Objects why talking in domain language is preferable to communication in the language of ruby constructs
How to Test Ruby Projects on Windows
As a gem author, it is easy to overlook that – gasp – some Rubyists use Windows. Does my gem even work on Windows? If I don’t regularly use Windows, how do I check? The good news is I found an easy (and free) way to set up Windows-based CI that does this check automatically. Here’s a quick tutorial.
A web server vs. an app server
When you research how to deploy your Rails app, you’ll see a lot of names: Apache, Unicorn, Puma, Phusion Passenger, Nginx, Rainbows, and many more. Some are “web servers,” and others are “app servers.” But what’s a web server, and how is it different than an app server? Can you use one without the other? And where does Rack fit in?
Ruby’s case statement – advanced techniques
Nothing could be simpler and more boring than the case statement. It’s a holdover from C. You use it to replace a bunch of ifs. Case closed. Or is it? Actually, case statements in Ruby are a lot richer and more complex than you might imagine. Let’s take a look. http://blog.honeybadger.io/rubys-case-statement-advanced-techniques/
Risk Management and the Development Process
While developing your product, you will encounter several risks that will impede progress and therefore result in lower throughput from your development team. Read more
Deploying a Crystal application to Heroku
Crystal is a typed, LLVM compiled language that reads (mostly) as Ruby. It’s a modern language that comes bundled with support for WebSockets, OAuth and other niceties. Read more
Dr. Jekyll’s Themes - (Yet Another) Static Site Theme Directory
Hello, I’ve put together (yet another) alternative Jekyll themes site called Dr. Jekyll’s Themes. The site is - of course - powered by Jekyll (using the “new” datafile machinery), see the Source @ GitHub. Questions? Comments? Welcome. Cheers.
Generational Garbage Collection in Python and Ruby
Pat Shaughnessy shows how Garbage Collection works differently in Ruby and Python. Read more
Running a Rails Development Environment in Docker
Use your Docker-based infrastructure for development, not just for running tests. Learn how to move simple Rails applications into Docker during development. Read more
Importing Data with ROM and Transproc
Here’s a blog post describing how you can import data to a relational database using Ruby Object Mapper and Transproc gems
Opal on Rails: Replacing CoffeeScript with client-side Ruby
Hi, I wrote a blog post about opal and rails. I hope you interested.
@rubycalendar - (Yet Another) Ruby Conference Calendar Alternative
Hello, I’ve started (yet another) Ruby conference calendar alternative. The new @rubycalendar twitter account follows all Ruby conferences (and some meetups) - so far 91 and counting (listed on the planetruby/awesome-events page). I try to retweet new conference announcements from time to time. Follow along. Cheers.
How unicorn talks to nginx – an introduction to unix sockets in Ruby
In this post we start out with the basics of unix sockets and finish by creating our own simple Ruby application server which can be proxied by nginx. http://blog.honeybadger.io/how-unicorn-talks-to-nginx-an-introduction-to-unix-sockets-in-ruby/
How I upgraded my Ruby with Contracts
Make your ruby code safer with Contracts
How to Maintain a Healthy Development Backlog
When building a new product or upgrading software, you need to prioritize your wants and needs and maintain a healthy development backlog. Read more
Realtime Twitter Clone Demonstrating Volt Framework Authorization / Authentication
In Episode 9 I build a basic twitter clone to demonstrate how you can use permissions and authorization in Volt apps.