Open in app
Home
Notifications
Lists
Stories

Write
Dheeraj Reddy
Dheeraj Reddy

Home

May 9, 2020

Handling Exceptions Made Easier in Kotlin

The Problem Statement: try{ //I am Jill's intelligent code }catch (ex:Exception){ //I am Jack's frustrated code } As you might have noticed, the above code is kinda sexist.No offence intended, but Jack would have to handle exceptions everywhere across the app making him feel really frustrated and causing work place friction. The Solution: Jack thinks this through.Then suddenly Kotlin’s higher order functions come to the rescue.This way Jack has to write this once.Also Jack doesn’t need to write this in a class.

Kotlin

1 min read

Handling Exceptions Made Easier in Kotlin
Handling Exceptions Made Easier in Kotlin

Apr 28, 2020

Making Kotlin more Pythonic (a bit)

First time I tried Python out, I really liked the usage of the * operator. The code we write becomes much more readable to anyone who’s working with or going to work with the code.Being an android engineer, I thought that I would love to see this kind of usage…

Kotlin

2 min read

Making Kotlin more Pythonic(a bit)
Making Kotlin more Pythonic(a bit)
Dheeraj Reddy

Dheeraj Reddy

Android Engineer at Coviam Inc

Following
  • Adam Hrankowski, ADHD

    Adam Hrankowski, ADHD

  • Ali

    Ali

  • Keith McNulty

    Keith McNulty

  • Elye

    Elye

  • M.G. Siegler

    M.G. Siegler

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable