A decade especially a formative one calls for a reflection. Despite the strong pull of reason and order, we should allow nostalgia, the chaos of our minds, and the bittersweetness of the lost past to creep in. Not all is lost with time, we gain memories, wisdom, a better understanding of life; and above all, a better grasp of who we are, what makes us, us!

I have no doubt life will continue to surprise me but I’d be interested to see if there will be any significant changes in my core characteristics and beliefs — let me complete; don’t…

The last time I wrote about Fear of Mediocrity (back in 2013) I was naive and ignorant, just like current me will seem five years from now. I used to think a lot then, which I still do, but back then, my thoughts were dominated by my emotions; and it took me a few good years to strike a decent balance between the two pillars: Emotion and Reason. I’m still not there yet, but I think I’m getting there and the balance is sort of stabilising.

Balancing Emotion and Reason

The major misconception I had was — I mixed up being in the middle…

I just want to paint a rough picture for the kid who is going to leave college, about the afterlife which awaits and while doing so — I am going to make some vague generalisations based on my experience, despite knowing that generalisation is a bad thing to do. But I also strongly believe that even the wrong generalisations help the thought process of a young mind and teaches it an important lesson sooner or later…

You might not want to continue reading if you are like me — who believed that my experience should be pure, good or bad…

Poker players are not immune to the ongoing coronavirus crisis, but their skills from the game make it easier for them to survive in such uncertain situations.

Not only have they been surviving in a closed world, but they have also been having a grand time for the past few months, competing day after day against players from all around the globe in the first-ever World Series of Poker online. (I got a tiny taste of it, that will come later; this is not to create suspense, I lost bad)

This process of playing poker for hours and hours is…

The usual Friday evening, I was swimming and enjoying the skill I developed last year. Simple doggy style makes me feel good, while the freestyle makes me pant in one length — I don’t know butterfly, breast stroke or any other advanced style, and so I stick to the elementary way; it takes away most of my unwanted thoughts, forces me to be in the present and allows me to charge up for the weekend.

Kids on my right are floating on their backs, I know I can’t do that, but I don’t feel bad, I know I will learn…

I am waiting for the bus 192 holding my closed grey umbrella; it has been a long time since I’ve waited for a bus.

It’s a lazy Sunday and I’m not in a hurry, but I do miss my cycle.

It’s cold, my hands are freezing and the roads are wet.

The bus arrives and I enter last. I hand over my plastic card and ask the driver for a weekly mega rider. I give him a twenty, the ticket receipt comes out, I collect it along with my card and leave after saying Thank You. …

A family of three is sitting diagonal to me.

Mom asks the kid,“You all right, love?”

Then mom shows dad the picture which their son took last night. The tone of her voice says she is proud of the picture her son had captured.

They are having full breakfast just like me.

I have stopped midway to write. The moment which compelled me to do so was…when mom started Monday with her index finger, looked at her son to imitate her…he did; he opened the tiny index finger while the rest of his little hand remained closed: Monday, then on…

Note: Aimed to guide inexperienced programmers and provide common sense for experienced programmers. Code Snippets and Data Types will be in Scala, but the concepts would be applicable to other languages as well.

In Typesafety 101, we discussed the basics of typesafety using the Option[T] Type, which can either be something (Some[T](value: T)) or nothing (None). We used the get(key) function of Map data structure, which modeled the problem perfectly. `None` could only mean that the key doesn’t exist and we didn’t need any more information, for example a message describing its absence.

If more than one causes are possible…

Note: I will try to keep the articles conceptual, language agnostic* and unbiased, but as Code Quality is subjective, there will not be any clean conclusions or clear recommendations. The goal is to help a beginner (or a less experienced type-safe programmer) to have a better understanding of Types and Typesafety

The concepts noted here would make sense only for statically typed languages (Scala, Haskell, Rust), which take help of a compiler to catch errors as early as possible (At compile time). I’d recommend knowing the basic difference between statically typed and dynamic typed before reading any further.

Also note that statically typed languages might seem like dynamic languages because of their type inference capabilities, but they aren’t. You should understand that being dynamic isn’t just about lack of type annotations, but more about type checking happening on run time instead of compile time.

*snippets will be in Scala but that the points I wish to convey can be applied to any language. I will provide a brief explanation of the langauge specifc types which should be sufficient to understand the concept.


Before we dive into the grey area…

Swagger is a fancy tool (combination of libraries), which generates beautiful documentation for your REST APIs. All you need to do is add some annotations to your code, okay, more than some, in fact, many at times if you want the documentation to be perfect and self-explanatory!

I prefer to use Swagger over Postman collections because once you invest some time into adding annotations, you don’t need to worry about the inconsistency between code and documentation because documentation is generated from the current code. More importantly, you don’t need another tool installed (as in the case of Postman or Terminal/Console…

Saheb Motiani

A writer in progress | A programmer for a living | And an amateur poker player

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