RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

From ActiveRecord Callbacks to Publish/Subscribe Pattern and Event-driven Design

Imagine that you are working on a large legacy application that also contains the dreaded ActiveRecord callbacks in the models handling most of the business logic. At some point, and under a certain level complexity, the mess caused by that choice might become hard to keep under control, the risk of introducing bugs will increase and the teams(s) working on the application will be way less productive. That will most likely lead to an attempt to find a better way of designing the application. The problem, though, might be that the scope of the application is so huge that introducing any meaningful changes to the application will take weeks, if not months. [more inside]

sportdb v2.0 - tool for reading datasets (leagues, clubs, matches, ...) into SQL DB

Hello, I’ve updated the sportdb command line tool / library that lets you read in (parse) datasets (e.g. leagues, clubs, match schedules, etc.) in plain text into your SQL database of choice (e.g. SQLite, PostgreSQL, etc.). For example, to build yourself a copy for the English Premier League 2019/20 season type: $ sportdb new eng2019-20. That’s all. This will read in the match schedule and much more from the /england dataset. Happy data and text wrangling with ruby. Enjoy the beautiful game. PS: See the football.db League Quick Starter Sample - Mauritius Premier League if you want to start from scratch (zero) with your very own league.

Argentinian validations

For all the argentinian developers out there (or others developing apps for argentinian people), I created a gem to validate specific user information from Argentina like CBU and CUIT. Check the gem here.

Loading older posts