Open in app

Sign In

Write

Sign In

Saurabh Kumar
Saurabh Kumar

62 Followers

Home

About

Published in Dev Genius

·Pinned

Android 104 : Do we really need Kotlin Coroutines?

TLDR, Short answer, yes we do! What is not a kotlin coroutine? Coroutines are not threads or in any way lightweight threads, I have seen hazy analogies in various articles but it confuses more often than it helps. What are kotlin coroutines? Strictly speaking, coroutines are instances of suspendable computation, i.e…

Kotlin Coroutines

5 min read

Android 104 : Do we really need Kotlin Coroutines?
Android 104 : Do we really need Kotlin Coroutines?
Kotlin Coroutines

5 min read


Published in Dev Genius

·Pinned

Design 101 : What is the Simple Factory Pattern?

The factory design pattern is based on the simple design principle that we must identify the portions of the code which are likely to change and encapsulate them so that changing the mutable portion of the code doesn’t require changes in other portions of the codebase. Wait! what does encapsulation…

Design Patterns

3 min read

Design 101 : what is the Simple Factory Pattern?
Design 101 : what is the Simple Factory Pattern?
Design Patterns

3 min read


Pinned

Android 101 : What does Dagger really generate behind the scenes 👀

Why do we need to know what dagger generates, why can't we just use annotations and be happy with it? It looks magical to me and that's why I wanted to understand what really happens in the annotation processing step aka the code generation. For understanding this I will go…

Dagger 2

3 min read

Android 101 : What does Dagger really generate behind the scenes 👀
Android 101 : What does Dagger really generate behind the scenes 👀
Dagger 2

3 min read


May 29, 2022

Java-105: Java definitions which I often confuse!

straightaway to the questions ! Is Java compiled vs Interpreted? JDK compiles java source code (*.java files) into bytecode (*.class files) and then finally interprets by JVM to machine code. Can't really put it in one category? What is JRE? JRE provides a Java class loader, class libraries, Java Virtual Machine (JVM), and GC . …

Java

2 min read

Java-105: Java definitions which I often confuse!
Java-105: Java definitions which I often confuse!
Java

2 min read


May 10, 2022

Databases 101 : What are UUIDs? should we care?

UUIDs/GUIDs are formally defined in RFC 4122. They’re Universally Unique IDentifiers, that can be generated without the use of a centralized authority. All UUIDs are 128 bits in length but are commonly represented with 32 hexadecimal characters. Some facts 1. Hex character can be represented in binary system using 4 bits…

Uuid

3 min read

Databases 101 : What are UUIDs? should we care?
Databases 101 : What are UUIDs? should we care?
Uuid

3 min read


Apr 3, 2022

Java 103 : Why do we need wildcards in java ?

? is an unbounded wildcard in java. i.e it can hold anything that comes in its place, representing an unknown type. e.g let's take an example where there is a simple utility function that is only responsible for checking if the size of the given container is ≤ a given…

Java

5 min read

Java 103 : What are wildcards in java ?
Java 103 : What are wildcards in java ?
Java

5 min read


Published in Dev Genius

·Mar 26, 2022

Android 103 : How is constructor injection different from provides method in Dagger?

In the first article, we explored how dagger generates factories for injected constructor dependencies, in this article we will explore more about the dagger-generated code when we use @Provides method instead of constructor injection for defining dependencies or bindings. As mentioned in the previous article, Dagger generates a factory for…

Dagger 2

4 min read

Android 103 : How is constructor injection different from provides method in Dagger?
Android 103 : How is constructor injection different from provides method in Dagger?
Dagger 2

4 min read


Published in Geek Culture

·Mar 13, 2022

Android 102 : Why does dagger generate MembersInjector for us?

We ended the previous article with a simple dependency injection example. now I want to make that a tad more complex by adding MembersInjector into the mix 😈! We introduced MembersInjector as something which helps us inject all dependencies in a class at once, instead of doing it separately for…

Dagger

3 min read

Android 102 : Why does dagger generate MembersInjector for us?
Android 102 : Why does dagger generate MembersInjector for us?
Dagger

3 min read


Mar 12, 2022

Java 102 : Do we really need Executor Service Abstraction ? Spoiler alert, Yes we do!

In the previous article, we ran into the shortcomings of the simple runnable thread abstraction for implementing multithreaded code in java. We will explore the executor service abstraction from the concurrent package and see if it really solves our problems. Just for a reminder! The problem at hand was computing…

Java

4 min read

Java 102 : Executor Service in concurrent Package.
Java 102 : Executor Service in concurrent Package.
Java

4 min read


Feb 12, 2022

Java 101 : What was Multithreading in old-school java like 👀?

Why do we need to read about how multithreading was handled in old-java ? So that we might know what are the pain points that the Concurrent package solves! Let's take up a simple problem to understand this better, computing the sum of each row of a given 2D list…

Java

3 min read

Java 101 : What was Multithreading in old-school java like 👀?
Java 101 : What was Multithreading in old-school java like 👀?
Java

3 min read

Saurabh Kumar

Saurabh Kumar

62 Followers

Cooking Dreams | Engineering at Disney+ Hotstar Github.Handle : https://github.com/LuGO0

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech