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.

Glimmer Battleship

Glimmer DSL for SWT 4.20.13.15 shipped with a sample implementation of the classic board game: Battleship! As usual, it has been built in record time, thanks to Ruby (JRuby) and the ultra-compact Glimmer GUI DSL. [more inside]

Glimmer Connect 4

Glimmer DSL for SWT 4.20.13.14 shipped with a Connect 4 elaborate sample. It is implemented as a 2-player game that is very similar to Tic Tac Toe in implementation except that it relies on a hybrid canvas widget/shape approach to lay out the slots. [more inside]

Building a Documentation Workflow in Rails

Good docs make happy customers. But documentation is HARD. You have to figure out what’s important and write it up in a way that’s tailored to your audiences and consistent across the site. Now you need to set up a website, publish the docs and maintain them as your product changes. Fortunately, we have seasoned technical writer Kate Bartolo here to walk us through the whole process. https://www.honeybadger.io/blog/documentation-worklow-rails/

Using ActiveRecord's #update_counters to Prevent Race Conditions

Race conditions are arguably the most insidious kind of bug; they’re intermittent, subtle, and most likely to occur in production. ActiveRecord’s update_counter provides us with a convenient way to avoid race conditions when incrementing or decrementing values in the database. In this article, Jonathan Miles shows us how to use it, how it’s implemented, and other approaches to avoiding race conditions. https://www.honeybadger.io/blog/activerecord-update-counters-race-conditions/

Powerful Emacs Snippets

In this post, I documented the process of customizing one of my Ruby snippets to have some code expanded conditionally. I used Emacs, but the general idea may apply to snippet packages of other editors. [more inside]

Loading older posts