Home
Dushyant Singh Shekhawat
Cancel

Hello 👋

I'm Dushyant, a software engineer by passion and profession.

I love to learn new things and blogs have been a big part of that learning. So, in the desire to pay it forward, I've decided to start writing a blog as well.

If you are interested in my professional experience, you can read more about that here or just download the resume here


Understanding the basics of ruby enumerators by building one

TLDR Ruby has Enumerator class which allows us to make any object or even piece of code enumerable. These enumerators are only evaluated when used, and thus can contain infinite series. To m...

Ruby different types of strings and heredoc

TLDR Ruby has 6 ways to create strings, ', ", %q(), %Q(), %() and HEREDOCs. Ruby strings have interpolation as well as escape sequences(\n, \t, etc) handling. %Q/%/%q can use any character a...

Understanding Rake, the task runner for Ruby on Rails

TLDR To use rake think in terms of tasks, not files, classes, etc. Tasks can have prerequisites(other tasks) and arguments, and they can be grouped in namespaces. If the task’s work is complic...

HTTP Requests in Ruby the standard way

TLDR Use HTTParty if you can, else Net::HTTP does work, even if it gets clunky. Introduction Almost everyone needs to make HTTP requests. Ruby provides us a working(if non-ergonomic for HTTPS) way...