Trust me, God loves to see good things.

Image for post
Image for post
Photo by James Lee on Unsplash

So, it’s first September, two thousand and twenty, when I finally realize I’m not doing anything nor productivity that can pursue my future career.

Spent my day during WFH staying up late while studying nonsense tech & programming stuff, watching random YouTube videos, scrolling Instagram seeing my crush’s post before going to sleep, and doing some remote freelance job.

Then, after graduating from my Vocational High School, and getting a High School Diploma, I’m kinda confused & scared. What should I do after this?. What if I failed to get a better future. If I’m not applying any job, do I still can apply to University and advance my study?. …

In-depth guide about the implementation of repository pattern in Android MVVM architecture.

Image for post
Image for post
Photo by Iñaki del Olmo on Unsplash

We know that the application of MVVM architecture pattern in Android app project will really help in building clean and structured code. The main reason is MVVM can separate component based on their respective duties.

In short, MVVM have 3 main component called Model — View — View Model. View component will show data and manage the user interactions, View Model will handle all request and provide all data needed for View, and Model will storing data and handle the business logic.

A beginner guide to understand the essential of Machine Learning.

Image for post
Image for post
Photo by Andy Kelly on Unsplash

Nowadays, all human needs have been greatly helped by the digital systems. Communication, knowledge, health, and many other field have been more advance along with the development of technology.

The ability of technological development has also grown since the discovery of several inventions and investments, one of which is the concept of machine learning. Basically, this concept mainly explains a “machine” or also means “computer” that have ability to learn to solve some problem or predicting new data that may appear in future.

Some example of it’s implementation can already be seen in the health care sector. …

How to guide about implementing Android MVVM architectural pattern.

Image for post
Image for post
Photo by Mark Boss on Unsplash

For mobile apps developer who specialize in native Android, it’s commonplace that when we build a complex apps, we need to manage a lot of code and logic for it. For features such as retrieving data from remote or local database, performing asynchronous task, etc. it will require some implementation in our view (activity or fragment). In the worst case, it can cause code duplication and spaghetti code.

We also have to write the boilerplate code that needed when implementing features. Handling state when device orientation changed is important thing to do too, since we won’t our activity state destroyed when user change it’s device orientation. …

Simple solution to setup custom interface adapter in Gson.

Image for post
Image for post
Photo by William Daigneault on Unsplash

Yesterday, before I write this article, I was facing a problem when trying to Serialize and Deserialize a JSON to an object using Gson.

I was confused at the time, because for somehow, my Gson can’t convert a JSON response to an object model.

The Use Case

Actually, my use case is simple. I need to convert a JSON like this:

to be deserialized to the OutItems object :

Item interface
OutItem object, implement an Item interface
Items (collection of Item) interface
OutItems (collection of OutItem) object, implement an Items interface

But as you can see, my object is a bit complicated. The OutItems have a list property to store a collection of OutItem object. And the reason why I use Item type in the list property is because OutItem implement an Item interface. In OO paradigm, this can be done because of the polymorphism concept. …

Image for post
Image for post
Photo by Jonathan Brinkhorst on Unsplash

The Dependency Injection… maybe for some of you this is the first time you hear about this word. Or you’ve heard about it but don’t know what it’s about?. Or maybe you already know and using it nowadays? It’s OK though, let’s review about it. I’ll explain you the basic of what it is and how it works.

Quoted from Wikipedia,

In software engineering, dependency injection is a technique whereby one object supplies the dependencies of another object. A “dependency” is an object that can be used, for example as a service. …

Image for post
Image for post

In the last post of my creational design pattern series, I’ve described the singleton pattern:

Now, let’s talk about the factory method pattern.

The factory method is a creational design pattern that provides an interface for creating an object in the superclass but allows subclasses to alter the type of object that will be created.

In a simple word,

A factory method is used to create multiple object types in a single interface.

Why use Factory Method?

As I said earlier, this pattern is used to create multiple object types in just a single interface. But what does it mean?. …

Image for post
Image for post

Singleton is one of the design patterns in the creational classification. This pattern lets you ensure that a class has only one instance while providing a global access point to this instance.

This is useful when exactly one object is needed to coordinate actions across the system. The term comes from the mathematical concept of a singleton:

In programming, an object is called singleton if it’s only have a single instance to be used in all your logic code.

Wait, what is an instance?

For a beginner, you may still don’t know the meaning of an instance.
Quoted from Wikipedia,

In object-oriented programming (OOP), an instance is a concrete occurrence of any object, existing usually during the runtime of a computer program. …

The difference of design and architectural pattern in Software Engineering.

Image for post
Image for post
Photo by Med Badr Chemmaoui on Unsplash

This is a steep learning curve. Before you read this article, if you don’t know about design patterns or architecture patterns (in software engineering), I suggest you search some basic references in advance from the Internet, such as Wikipedia.


The design pattern is a term referring to common solutions that be used to solving common problems that occur in certain contexts. Concerned with the (further small) components of a subsystem with their relationships and collaborations with each other. For example, this will help you to solve the problem that you get while creating an algorithm. …

Image for post
Image for post
Photo by JJ Ying on Unsplash

This post is the summarize from Overcomplicated book by Samuel Arbseman — Chapter Introduction.

On July 8, 2015, United Airlines suffered a computer problem and grounded its planes. That same day, the New York Stock Exchange halted trading when it’s system stopped working properly. The Wall Street Journal’s website went down. People went out of their minds. No one knew what was going on. Twitter was bedlam as people speculated about cyberattacks from such sources as China and Anonymous.

But these events don’t seem to have been the result of a coordinated cyberattack. The culprit appears more likely to have been a lot of buggy software that no one fully grasped. As one security expert stated in response to that day’s events, “These are incredibly complicated systems. There are lots and lots of failure modes that are not thoroughly understood”. This is an understated way of saying that we simply have no idea of the huge number of ways that these incredibly complex technologies can go wrong. …


Ezra Lazuardy

“An idiot admires complexity. A genius admires simplicity.” — Terry A Davis

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store