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!

Purify your programs with capability objects

Introduction to capability objects. Also a discussion of how to use these to improve the effective purity of functions. All with the aim to improve modularity in your programs. http://insights.workshop14.io/2016/05/01/purify-your-programs-with-capability-objects.html

All examples are in JS but the discussion is valuable to all languages with easy global access to many capabilities. Ruby is definitely one of those and I personally use this technique frequently in my ruby code.

Comments

Would love to see some Ruby examples :(

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

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