RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
June 05, 2014
Some time ago, we decided that we needed to improve the tool that manages our team work in a better way. A a result - we created a "People App". Then we though - if it help us to manage our devs within projects - why not to share it with other? Introducing - People App - hope you'll find it useful guys.
Universal Ruby Gems in 20 Lines of Code
New article on Cross Platfrom Ruby Blog. It explains how to make your gems run universally in Ruby, RubyMotion and Opal.rb. It literally takes 20 lines of code.
June 04, 2014
The culture of testing is one of the best things about the Rails community. But if you’re coming from a place where you weren’t testing at all, TDD can be especially hard to learn. It’s clear that you can’t really go from zero to TDD in a single step. So, what do you do? How can you learn TDD without being overwhelmed?
We show you why and how you would use enum in your app Rails 4.1 Enum (~ 6 minutes)
Data listing gem for Rails
Easily create AJAX-enabled data lists
with out-of-the-box support for sorting, filtering and in-place editing. Check our gem SmartListing.
I am collecting feedback on the intro to a Ruby book I am working on...

My own history

I have been coding since I was thirteen, when my Father came home with old IBM clone that he traded for during the 80’s barter craze. Being nearly forty years old now, I have stubbed my toe and left it bleeding in more than a dozen languages now. If I were a construction worker instead of a knowledge worker, I would probably be missing fingers, toes, and possibly a hand or leg.

Continue reading
Docker seems like it's going to change the way we deploy Rails applications and an essential step in taking advantage of this is using it in both development and production. This Rails and Docker Tutorial covers setting up quick and repeatable development environments using Vagrant and Docker.
My post on Client side SSL Certificate Authentication with Rails and Nginx.
June 03, 2014
Ruby on Rails strives to simplify and streamline the web application development process. But while Rails is easy to use, it is also not hard to misuse. This article looks at 10 common Rails pitfalls, including how to avoid them and the problems that they cause.

Link: Top 10 mistakes Ruby on Rails programmers make
I’ve been seeing a lot of tweets from people saying that Swift has basically killed RubyMotion, which is extremely far from the truth, and I’m going to explain why quickly and without much fuss, because people seem to just be saying it without thinking.

Why Swift Will Never Replace RubyMotion
A Big Week For RubyMotion Developers
This past week has been insane for me, with the RubyMotion #inspect conference, and now the massive announcements from WWDC, there is a lot of new things for us RubyMotion developers. Not only do we have a new platform (Android) to work with soon (which for a lot of you may be the first time you’ve ever touched it), but Apple has dropped some amazing new APIs for us to use, and we haven’t even seen close to all of them yet.

A Big Week For RubyMotion Developers
June 02, 2014
This article describes how to refactor and improve readability of complex data processing with syntax similar to Haskell do-notation and State monad.
Rails Extentions
Split a monolithic app into small isolated apps and extending them with class extensions
June 01, 2014
TDDing a static website generator - part 1

@thatrubylove holds session sundays every sunday 12pm-2pm CST! Join us next time.
This is new gem for simplifying installation of Oracle Instant Client. Gem is here and explanations are here.
Hello, I've reconfigured the sportbook - an open source Ruby on Rails web app for match picks/predictions - for the World Cup 2014 in Brazil (11 days an counting!). The sportdb gem lets you load the plain text fixtures into your SQL database of choice; see the worldcup.db fixtures in plain text or served up via a web app or try the World Cup Brazil 2014 picks demo (login with demo/demo). Cheers.
May 31, 2014
Get more from ActiveRecord::Store
You like ActiveRecord::Store with it's serialised attributes but tired from converting attributes to a not string value?! Check out active_store_accessor which does all dirty work for you.

PS. default values are also supported.
Building an Ember App with Rails
Part 4
I have prepared some Ruby code to show how conditionals can breed like rabbits, and how to spay and neuter those bunnies before it get’s out of control.

Along with the code, there is a screencast or as I will call it, a RubyLovecast. In the video, I will walk you through several revisions of the code, first showing how conditionals grow, then how to take a weedwacker to them.

continue reading @ rubylove
In this episode we show you how to optimize the response for our mobile site Video on Youtube.
May 30, 2014
I wrote list of ruby news websites
We just wrote this blog post on Using ActiveRecord scopes with activeadmin.
May 29, 2014
Interviews with Ruby community leaders and contributors from RailsConf 2014 at Examples of interviews are Aaron Patterson aka @tenderlove, DHH, Yehuda Katz & Tom Dale, Evan Phoenix creator of Rubinius, Obie Fernandez author "The Rails Way", Carlos Antonio da Silva, and many more
Want to learn more about metaprogramming in Ruby?

Of course you do! We're going to look at how to build classes dynamically in Ruby.

Second in a series, perfect for anyone who wants to see some practical metaprogramming in action.
I just announced PostgresExt-Serializers which allows you to serialize your JSON responses in PostgreSQL instead of Rails
New post on Group Buddies blog: Random (and probably useless) Rubyisms
Cells now allows to package JS, CSS and more into a cell directory making it really simple to integrate assets into the asset pipeline. This allows a highly modular and encapsulated architecture which is briefly discussed here.
There’s an expression that to a person with only a hammer, every problem looks like a nail. Over time, familiarity makes most problems look like nails to which you simply apply your hammer.

Read the rest of the blog:
A gem for using your github repository as a content management system Writefully
May 28, 2014
I solved this often enough in apps to now release it as a gem.
How You Nest Modules Matters in Ruby
Ruby provides two different syntaxes to nest modules (and classes), and most Rubyists treat those syntaxes as interchangeable when they shouldn't. Find out why the syntaxes are not interchangeable.
I wrote a new post titled 7 Reasons Why I'm Sticking with Minitest and Fixtures in Rails. Hope you enjoy!
May 27, 2014
While you’re building software, there will be things that will frustrate you every time you have to write them. Bits of code that look ugly. Or those lines you can never quite remember how to write, so you find an example somewhere else in your codebase to copy and paste. These break your flow! So it’s important to recognize them, and make them more convenient.
Writing blogposts can be as important as contributing to an open source. Here's why as a developer you should share your knowledge and write a blogpost from time to time.
My Heroku add-on ExpeditedSSL was just accepted into General Availability. The add-on grinds the complexity and issues of getting SSL going on Heroku into the dirt.
SSL certificates can be intimidating but Heroku and DNSimple make the process easy. These steps should take us less than 15 minutes.
Have you met Feedlr? A Ruby interface to Feedly. First version is out!
May 26, 2014
I have to apologize for being away so long. I ended a relationship that had drug on for far too long and going nowhere, and at the same time I decided that I will no longer accept clients that refuse to place the proper amount of importance on quality and training.

read more here
Just released finite_machine which introduces new callback types on_before and on_after for listening to events and separating them from state changes. This means that the transition sequence and callback lifecycle have changed as well. I'm looking forward to your feedback!
UIPickerView is a common sight in a lot of applications, it's an easy and familiar way to... well... pick things. Understanding the delegate and data source though can allow you to really understand what's possible and use it in more creative ways.
A few new coding practices I implemented this week, Check it Out
In this article, we talk about three different ways to generate URLs used by Rails among controllers, mailers, views and helpers. We've also included examples and some suggestions on when you should use them.
May 25, 2014
In this episode we take a look at how Framework7 structures it's content. We try out a few examples from the kitchen sink provided by Framework7's documentation. 14 minute Video tutorial.
Here is part 2 of my blog series Integrate PostGIS and Google Maps in Rails. It shows how to encode the geometry in PostGIS as GeoJSON and render them on google maps.
Checkout how to override default routes of devise for Sign in an Sign out with details
May 23, 2014
Based on what I learned implementing billing for my app WiseCash, I extracted an example app of how to use Recurly.js to accept recurring payments with Rails. Note that this is currently for Recurly.js v2 - will adapt it to v3 once I have migrated my app.
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it lints your chef cookbooks with the help of Food Critic. Check it out: Pronto and pronto-foodcritic.
May 22, 2014
MetaRuby - An Ounce of Meta
Want to do some simple metaprogramming? Have you ever wondered how things like attr_reader work? Unlike languages like Java we can easily define our own language constructs.

Drop by and learn how to write some Ruby that writes Ruby.
SRP is, hand in hand with MVC, Decorator, and SEO, one of the most misunderstood concepts in the Ruby community. In a quick post I describe what SRP means and how you can use it when designing APIs.
Mocking and Ruby
Here are some thoughts about mocking and ruby: Mocking and Ruby.