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.
Preserving technical knowledge
Some thoughts on preserving technical knowledge as devs change jobs.
How RuboCop can ease your code review pains. Style guides for Ruby coders
Your code is not only interpreted by a machine, but by fellow programmers as well. Here’s a few words describing How RuboCop can ease your code review pains and why style guides can be useful for team work.
Absolutes as an AntiPattern
I posted new atricle titled Absolutes as an AntiPattern. Hope you enjoy!
Input/Output in Ruby
Input/Output, generally referred to as I/O, is a term that covers the ways that a computer interacts with the world. Screens, keyboards, files, and networks are all forms of I/O. Data from these devices is sent to and from programs as a stream of characters/bytes. [more inside]
66 Useful Links from RESTFest 2014
If you missed RESTFest 2014, or want to know where you should follow up, Eric Oestrich collected 66 useful links at the conference. Enjoy!
How do gems work?
Gems might seem magical. But with a little investigation, they’re pretty easy to understand.
Property-Based Testing (QuickCheck) in Ruby
The theft Ruby gem allows for property-based testing in Ruby — generating valid, randomly-generated input and validating that a particular property is true.
Decorator Pattern in Ruby
Decorators allow us to add behavior to objects without affecting other objects of the same class. The decorator pattern is a useful alternative to creating sub-classes. We will look at an example where we use subclassing to solve a problem, and then look at how decorator objects provide a better solution. [Continue reading…]
i18n Rails - How to organize your locales in larger projects
I wrote a blog post on how we cleaned up our locales on a larger Rails project. See the post here.
Prefer Objects as Method Parameters, Not Class Names
“Class-oriented programming” over-emphasizes classes. Class-oriented code can only reference constants, which results in classes which use inheritance instead of composition. [more inside]
10 skills that will make you a better Rubyist
Just published new blog post about 10 skills you need to master to become a better Ruby developer.
Presenters in Rails
When your models are bloated with methods that are only used in views, it might be a good time to refactor them. Moving that logic into helper modules might be OK in some cases, but as the complexity of your views grows, you might want to look at presenters. In this article, I will walk through how I refactored views to use presenters instead of helper methods. [Continue reading…]
ITTIA Sync Adapter Connects Android to Big Data
Due to an unprecedented influx of sensitive data that is managed and collected on mobile devices, ITTIA is offering a state-of-the-art bidirectional synchronization solution for Android apps that enables big data collection on-the-go. ITTIA DB SQL communicates with ITTIA DB Sync, and uses a back-end RDBMS to store device data in existing tables and download updates specific to each device.
Guide for adding a staging environment to Rails
I just wrote a guide for adding a staging environment to Rails explain why and how to it set up: how to copy data from your production environment, how to deal with mails, the question to ask for…
Release finite_machine 0.9.2
finite_machine version 0.9.2 brings important fixes to transitions involving :any type state and thread safety.
Rlease activerecord-time-scope 0.1.0
I just released activerecord-time-scope, which provides sets of useful scopes for time-related columns.
How to Use Devise in Rails for Authentication
Devise is considered the best-of-breed authentication solution for Rails apps. In this blog post, we go over how Devise is built on top of Warden, how to use it in a Rails app, and how to write tests for it. [more inside]
`restart ruby app.rb` - minimalist ad hoc ruby code reloading that also works on Windows
I made this tiny gem because I couldn’t find any solution for ad hoc ruby code reloading that would also work on Windows (e.g. shotgun and rerun use fork(), so they’re unix-only). Hope you find it useful and let me know what you think!
Rails Disco - A distributed party for simple event sourcing
Rails Disco tries to get the best bits of event sourcing integrated into a Ruby on Rails tool stack. The adds commands, events and projection and some Rails generators. I think it works very good. I seek for help to maintain this project. I believe in the idea, but lack the time to get this thing production ready. Every feedback and help is appreciated.
Database seeding for geocoded models
A blog post about how we at CookiesHQ used Google’s geocoder to seed our database with journeys for testing geomatching using PostGIS.
Onboarding Junior Developers
I’m the newest Rails Support Engineer to join Ninefold and a big advocate of developer bootcamps. Her talk sounded like it would be perfect for where I am in my career. [more inside]
Passenger standalone with debugger and pry
A short, annotated blog post on how to use Passenger standalone in development with smooth integration of debugger and pry.
Ruby Benchmarking Lessons Learned
Brian Knapp shares some lessons learned from his landmark Ruby web framework benchmarking post. Really great post.