Understanding App Architecture - Why It Matters
A student's journey from "just making it work" to writing better Android code INTRODUCTION When I first started learning Android development, I thought my work was done when my app ran without cras...

Source: DEV Community
A student's journey from "just making it work" to writing better Android code INTRODUCTION When I first started learning Android development, I thought my work was done when my app ran without crashing. I would write code, click run, and if the app worked, I was happy. But as I built more features in this course, I discovered that making an app work and building an app well are two completely different things. In this article, I will explain why app architecture matters for Android development. I'll explore the difference between code that just works and code that is well-structured. I'll explain MVVM architecture in my own words and why it's better than putting everything in an Activity. Finally, I'll share my personal experience working on apps in this course and what I would do differently today. SECTION 1: Code That Works vs Well-Structured Code When I first started learning Android, I thought if my app runs and doesn't crash, I'm done. That's what I called "code that works." But a