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.
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
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. [more inside]
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: http://m-kyryk.blogspot.com/2015/01/one-javascript-is-it-one-we-were.html
Ruby Exceptions Equality
A short guide to how ruby compares exceptions: http://blog.arkency.com/2015/01/ruby-exceptions-equality/
Active Job and Data Consistency
I wrote about Active Job (Rails 4.2 feature) and data consistency: http://blog.seiler.cc/post/108253328971/rails-active-job-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
http://technology.indiegogo.com/2014/11/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 http://goo.gl/1qrMUN
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: http://bparanj.blogspot.com/2014/06/why-using-interactor-gem-is-very-bad.html
Destroy All Software Screencast Reviews
Why doing TDD does not mean you will end up with a good design: https://rubyplus.com/articles/391
James Golick's 'rollout' and 'degrade' gems
3-part series on using feature flags with the late James Golick’s gems. It starts here.
Using 'or' in ActiveRecord
Using ‘or’ for building ActiveRecord queries just landed in Rails.
Nested Forms with Rails 4.2 Screencast
An up to date screencast for Rails 4.2 about how to create a nested form. The video is 13:37 min long. Bonus: A transcript with all code examples. http://www.amooma.de/screencasts/2015-01-22-nested_forms-rails-4.2/
Writing a DSL in Ruby
A Domain Specific Language or DSL is a mini language focused in solving a particular type of problem. This post shows a way of writing a simple DSL using Ruby.
Refactoring mini series: HOW?
The Good (Practices), the Big (Ref) and the Ugly (Refactor). This episode of the refactoring mini series focuses on the question: HOW?