A.I, Data and Software Engineering

Categoryfront-end

front-end development

Best Android Image Loaders – 2022

chocolate cake on saucer beside iphone

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

petamind

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...

Constraints with Android Worker

petamind

Sometimes, we want our app to perform some background tasks under certain conditions, such as Battery level or network etc. With Worker and Constraints, we can conveniently achieve that. The example problem A worker class that prints a message to the console. class MyWorker(context: Context, params: WorkerParameters): Worker(context,params) { override fun doWork(): Result { Log.i(LOG_TAG...

PETAMIND IS NOW LIVING ON AWS

petamind

After 3 years residing on Google Cloud, we decided to move to AWS. GC is generally OK, however, there is some issue related to the architecture of the previous one that may hinder the future scalability! As such, we decided to re-architecture the site and its workload for the future. There may be some issues after the migration. However, we will check and fix any issue asap. Refer to the...

WHY DO WE NEED TO OVERRIDE EQUALS AND HASHCODE METHODS IN JAVA/Kotlin

In this post, we will discuss why it is important to override equals and hashCode method in Java/Kotlin. Item 9 in Josh Bloch’s Effective Java suggests always override hashCode() method if the class overrides equals(). In this post, we will discuss why this is necessary and good practice.  We know that two objects are considered equal only if their references point...

A.I, Data and Software Engineering

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