Author

Sundeep Gupta

Sundeep Gupta is a Software Engineer at Connected.

Posts by

Sundeep Gupta

Software Development

Express Impossible Code in Swift with Never

This post explores Swift’s Never via two real-world examples. It illustrates how we can write impossible to execute code — expressed via types. This reduces our need to use fatalError, and // This should never happen comments. Writing expressive, clean code is important for building quality products that are maintainable. Moreover — it feels good!

Never, never say never

May 7, 2019

Software Development

Making Sense of FlatMap: An Rx Story

My team and I recently discovered a bug in one of our projects, and the culprit turned out to be the FlatMap operator—or rather, our misuse of it. I don’t know why, but FlatMap...

June 6, 2018