Get more idea about the block, proc, lambda and currying in Ruby.

Photo by emy on Unsplash


array = [1,2,3,4] do |ele|
end { |ele| do_something }

Let’s explore functional thinking and what it entails wrt Ruby.

Photo by Valeria Bold on Unsplash
# Ruby way
def first_odd(array)…

Ruby is an object oriented programming language.

tommy =“tommy”)

One day I stumbled upon this awesome site called “Exercism”. It mainly focuses on improving your skills via Deep Practice & Crowdsourced Mentorship, Strengthening your problem-solving skills by guiding others through the process.


  1. Am I adhering to the Single Responsibility Principle?
  2. Is all my code on the same abstraction level?
  3. Can I combine conditional clauses?
  4. How does my API look to clients of this code (i.e. how do other classes interact with this class)?
  5. Do I have duplication?
  6. What requirements…

Anjali Jaiswal

Programmer, avid Reader, artist, exploring different trades, fun-loving, adventurous and most of the time a hell-yes person!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store