HomeBadges
Blog Author Picture

Vishnuprasad K

1 follower

Software Engineer | Tech Enthusiast | Cricketer

Ruby | Safe Navigation Operator

Oct 22, 20201 min read

&., called “safe navigation operator”, allows to skip method call when receiver is nil. It returns nil and doesn't evaluate method's arguments if the call is skipped. The operator first appeared in Ruby 2.3. For instance, consider the Person class: c...

Ruby | try

Sep 17, 20201 min read

Hello, I use code snippets rather than long English paragraphs to explicate the working. Let's take a look at Ruby's try method:

Ruby | dig and fetch

Sep 12, 20201 min read

dig and fetch are two powerful methods for manipulating a Hash object in Ruby. dig Pass the comma separated keys in the order of the nesting to dig the hash and obtain the value. fetch This method fetches value for key from the hash provided. fetc...

Impressum

Backend Engineer with 3+ years of experience in Ruby On Rails, GraphQL, Redis, ElasticSearch, Kafka, RabbitMQ, Flask(Python) and Agile Methodology

© 2021 VPK

PrivacyTerms
Proudly part of