Skip to content

Instantly share code, notes, and snippets.

View KvRae's full-sized avatar
👀
Free Palestine

Karam Mannai KvRae

👀
Free Palestine
View GitHub Profile
@KvRae
KvRae / VerticalDashedDivider.kt
Created May 24, 2024 14:04
A vertical dashed divider implementation for jetpack compose
/**
* A vertical dashed divider that can be used to separate content in a composable
* @param modifier the modifier to apply to the divider
* @param thickness the thickness of the divider
* @param color the color of the divider
* @author KvRae
*/
@Composable
fun VerticalDashedDivider(
modifier: Modifier = Modifier,
@KvRae
KvRae / Guide.md
Created May 7, 2024 14:36
Full guide on how to integrate bitbucket pipelines with your Android project to build and deploy your artifact (APK) to Firebase App distribution

Android Project with Bitbucket Pipelines and Firebase App Distribution

Bitbucket Firebase

Kotlin clean code and best practices

Clean Code Rules

Our main aim is to have a clean code, avoid common silly mistakes and reduce the load on engineers during PR reviews. This is a team effort and If anyone has something that’s generally applicable, let’s talk and decide whether it should be baked into our style guide— so everyone can benefit from it

The bad code creates a lot of distractions. It causes developers to waste time and energy navigating through functions, classes, and files, and pouring over code trying to understand it.

Working on a project where developers care about clean code makes it easy to understand its virtues; the developer can read the code from top to bottom in one go and clearly understand what it does. It makes code manageable and maintainable in the long term, isolating changes and increasing the efficiency of the team.