Unpacking Jetpack Compose
My journey into Declarative UI

Search for a command to run...
My journey into Declarative UI

Introduction A flow is a stream of data that can be computed asynchronously. It’s useful when we need to emit multiple values sequentially. For example, when fetching data from the server, we can emit different results (Loading, Success, Error…) depe...

A typical image is represented as a matrix corresponding to the intensity of the pixels. Color images use different channels for each color component, such as red, green, and blue. Most digital cameras today come with multiple lenses, high performanc...

Video files are often very large. A typical 1920x1080 video, 30fps, 24 bits color depth will need about 1.5 gigabits for only a second. This is a challenge when we need to store or deliver those files, especially in live-streaming services, where we ...

Videos are becoming a very significant part of our everyday life. The report from The Social Shepherd in 2023 reveals that people watch videos for 84 minutes every day worldwide. Social platforms such as TikTok and YouTube are heavily invested in pro...

Summary The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses. Problem (The problem describes here is similar to th...

Loading bitmaps in an Android app is a tricky task. Bitmap takes an enormous amount of memory. For example, a photo taken on Pixel 6 Pro has about 12.5 megapixels (4080 x 3072). With the bitmap configuration of ARGB_8888 (4 bytes per pixel), loading ...

Summary Abstract Factory provides an interface for creating families of related objects, without specifying concrete classes. Problem Let’s take an example to find out what problems this pattern is trying to solve. Bob is planning to open a car fact...

The ART virtual machine in Android is a managed memory environment. The garbage collector takes care of memory allocation and frees it back to the heap when that piece of memory is no longer being used. Memory leaks occur when objects are no longer b...
