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.

Copycats Update - New! SQL Database Tables and ActiveRecord Models for @CryptoKitties

Hello, I’ve put together a (free, open source) SQL database schema / tables and ActiveRecord models for CryptoKitties. Still early and suggestions more than welcome on how to make it better, easier, faster, etc. The models incl. Kitty (of course), Gene, Trait and more. The idea is to make queries easy (thus, all 48 genes of a kitty in a “flat” genes tables along with all others). Find the source at the Copycats project page. Cheers. Prost. PS: You can read-in all 500000+ kitties using the Kitties on the Blockchain public dataset in comma-separated values (CSV) format in blocks of a thousand kitties each.

kitty - CryptoKitties Offline Genes Reader 'n' Mix Genes (Matron+Sire) Reporter

Hello, I’ve put together kitty - a new command line tool for CryptoKitties and Copycats - free and open source in ruby that works offline (use datafiles in .csv). 1) Kitty Genes Reader / Report - Pass in the id (e.g. 1, 43, etc.) of the kitty to print a genes report. Example:$ kitty 1. 2) Kitty Mix Genes (Matron + Sire) Report - Pass in two ids for the matron and sire kitties to print a mix genes report. Example: $ kitty 2 43. Enyoy. Cheers. Prost.

Why Service Objects are an Anti-Pattern

Adding to the ongoing conversation regarding service objects: not only do I think better solutions exist than service objects in the majority of cases, I maintain that service objects are an anti-pattern which indicates a troubling lack of regard for sound object-oriented design principles. Find out why with detailed code examples.

Loading older posts