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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Language Syntax Pragmas: Let's Evolve Ruby by Experimenting in a Pragma(tic) Way
Hello, I’ve put together a new pragmas gem / library for language syntax pragmas that lets you turn on the future today or add your own ideas for easy (re)use for everyone. Let’s evolve the ruby language together by experimenting in the wild in a pragma(tic) way. First language syntax pragmas include match patterns, enum and type types, auto numbered arguments, and more. What’s your idea / pragma? Yes, you can. Happy coding in (future) ruby with pragmas. Cheers. Prost.
Automatic Materialized View Refresh with Usage of Database Triggers
I have described the problem of automatic refresh of materialized database view in PostgreSQL and provided an example solution to that problem using database triggers. https://www.netguru.com/codestories/materialized-view-refresh-problem-and-how-to-solve-using-database-triggers-in-ror-based-application
IRB.tools 3.0
Irbtools configures your IRB and adds a bunch of useful IRB commands. Irbtools generally has been pretty stable during the last years and version 3 only brings few new features.
michelson - test simulator / runtime for type-safe 'n' functional (crypto) contracts
Hello, I’ve put together michelson - a test simulator and runtime library / gem that lets you write and run type-safe ‘n’ functional (crypto) contracts in yes, it’s just ruby. See the Let’s Count or the Let’s Vote examples to get started with functional type-safe Liquidity (OCaml/ReasonML)-style programming in ruby. Happy (crypto) contract programming and blockchaining with (secure) ruby.
Never again you have to `x.methods - Object.methods`
Because now use can use an object’s shadow!
[Screencast] Introduction to Kubernetes
In this episode, we take a tour of what Kubernetes is, how to install and configure a local development instance, and deploying a sample application. https://www.driftingruby.com/episodes/introduction-to-kubernetes
Flor workflow engine
Flor is a Ruby workflow engine. It interprets workflow definitions, controlling the flow of work, handing tasks to participants. Flor workflow engine is a blog post presenting the project, its features and characteristics.
Dockerizing a Rails application
I published a new tutorial for Dockerizing a Rails application. [more inside]
Messages on Rails Part 2: Kafka
In the first part of this series, we were exploring some potential options for communication between services – what their advantages and disadvantages are, why HTTP API is not necessarily the best possible choice and suggesting that asynchronous messaging might be a better solution, using, e.g. RabbitMQ and Kafka. Let’s focus this time entirely on the latter. [more inside]
Stop using views: frontend components architecture for Ruby on Rails
component_party gem that allows us to organize our Rails frontend code in components and keep our css, view models and templates organized by domain. [more inside]
(Secure) Ruby to Liquidity (w/ ReasonML Syntax) (Source-to-Source) Cheat Sheet
Hello, I’ve put together a cheat sheet / white paper that lets you compare “pragmatic” (Secure) Ruby to “functional” Liquidity (w/ ReasonML Syntax) / Michelson side-by-side with a Counter, Vote and Minimial Viable Token contract example. Happy crypto (contract) programming with ruby. Cheers. Prost.
JsonapiErrorsHandler - A new way of catching API exceptions in ruby
Recently we came with a new little gem for ruby API applications and I decided to come with an article about it. [more inside]
Using LDAP to Login and Logout Users in Rails apps
How to use LDAP to login and logout a user using OmniAuth and LDAP. We will also see how to search for a user and test LDAP server connectivity. Read more: Using LDAP to Login and Logout Users in Rails apps
Creating a chat application from scratch with Rails and WebSockets
I’ve just published a tutorial for creating a chat application with Rails and WebSockets from scratch.
What's New in Rails 6.0: The rails db:system:change command
Changing the database adapter for a Rails app has always been an annoying, manual change to make. Rails 6.0 introduces the “rails db:system:change” command to make this easier using all the built-in generators for database.yml and more. See how to use the rails db:system:change command
Processing a CSV file in batch with Sidekiq
How to upload a CSV file with over 10 thousand rows of data without causing any time out in the app. [more inside]
The State of Bool in Ruby - Everything You Never Wanted to Know
Hello, for the Vienna.rb April meetup I’ve put together talk notes on: The State of Bool in Ruby - Everything Your Never Wanted to Know . The contents reads: Trivia Quiz - The States of Bool ++ Bool Basics / Classes, Classes, Classes // Truthy and Falsy - (Almost) Everything is True // The state of built-in bool conversions - to_s, to_i, to_b, to_bool and so on. Happy coding in ruby with (or without) Bool. Cheers. Prost.
Why Use Ruby on Rails for Your Startup: Top 10 Reasons
Why use Ruby on Rails for your business project? Read this article and discover the top 10 reasons why Ruby on Rails is the best choice for your startup: [more inside]