Chronicles of a Ruby Developer
Using Interactors to organise business logic
What is an Interactor My team has started using the Interactor gem to encapsulate complex business logic hence, freeing up the controllers. The Interactor gem presents us with a very nice way of representing one thing that the application does and allowing us to adhere to the Single Responsibility Principle....
Inject,each_with_object,reduce - fun Ruby enumerables
I have learnt to love Enumerables and it is imperative to understand how it works because nobody would want to write nested for loops all the time. Solving problems in Exercism has taught me the joy of using enumerables and how it can effeciently solve problems in a succint manner....
Raindrops exercise in Exercism
So this is how I spent my Friday night before bedtime, solving a problem on Exercism. This is the problem Raindrops Write a program that converts a number to a string, the contents of which depends on the number's prime factors. If the number contains 3 as a prime factor,...
Why you should give technical talks
A Newbie month at my local Ruby meetup had spurred me to give a talk for the first time. It was definitely nerve-racking considering I've only been coding in Ruby for a little over a year now. After submitting the topic of my talk, there was no turning back and...