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.
Dos-T – an opinionated helper for I18n
After working on a big multi-language rails app there were things which I believe will be useful for others. Look at Dos-T gem
Dynamic Dockerfile.erb with dockerb
dockerb allows to use ruby or prebuilt helpers like <%= install_gem ‘nokogiri’ %> or <%= bundle %>
A Simple But Effective Way to Contribute to Open Source Projects
Sometimes we find it hard, especially if you are a newbie, to know in what ways one can contribute to open source projects. This is one example of how a simple gesture turned out to be a needed contribution to a Ruby gem
Ruby based pre-commit/commit-msg hook management tool
I built this a while ago but, it’s been languishing with me as it’s only user and is in dire need of more eyes to make it truly awesome: . Constructive feedback welcome. Note: I know the docs need work - if you want to test it and need help, feel free to reach out to me.
How to turn 40 lines of hacky Ruby in to a badass open source project
The RubySteps mob_rotation tool began life as 40 lines of code. A few months later, it has 33 listed contributors, and 22 with credit on GitHub. How to turn 40 lines of hacky Ruby in to a badass open source project
Empty Array is True
A blog on why not to use where, but use find_by in Rails.
The Best Code is the Code Nobody Writes
There are many metrics that people use for determining what is good code vs. bad code. Things like: Readability, Maintainability, Test Coverage, DRY, etc. Here’s another metric I think is very important to consider for judging code quality: Doesn’t Exist. Read more
One JavaScript, is it the "one" we were waiting for?
We do Ruby, but we rarely can go far without using JS in a day to day work. New JS is coming, what will it bring us:
Ruby Exceptions Equality
A short guide to how ruby compares exceptions:
Active Job and Data Consistency
I wrote about Active Job (Rails 4.2 feature) and data consistency: The adapters have different transaction semantics. I think it’s important to know about these differences.
Ruby Gem of the Week Series @ Planet Ruby - Week #4 kramdown, Week #5 feedparser
I’ve published new gems in the Ruby Gem of the Week series that presents a new Ruby library every week on Thursday on Planet Ruby. The new gems presented include: Week #4 - kramdown gem - turn easy-to-read and easy-to-write; wiki-style plain text in markdown into hypertext Week #5 - feedparser gem - web feed parser and normalizers (for RSS 2.0, Atom, n friends). Happy Planet. Cheers. PS: Have your say! Guest posts or ideas and suggestions about gems more than welcome.
Ruby serialization formats comparision
Wrote some simple comparision of serialization formats we can use in ruby to serialize our objects. It can be found right here.
Accessory gems, part I: Private Gemfiles
Free your app by giving auxiliary tools their own Gemfiles.
I Love Ruby
A free to use book on Ruby programming language. Download it here
Pragmatic Segmenter - A Ruby gem for sentence boundary detection
Pragmatic Segmenter is a rule-based sentence boundary detection gem that works out-of-the-box across many languages. See how Pragmatic Segmenter’s accuracy compares to other popular sentence segmentation tools.
Decrease response time of Devise user sign ups
Password stretching can get in the way of providing a quick and often critical response to our users. Decrease that response time by moving password stretching into the background with devise-async-stretch.
Using pry-remote to debug within Vagrant VM
Protip for how to debug Rails applications that are running within your Vagrant virtual machine: http://codecrate.com/2015/01/pry-remote-with-vagrant.html
Why using Interactor Gem is a Very Bad Idea
Top 4 reasons why using Interactor gem causes damage to your design:
Destroy All Software Screencast Reviews
Why doing TDD does not mean you will end up with a good design:
James Golick's 'rollout' and 'degrade' gems
3-part series on using feature flags with the late James Golick’s gems. It starts here.