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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
After almost 4 years, I finally wrote a new Ruby/Rails article. [more inside]
When I want to write tests for legacy code I don’t understand, I turn to the technique of characterization testing. Here’s how I do it. https://www.codewithjason.com/write-characterization-tests/
I wanted to show how the different parts of Rails, it’s dependencies and your application code fit together. Explore the annotated trace and see each of the 2041 method calls made by a Rails server to respond to a request.
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]
My Jekyll site has better build time performance with Ruby MRI - https://www.railsmine.net/2019/02/benchmark-jekyll-build-time-mri-jruby.html
I was playing with the latest beta of Rails and happened to notice the welcome to Rails image has got more inclusive. It is fantastic to see such a well used framework doing stuff like this. [more inside]
This episode of Remote Ruby, we’re joined by Adam Wathan, a full-stack developer, Full Stack Radio podcast host, and author of Tailwind CSS. We spend some time sharing his journey into programming, how he got started with Laravel (PHP framework), how Ruby has influenced his software writing and the story behind Tailwind CSS. [more inside]
Hello, It’s Friday. (Secure) Ruby Quiz Time! Let’s use America’s most popular lottery - Powerball Mega Millions - and make it provable fair by - surprise, surprise - putting the machinery on the blockchain with a contract script in (secure) ruby. Let’s warm-up with the simplest possible lottery first. Join us. Question or comments welcome. Note, the ruby-talk mailing list is the “official” sruby channel. Cheers. Prost.
Hello, I’ve updated Slide Show (S9) - the free web alternative to PowerPoint and Keynote in Ruby - that lets you write your slides / talks / presentations in text w/ markdown (kramdown 2.0+) formatting conventions. Jekyll (and GitHub Pages)-compatible template packs include s6, reveal.js, impress.js,shower.js and some more. Cheers. Prost.
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
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.
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]
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