Thank you Julius Koronci for reading the blog and leaving the comment. My guess is you are referring to the solution posted by Richard Kivits in the comments above. We kept with classes because there were classes in the existing code and did not wanted to rewrite the full code.

However if you have an alternative solution, please share the code snippet. I would be happy to learn and improve.

--

--

--

Senior Staff Engineer @freshworks. Ex-McKinsey/Microsoft/Slideshare/SAP, Tech Enthusiast, Passionate about India. Opinions are mine

Love podcasts or audiobooks? Learn on the go with our new app.

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
Abhinav Dhasmana

Abhinav Dhasmana

Senior Staff Engineer @freshworks. Ex-McKinsey/Microsoft/Slideshare/SAP, Tech Enthusiast, Passionate about India. Opinions are mine

More from Medium

Everyday Romance

Thoughts 7

I’m waking up on a beautiful day.

The Demodyfi DEX! Two More Days until Release!