It’s hard to maintain the app for a long time without refactoring.

Debt

“Debt is an obligation that requires one party, the debtor, to pay money or other agreed-upon value to another party, the creditor.” — Wikipedia

This correlation of loan and debt is real. Countries create public debt, companies get loans, people get mortgages. After I had read “Principles” by Ray Dalio…


How to get a better performance when working with collections.

Software is meant to help people computing mass of calculations. It’s safe to say, that each software uses collections. How much time or resources can we safe by only making our decisions consciously?

Different use cases — different algorithms

First we need to be aware of the use case. There’s no such thing as a one-fits-all…


More than just equality.

It is a common question during interviews to let the interviewer know why you like a data class in Kotlin. The correct answer seems to be an equality for free. Even though it’s a really awesome feature, data class has more of them in the arsenal.

Data class

One simple keyword turned…


Drawing actions without creating an extra layer in layout XMLs.

SpotOn Transact Inc.

I love our new designs! Recently I’ve been working on user interactions. One of them is presented on the GIF above. I wanted to create a custom Drawable, so I can set a background on any view I want without wrapping it with some custom ViewGroup. …


Why we have to choose between safety and tidiness?

https://nvie.com/posts/a-successful-git-branching-model/

Quick note before I begin. GitFlow, was first published by Vincent Driessen in 2010. He suggests a simpler workflow — GitHub Flow — for the teams that do not have to support multiple versions at the same time. …


And why it actually matters for you to use it right

If you still haven’t seen, find my post about design patterns in general. You can find a list of explained design patterns in one place for free! 💰 Also read the article about Factory Method 🏭 or a Builder 👨‍🏭 pattern and how it fits with Singleton.

What is it?

Singleton ☝, as…


If you still haven’t seen, find my post about design patterns in general. You can find a list of explained design patterns in one place for free! 💰 Also read the article about Factory method 🏭 and why it’s one of most powerful design patterns.

What is it?

Abstract Factory design pattern is…


If you still haven’t seen, find my post about design patterns in general. You can find a list of explained design patterns in one place for free! 💰 Also read the article about Builder 👨‍🏭 or use Factory method with a Singleton pattern.

What is it?

Also known as “named constructor”. Why? Because…


If you still haven’t seen, find my post about design patterns in general. You can find a list of explained design patterns in one place for free! …


“Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing in the same way twice.” — Christopher Alexander

Maciej Najbar

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