imSagarMalhotra Profile Banner
Sagar Profile
Sagar

@imSagarMalhotra

Followers
917
Following
17K
Media
287
Statuses
3K

Android @sharechatapp.🥷🏻 Sharing my passion through videos, blogs and conferences.🚀

India
Joined August 2021
Don't wanna be here? Send us removal request.
@imSagarMalhotra
Sagar
6 months
I contributed to an Open-Source project LIVE🔴 on YouTube!. 1. Explored the codebase. 2. Not used ChatGPT.3. Raised a PR. Livestream link:
Tweet media one
3
0
11
@imSagarMalhotra
Sagar
14 days
Joining your dream company with Average compensation or Joining a average company with your dream compensation?. That’s a tough one for me though.
0
0
9
@imSagarMalhotra
Sagar
19 days
What is your dream income per month that you are satisfied with?.
1
0
4
@imSagarMalhotra
Sagar
20 days
Just ONE great Open-Source project has changed my life. I just can’t accept all the offers I am getting now.
2
0
17
@imSagarMalhotra
Sagar
2 months
I recently joined @sharechatapp for my FIRST in-office job and one thing I can definitely say: there’s a remarkable difference in productivity and communication when you’re working in-office compared to remote WFH.
5
0
19
@imSagarMalhotra
Sagar
3 months
Happy to share that my article has been officially recognised as an authentic source of information by and is now listed on their webpage. Also supported by @proandroiddev 🚀.
Tweet card summary image
mockk.io
Provides DSL to mock behavior. Built from zero to fit Kotlin language. Supports named parameters, object mocks, coroutines and extension function mocking
@imSagarMalhotra
Sagar
3 months
I just published How Does Mocking Work Internally? A Deep Dive into MockK Internals. Make sure to get familiar with internals:.
0
0
5
@imSagarMalhotra
Sagar
3 months
I just published How Does Mocking Work Internally? A Deep Dive into MockK Internals. Make sure to get familiar with internals:.
Tweet card summary image
proandroiddev.com
If you’ve ever written unit tests in Kotlin, you’ve probably used MockK. This famous, powerful, expressive mocking library is designed…
1
0
8
@imSagarMalhotra
Sagar
4 months
My Public contributions: 50 PRs in 3 months. After joining them: 60 PRs in 15 days. Keep pushing yourself 💪🏼.
3
0
19
@imSagarMalhotra
Sagar
4 months
Just 3 weeks into the team, and I became the top contributor of this month. It's not the JOB I am doing, it's the work I love to do even on weekends.
2
0
29
@imSagarMalhotra
Sagar
5 months
@signalapp 50 PRs and counting.
0
0
7
@imSagarMalhotra
Sagar
5 months
Total PRs = 50.
0
0
5
@imSagarMalhotra
Sagar
5 months
Follow me for more Android content.
0
0
1
@imSagarMalhotra
Sagar
5 months
Also used in pair class. val pair = "key" to "value" .println(pair) // (key, value).
1
0
1
@imSagarMalhotra
Sagar
5 months
infix fun Int.add(x: Int): Int = this + x. val result = 5 add 10 // Instead of 5.add(10).println(result) // 15.
1
0
0
@imSagarMalhotra
Sagar
5 months
An infix function is a function that can be called without using dots (.) or parentheses (()), making it look more like natural language.
1
0
0
@imSagarMalhotra
Sagar
5 months
Infix functions in Kotlin. A Thread🧵.
1
0
4
@imSagarMalhotra
Sagar
5 months
Follow me for more android content.
0
0
0
@imSagarMalhotra
Sagar
5 months
// Output:.1 -> A .2 -> A .3 -> A .3 -> B.
1
0
0
@imSagarMalhotra
Sagar
5 months
- flatMapLatest.Like flatMapConcat, but cancels the previous flow if a new value arrives from upstream flow. Useful for UI-related cases (e.g., typing in a search box and canceling old results).
1
0
0
@imSagarMalhotra
Sagar
5 months
// Output:.1 -> A .1 -> B .2 -> A .2 -> B .3 -> A .3 -> B.
1
0
0
@imSagarMalhotra
Sagar
5 months
- flatMapConcat.Similar to flatMapMerge, but runs each flow sequentially instead of concurrently. Waits for the previous flow to complete before starting the next.
1
0
0