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.

enums 1.0 library / gem - safe enumeration types for ruby

Hello, I’ve put together a new enums library / gem for safe enumeration types in ruby. Yes, enums are just a set of symbolic keys bound to unique integer numbers. Why not just use symbols :-) or constants? Do we really need a new enum type and (yet another) library? Good point. Let the ruby meta-programming magic work for you :-). Cheers. Prost. PS: The new enums 1.0 library is part of the safe data structures series.

Stimulus.js Tutorial: Interactive Deletes with Rails UJS

By wrapping the deletable element in a controller and hooking into the Rails-UJS callbacks, you can make your page feel fast, even while the network request and response occur in the background. This tutorial is an attempt to make Rails’ remote deletion mechanism, which uses UJS, feel more immediate.

CryptoZombies Code School - Build Your Own (Decentralized) Game in (Secure) Ruby

Hello, The original CryptoZombies is an interactive (free online) code school that teaches you how to write contracts in Solidity through coding your very own crypto-collectible from scratch step-by-step. If anyone is interested - I try to convert the JavaScript-like contracts and samples to (secure) ruby. So far I’ve converted the first three curriculum chapters to runnable (secure) ruby code, see zombies_ch1.rb, zombies_ch2.rb, zombies_ch3.rb. If you have any ideas (questions or comments) on how to convert JavaScript-like Solidity contracts to ruby let us know. Cheers. Prost.

store_model: a gem for handling JSON-backed attributes as ActiveRecord models

StoreModel allows to work with JSON-backed database columns in a similar way we work with ActiveRecord models. For instance, if you have a model Product with a jsonb column called configuration, you can access configuration fields using product.configuration.color instead of product.configuration["color"] with a type-casting powered by Attributes API. [more inside]

Messages on Rails Part 1 - Introduction to Kafka and RabbitMQ

Microservices, Service-Oriented Architecture (SOA) and in general, distributed ecosystems, have been on hype in the last several years. And that’s for a good reason! At certain point, The Majestic Monolith “pattern” might start causing issues, both from the purely technical reasons like scalability, tight coupling of the code if you don’t follow Domain-Driven Design or some other practices improving modularity, maintenance overhead, and also from organizational perspective since working in smaller teams on smaller apps is more efficient than working with huge team on an even bigger monolith which suffers from tight coupling and low cohesion. However, this is only true if the overall architecture addresses the potential problems that are common in the micro/macro-services world. One of these problems I would like to focus on is communication between apps and how the data flows between them. [more inside]

Loading older posts