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.
Code quality at scale
Avoid ‘the big refactor’ on big Ruby projects with incremental code cleanup. The ‘quality’ gem uses the power of continuous integration and some great community tools to keep your code quality increasing over time!
Trending Topics Using Twitter Gem
Go to our blog to learn how to implement trending topics into your Rails application using Twitter Gem.
Using RSpec with Atom
I wrote a small set of Atom snippets for RSpec, Capybara, and Factory Girl, and looked at a few other RSpec packages. Details in this post on Everyday Rails.
Single Responsability Part II: Fighting the Consensus
A slightly controversial blog post about devise, omniauth and the notions of authentication and identity
RocketConf 2015: the web in outer space
Astronauts and web developers will gather in Pakhuis De Zwijger in Amsterdam on November 12 and 13 to discuss the future of the modern web. [more inside]
sport.db League Quick Starter Sample - Mauritius Premier League - Create Your Own
Hello, I’ve put together a new sport.db (football.db) quick starter sample using the Mauritius Premier League to get you started creating your own leagues/cups/etc. from scratch. You can test drive the quick starter sample with a single command e.g. $ sportdb build. To start from scratch follow these six steps: [more inside]
Using RSpec's shared_examples_for
There’s not a lot of documentation or examples online for how to use RSpec’s shared_examples_for to avoid duplication when writing spec, so I wrote a short blog post on it.
Caveats for interrupting Ruby code
In this brief post I will highlight a problem I faced recently with Ruby while handling interrupts in multi-threaded code. [more inside]
Build Less, But Better Software (Lesson #1)
Do you want to help your clients or business accelerate product development and business growth? You can do that with APIs and Rails engines. [more inside]
ARSI: ensure delete_all & update_all is scoped
A small library that prevents you from doing delete_all/update_all without scoping by ids by accident for ActiveRecord+MySql [more inside]
How to use Rails ActiveJob
With Rails 4.2 came ActiveJob, a common interface to the many different queue and background workers popular in the Rails community. This article explores how it works and when it’s a good idea to take advantage of it.
Avoid these traps when nesting Ruby modules
But buried within Ruby’s nesting implementation - and Rails’ autoload system - are a few traps that can cause your code to fail in strange and wonderful ways. In this post, we’ll discuss the origin of these traps and how you can avoid them. http://blog.honeybadger.io/avoid-these-traps-when-nesting-ruby-modules/
Exposing the code school lie
Take a look at a typical code school, and you’ll find a huge curriculum and a promise: “Work through our lessons, and you’ll be ready to work as a professional developer!” What actually happens…? - RubySteps
Creating an IRB-based Read-Eval-Print-Loop-console for your project
Recently I added a Read-Eval-Print-Loop-Console (REPL)-console to the aruba-project as playground for our users similar to the one you find in rails. This article first shows you aruba’s console a bit and then describes how you can build your own console in Ruby with some help of IRB.
Fit Commit: A Git hook to validate your commit messages
Based largely on Tim Pope’s authoritative guide. [more inside]
How To Install Memcached On A Vps Server Or A Dedicated Server?
Memcached is a Unix daemon written in C that exposes a specified amount of memory space as a hash table on the network using a dedicated text or binary protocol. Read full article on RailsCarma Blog
encapsulate complex business logic with the specification pattern
I wrote a blog post with Ruby example on how to encapsulate complex business logic conditions in to intention revealing classes using the specification pattern http://teotti.com/use-of-the-specification-pattern/
Express yourself
Just published a blog post about some points on Ruby’s expressiveness and using it. Check it out here.
Alias method for #call()
This is a cool thing I just found out. Ruby has an alias to the #call() method which I didn’t know about. [more inside]
Working with Ruby exceptions outside of the rescue block
It’s often useful to be able to get the most recent exception, even if your code doesn’t control the lifecycle of that exception. In this post we explore a few of the ways to do this. http://blog.honeybadger.io/working-with-ruby-exceptions-outside-of-the-rescue-block/
Optimise your Ruby logging with blocks
When peppering your code with logging statements, you could be adding overhead even when your application’s log level is set to display only critical errors. Switching to passing blocks to your log commands may help.
Wisper 2.0 Survey
Using Wisper? I have a few questions which will help with choices regarding Wisper 2.0, thanks.
New gem: i18n-backend-side_by_side
Tired of jumping between language files when translating keys? Stop jumping and have all the languages side by side. https://github.com/electric-feel/i18n-backend-side_by_side