Categories

Blog categories

Ruby Language

Blog Posts


Posted by Ziyan Junaideen 14 April 2022
A Ruby developer will often require to work with different versions of a Ruby gem. This article discusses the installation and use of a ruby gem with a specific version in the terminal.
Posted by Ziyan Junaideen 29 April 2021
A detailed guide to Ruby splat operator (*), not to confuse with multiplication, is a tool with many uses. It addresses some common Ruby use cases and helps keep code clean and easy to read.
Posted by Ziyan Junaideen 12 February 2023
Install and manage multiple versions of Ruby using the ASDF. ASDF allows you to manage multiple runtimes in one tool. I use it for Ruby, Elixir/Erlang and Node JS.
Posted by Ziyan Junaideen 24 November 2022
Make your code less noisy with the help of the dot-parenthesis shorthand. Start using the .(args)` instead of the .call method in services and other applicable instances.
Posted by Ziyan Junaideen 23 April 2022
The Ruby-retry method allows us to effortlessly retry a met a code block or an error handled method when an error is raised. This posts explains the retry method with an example use.
Posted by Ziyan Junaideen 12 November 2022
Ruby 3 introduced Endless Method definitions that help us write cleaner, neater and better code. Here I discuss examples of how you can use these functions.
Posted by Ziyan Junaideen 16 September 2022
Bring sanity to your code and avoid massive expectation pyramids by chaining multiple conditions inside a single `expect` block.
Posted by Ziyan Junaideen 22 July 2022
Delegation is a commonly used in software design to enforce the Law of Demeter. This article discusses how we can delegate methods in Ruby (using the standard library) and also using Rails.
Posted by Ziyan Junaideen 15 July 2022
Enter the world of socket programming with Ruby. Create a simple TCP/IP server and client with just.a few lines of Ruby code.
Posted by Ziyan Junaideen 18 April 2022
gRPC, a remote-procedure-call framework by Google, is by far one of the preferred RPC frameworks in the wild. Here is a comparison between gRPC and JSON HTTP APIs for interconnecting services.