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.
Ruby 2.6
Christmas is around the corner, but I couldn’t wait and I have already been trying the new Ruby release! Ruby 2.6, apart from efficient improvements, which include the initial implementation of a just-in-time compiler, brings us many new cool features (including my Array#union and Array#difference methods). Taking advance of the cold outside, let’s discover some of them! [more inside]
The Three Ghosts of FizzBuzz: A Christmas Story
A Christmas-y journey to three different programming paradigms, all using Ruby. [more inside]
Maily v0.8.2 release
A new version of Maily (https://github.com/markets/maily) v0.8.2 has been published. Mainly, includes fixes for incompatibilities with last mail gem (released last month and internal Rails dep), which causes HTML emails renders always as text. So if you are using that mail version, please upgrade.
Ruby 2.6 JIT - Progress and Future
Over 10 months, Ruby’s JIT has evolved for the following focuses: Performance Portability Stability Security Let me show you what we’ve achieved for each of them in Ruby 2.6.
base32-alphabets gem v1.0 Update - encode/decode bits & bytes in 5bit groups (2^5=32)
Encode / decode (big) numbers in 5-bit groups (2^5=32) with Kai, Crockford or Electrologica notation / alphabet with the updated base32-alphabets library / gem. Happy bits & bytes slicing with ruby (or deciphering the CryptoKitties genome / genes / 240-bit integer number). Cheers. Prost.
What are Value Objects and benefits of using them
Value object is an immutable object without any history or distinct identity. It is represented and compared by value (combination of its attributes). Value objects are very handy for several reasons. This post explores them: [more inside]
Elixir vs. Ruby and Phoenix vs. Rails: What to Choose and Why
Now a new programming language called Elixir and its the most popular Phoenix framework have been discussed by web developers for a couple of years. The most favorite topics are Elixir vs. Ruby and Phoenix vs. Rails because Elixir has caused the greatest interest in the community of Ruby developers. [more inside]
MiniMagick Gem: How to Transform Images Using Ruby
Do you work with any kind of images in your Ruby application? Then there is a good chance you’ll want to change these images in one way or another. In this new article you’ll learn how:
101: Law of Demeter
In this blog note, we will explain what is the Law of Demeter, when is it broken and how to avoid breaking it by making the architecture of application better. Read more…
Mastering data structures in Ruby — Recap
Writing this series has been lots of fun, and based on feedback, I decided to write this post to provide an index (so posts can be bookmarked), and to tell you what this series was all about and what you can learn from it. So, with no further ado, let’s dive in. Mastering data structures in Ruby — Recap
How does Rails renders your templates?
This is the second post to explain the Rails template rendering mechanism. Hope you enjoy it :-)
Diving into the Ruby source code: BigDecimal rounding options
One of the best ways to increase your understanding is to dive into the source code. Jonathan Miles recently did just that to better understand BigDecimal rounding options in Ruby.
Image Upload Carrierwave Tutorial with Jets Ruby Serverless Framework
We’ll cover how to upload images or any file with Jets and Carrierwave in this tutorial guide. The full source code and a live demo is provided in the post.
Building AWS Lambdas for Real World using Ruby and Serverless Framework
Currently, you can easily find several blog posts and tutorials explaining how to build your own Lambda functions in Ruby, most of them using the famous Hello World as example, which is good as a starting point, but, let’s be honest, you won’t need to build something as simple as a Hello World. You will need to face real-world issues regarding automated testing, using other services, building/deploying, handling dependencies, etc. [more inside]
Project health indicators on the Ruby Toolbox
The Ruby Toolbox is a website that tries to make finding popular and maintained open source Ruby libraries easier. In a recent community survey many users requested a better way to see the maintenance status of libraries. Today, I have launched new project health indicators to help with that.
Serverless Slack bot on Lambda with Ruby (and what’s the less pleasant part about it)
A journey of moving our slack bot from Heroku to AWS Lambda:
How to Reduce Memory Usage by Tuning Gemfile
Hey! I’d like to share a simple technique for reducing memory usage in Rails apps by splitting gems into web- and worker-related groups and loading only what’s necessary:
very simple guard implementation
Tired of manually specifying “rspec models/user.rb controllers/users_controller.rb … “ [more inside]