Ashish Ekka •
Jul 4, 2021 • 9 min read
Demystifying Prototypal Inheritance in JS
JavaScript objects supports inheritance, but is very different from other languages like Java, Kotlin or C++.
While the latter ones use the Class
ical inheritance, JavaScript uses something known as Prototypal Inheritance.
Read →
Ashish Ekka •
Jun 6, 2021 • 8 min read
Interface Delegation in Kotlin
Interface Delegation is not a new thing. While it is easy to understand and implement this design pattern, this usually involves a lot of boiler plate code, and the huge changelog that comes with it in case of future alterations. Thankfully, Kotlin does provide a beautiful construct to implement this.
Read →
Ashish Ekka •
May 30, 2021 • 4 min read
Suspension in Callbacks
Using suspend functions, we can make asynchronous code to look alike any another synchronous code.
But what if we can’t directly use suspend functions, and are instead dealing with the good-old callbacks?
Read →