Articles

Kotlin Best Practices: Elevate Your Code

K

Introduction: Kotlin, the versatile and powerful programming language, has taken the development world by storm. Its concise syntax, seamless interoperability with Java, and robust features have made it a favorite among developers. In this article, we will delve into the top 10 Kotlin best practices that will not only elevate your coding skills but also boost your app’s performance and...

The Top 5 Most In-Demand Programming Languages to Learn for a Bright Future

T

Introduction: When Computers Were Human by NASA’s Marshall Space Flight Center is licensed under CC-BY-NC 2.0 In the fast-paced world of technology, staying ahead of the curve is crucial for aspiring programmers. As the demand for software developers continues to surge, knowing which programming languages are most sought-after can give you a competitive edge in the job market. In this...

Convert Callback Into Kotlin Coroutines Suspend or Deferred

C

Since coroutine is a hot topic in mobile development, converting vanilla JVM callback into Kotlin Coroutines is desirable. The wrapping happens using something called SuspendCoroutine. What is a SuspendCoroutine suspendCoroutine is a builder function that mainly used to convert callbacks into suspend functions. Let’s say for example you have some legacy (or not) Api...

Best Android Image Loaders – 2022

B

In this article, we will explore some of the best Android image loaders for you. These are some of the most commonly used third-party libraries since Android SDK doesn’t provide a simple image loading solution for developers to use. Generally, you tend to have to implement one yourself or look at third-party libraries. Photo by Tim Gouw on Pexels.com Glide Glide is a fast and efficient open...

Kotlin Scoping Functions apply vs. with, let, also, and run

K

Functional-style programming is highly advocated and supported by Kotlin’s syntax as well as a range of functions in Kotlin’s standard library. In this post we will examine five Kotlin scoping functions (aka higher-order functions): apply, with, let, also, and run. When learning these five functions, you will need to memorize 2 things: how to use them, and when to use them...

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Categories