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.
3 Quick Tips to Speed Up Page Loads
Let’s find three low hanging fruits and quickly fix performance issues to speed up page load in a Rails app. Read 3 Tips to Speed Up the Page Loads in Rails App
Passages Rails Engine
Routing in the Ruby on Rails world can, at times, be a tad confusing. The official Rails guide is very helpful for the basics; but, as an application grows, it can become hard to remember specific details about every single route. The Passages Rails Engine was created to help this concern.
How swappable storage and fakes lead to cleaner, more reliable tests
resque_unit overrode part of Resque’s API to change how jobs were queued. This was great for an initial implementation. But, as reimplementations of an API tend to do, it fell behind. It got way more complicated. Luckily, there’s a better way to solve this problem.
The Rubyist's guide to writing command-line apps
In order to write a first-class command-line app, you have to understand a lot of details like arguments, environment variables, STDIN/STDOUT, and more. This post is my humble attempt to cover most of these details and bring together everything you need to know in one place. http://blog.honeybadger.io/writing-command-line-apps-in-ruby/
Must-Read: 10 Ruby on Rails Posts You Can't Miss
List of Netguru’s best and most popular posts from 2015 [more inside]
New features in Rails 5.0
Here’s a quick look at the new features introduced in Rails 5, including ActionCable, the new Attributes API, changes to ActiveRecord and more: [more inside]
Understanding Mutable Objects & Frozen Strings
What does it mean for an object to be mutable? Don’t let that fancy word confuse you. http://www.blackbytes.info/2016/01/ruby-mutability/
Pronto now has runners for JSCS and Tailor (the Swift one)!
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. Over the last month, a couple more runners were written for it. One for JSCS, JavaScript Code Style checker and another for Tailor, Swift static analyser and lint tool. Check out Pronto and the list of runners it now has.
Wye Tech News #5
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
12th edition of RubyIssue(s)
This is the 12th episode of our guided tour through the Ruby universe of issues. In this episode you will read about issues from gems such as HTTP, Polo, Padrino and Diaspora. Bonus: Conference discount, check it out!
Simple ActiveRecord caching strategies
I just released active_cash which is a drop in module for caching AR objects. As of now only :existence strategy is supported but more interesting things will come over the next months..
Ruby's New &.!= Operator
Well, it’s actually two operators. Sue me. The 2.3.0 release of Ruby included the safe navigation operator, &.. It does the same thing as try! in Rails. You can chain method calls together and bail early if you hit a nil. In Ruby some things you don’t normally think of as method calls are in fact just that. For example, operators like !=. [more inside]
Dotfiles 19.0.0
I’ve always felt that reading/using other developer’s Dotfiles projects and maintaining your own is a great way to be leveling up as a developer. Today, I’ve released a new major version in case it is of value to others. Maybe you discover aspects of the project that speeds up your workflow or maybe you use it all. Either way, enjoy!
Netzke 1.0 has been released
After 7 years of development, the Netzke framework has been released to version 1.0. Netzke allows you to build complex one-page applications by writing little code, due to making use of client-server UI components. It is powered by Sencha Ext JS on the frontend and Ruby on Rails on the server. Version 1.0 has new and improved components, more polished API, many bug fixes, as well as better documentation and test coverage.
Refactoring in Ruby: Smelly Parameters Lists
In this article we will cover one of the simplest code smells - long parameters lists in your method signatures. Check it out here.
Testing EpicEditor with Capybara & RSpec
EpicEditor is a neat Markdown editor that uses nested iframes and can be embedded in Rails forms to replace textarea fields. Digging into these nested iframes to input text within a test can be a little tricky. Here’s how you can do it: https://eliotsykes.com/testing-epic-editor
Refinements in 2016
The Zucker gem has become the Sugar Refinery: A collection of nano refinements, including: Object#blank?, Float#same?, File.gsub, and Array#chain_map.
BlackHulk - Awesome Blog Engine for Developer
We’d like to share an awesome blog engine for developer. Your posts will be saved on a GitHub repository and BlackHulk will display on a web browser. [more inside]
Color Blind Test your Web Application
Did you know that about 8% of the male population is color blind? Why eliminate that much of a potential market for your Web apps? [more inside]
Rails DB updates
https://github.com/igorkasyanchuk/rails_db Happy New Year! Please welcome new version of Rails DB gem with some optimisations and bug fixes
CRF - Find repeated files Gem
I wrote my first gem called CRF, which finds repeated files in a given directory (and subdirectories). I would love to hear your opinions, suggestions and error reports! [more inside]
Simple Rust, From a Rubyists Perspective
A four-part blog series on solving Exercism’s anagram problem in Rust. Heavy comparisons between Ruby and Rust, since I’ve been a Rubyist for years.
Using RSpec Metadata
Not all tests are created equal. Here we examine patterns for using RSpec metadata for to test configuration on a per test, context, or even directory-level basis https://rossta.net/blog/using-rspec-metadata.html
The FILTER clause in Postgres 9.4
Postgres 9.4 was released in December 2014 adding the FILTER clause to aggregate functions and this clause is quite useful when you want to count or sum specific records when executing group by. Read more!