Getting Better with Kotlin — Exploring Advanced Features and Effective Coding Strategies | by Nirbhay Pherwani | Aug, 2023
1. Inline Classes — Compact Abstractions Example — Inline classes allow us to create lightweight wrappers around primitive types without runtime overhead. Inline Class Example Explanation — In this example, we define an inline class Meter that wraps a Double value. The toCentimeter function showcases…
Anti-patterns You Should Avoid While Coding
‘Anti-patterns’ have been observed in numerous parts of the development process and come in different forms. The most well-known source of anti-patterns is outdated patterns, considered defective when negatively affecting the development process. Becoming outdated can happen rapidly because of outstanding development. The term Anti-patterns…
Android Studio Live Code Templates to Save Your Time Coding | by Tomáš Repčík | Jul, 2023
Please do not waste your time by repeating the same code patterns and spend it creating the apps. Photo by ilgmyzin on Unsplash Android Studio (and any other IDE developed by JetBrains) provides multiple handy auto-complete shortcuts to fill the declarations, method calls, etc. Some…