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.
Building Serverless Applications on AWS using the Ruby Runtime
The Ruby Runtime in AWS Lambda now makes it possible to create Lambda’s using Ruby very easily! These Lambda’s can then be used to support a Serverless App. If you like/hate the guide, let me know in the comments. Hope you like it :) Guide: How to Build a Serverless Application on AWS using Ruby
Ruby Quiz Code Challenge #1 - Tic-Tac-Toe Game Contract - And the Solution is...
Hello, Spoiler Alert! Here’s the (secure) ruby reference solution in its full glory for the (Secure) Ruby Quiz - Code Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract. Compare the sruby code to the EOS.IO C++ spaghetti “monster”? I guess the C++ version is at least 10x faster :-). Cheers. Prost. Happy coding and (crypto) blockchain contract scripting with sruby.
Refactoring with Design Patterns - The State Pattern
In this article we talk about a pattern that can be very useful when we need to control the flow of a set of events of our objects: The State Pattern a.k.a Finite State Machine. [more inside]
Debugging Rails Mails With Mailhog
Hey guys, we have a new blog article about debugging emails with mailhog. Check it out at: https://arsfutura.co/magazine/debugging-rails-mails-with-mailhog
What is Rake & How to Use It
You’re probably familiar with the “rake db:migrate” command, but how does that work? [more inside]
CodeFund is looking to help fund more rubyists
CodeFund has a surplus of around $40k/mo that is earmarked for sustaining open source. We fund contributors to the open source ecosystem (blogs, docs, apps, etc). If you are interested, please go to codefund.app.
(Secure) Ruby to Solidity (Source-to-Source) Cross-Compiler Cheat Sheet / White Paper
Hello, I’ve started a new white paper / cheat sheet on a (secure) ruby to solidity (source-to-source) cross-compiler. If anyone is interested in how to turn ruby into solidity (and ethereum virtual machine (evm) bytecode) let us know! Question or comments welcome. Note, the ruby-talk mailing list is the “official” sruby channel. Cheers. Prost.
Stimulus + ActionCable + ActiveJob: Loading Asynchronous API Data
Interactivity. Every web app needs it. And Rails comes with a number of tools, which, together, generate that feeling of a fast, responsive app, with mostly server rendered HTML and a little Javascript sprinkled on top. https://johnbeatty.co/2019/02/19/stimulus-actioncable-activejob-loading-asynchronous-api-data/
It's 2019, why should I still have to know SQL to write a Rails app?
Spoiler: I thought of seven reasons why SQL knowledge is still useful even though Active Record is so great.
Dockerize a Sinatra Microservice
A quick recipe to package your Sinatra app in a Docker container.
Ruby Quiz - (Crypto) Blockchain Contract Edition - Challenge #2 PonzICO Investment
Hello, to kickstart the new ruby quiz (crypto) blockchain contract edition let’s add another (easier) coding challenge: Challenge #2 - Create a PonzICO Investment Contract - Blockchain Performance Art. Let’s use the live and “real world” blockchain performance art PonzICO investment contract running on the Ethereum world computer. Read the PonzICO White Paperfor how the investment scheme and dividend payouts work and what your money will get used for. Can you do better (than the JavaScript-like Solidity “world standard”)? Post your code snippets (or questions or comments) on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Happy hacking and (crypto) blockchain contract scripting with sruby.
Exploring TracePoint - Part Two - Events
Part Two of ‘Exploring TracePoint’ is out where we take a look at the events we can monitor on, and some of their potential uses in debugging:
Form validations with HTML5 and modern Rails
This article discusses an approach to form validations using modern Rails and HTML5 form validations. [more inside]
Rackless Ruby Servers: Why not?
This article explores the interaction between four different Ruby web servers and their respective Rack handlers: https://medium.com/@lfv89/rackless-ruby-servers-why-not-a9f8430067dd
Ruby is a Multi-paradigm programming language
Even if Ruby is a fully Object-Oriented Programming language, it can also be interpreted through some other specific prisms. [more inside]
I Love Ruby free PDF version released
Here is the free PDF version of I Love Ruby http://i-love-ruby.gitlab.io/print.pdf
Rails 6 unnoticed features
Rails 6.0.0.beta1 is out and you may have already tested it. We all have heard about the main features such as multi-database connectivity, Action Mailbox & Action Text merge, parallelized testing, Action Cable testing etc. But there’s also a ton of other cool features that I found interesting. [more inside]
Weird Ruby
Hi there - I’ve put together a list of fun stuff I found in ruby while writing the prettier plugin https://engineering.culturehq.com/posts/2019-02-14-weird-ruby
safestruct gem - Safe Data Structures (Array, Hash, Struct) - Say Goodbye to Nil
Hello, I’ve put together a new safestruct gem / library that collects safe data structures (array, hash, struct) and lets you say goodbye to null / nil (and maybe). Say hello to zero :-) to fix the billion dollar mistake. Stay safe and set all your variables to zero - always, always, always. Cheers. Prost.
Symbol in Ruby
A symbol is a uniq instance of the Symbol class which is generally used for identifying a specific resource.. SEE MORE
Signup and Login using Google Oauth 2 API in Rails 5.2
No devise required! Signup and Login using Google Oauth 2 API in Rails 5.2 You can focus on your application logic instead of wasting time on user management.
TDD and Refactoring with Corey Haines | The Ruby Testing Podcast
Corey and I discuss our approaches to TDD and refactoring. http://www.rubytestingpodcast.com/corey-haines
Ruby Quiz - (Crypto) Blockchain Contract Edition - Challenge #1 Tic-Tac-Toe
Hello, I’ve started a new ruby quiz for secure (crypto) contract blockchain scripting. Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract. Let’s use the “Creating a Tic-Tac-Toe Smart Contract” tutorial and “real-world” sample contract from the EOS.IO blockchain. The challenge: Code a contract for a 3x3 tic-tac-toe player vs player game using sruby :-). Can you do better? Post your code snippets (or questions or comments) on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Cheers. Prost.