Skip to content

Instantly share code, notes, and snippets.

View firdaus1453's full-sized avatar
💪
Never give up!

Muhammad Firdaus firdaus1453

💪
Never give up!
View GitHub Profile
- Follow the file prd.md, requirements strictly for features, UI, and functionality.
- Ensure all features are implemented as per the PRD specifications.
- Always use Best Practice, Clean Code Principles, and SOLID Principles.
- Always look for existing code to iterate on instead of creating new code.
- Do not drastically change the patterns before trying to iterate on existing patterns.
- Always prefer simple solutions
- Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
- Write code that takes into account the different environments: dev, test, and prod
- You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested
- When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation af
@firdaus1453
firdaus1453 / MainActivity.java
Created July 25, 2020 11:45
MainActivity.java
package me.firdaus1453.crudapi;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import java.util.List;
import butterknife.BindView;
@firdaus1453
firdaus1453 / LoginActivity.java
Created July 25, 2020 11:42
LoginActivity.java
public class LoginActivity extends AppCompatActivity {
@BindView(R.id.edtEmail)
EditText edtEmail;
@BindView(R.id.edtPassword)
EditText edtPassword;
@BindView(R.id.btnLogin)
Button btnLogin;
@Override
package id.gits.shober.cart.ui.setorders
import android.content.Context
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.ImageView