๐ฆ๐ต๐ผ๐ฟ๐๐ฒ๐ป ๐๐ผ๐๐ฟ ๐ณ๐ฒ๐ฒ๐ฑ๐ฏ๐ฎ๐ฐ๐ธ ๐น๐ผ๐ผ๐ฝ ๐ณ๐ผ๐ฟ ๐ณ๐ฎ๐๐๐ฒ๐ฟ ๐ฟ๐ฒ๐๐๐น๐๐!
This actually applies everywhere in life - not just in programming. But in programming - itโs crucial to shorten your feedback loop.
Recently, Iโve been working with some obscure Google services - Google Play Asset Delivery and Google Play Feature Delivery. Both are not very popular services and the documentation is kind of terrible (didnโt expect that from Google tbh).
Hereโs the problem, though - you canโt debug the code with these services. Because you have to bundle the assets and the modules (as split apks) together, you canโt debug through Android Studio. Therefore no access to the debugger. So the quickest feedback loop is thrown out the window straight away.
Hereโs how I went from an incredibly slow feedback loop to less than 1 minute to get feedback.
- Uploaded signed builds to Internal Testing (~10+ minutes to feedback, considering the build was 1.5 GB)
- Uploaded unsigned builds to Internal App Sharing after the app was approved (~5 minutes feedback)
- Swapped production assets/modules for test modules/assets, which are 6x less in size (~3 minutes feedback)
- Used bundletool for local testing before uploading to Play (~2 minutes feedback)
- Wrote a script that adds/removes resources locally, builds the bundle, converts it to APK, and then pushes it onto the device (<1 minute feedback)
At around point 5 - thatโs where the productivity skyrocketed.
Fast feedback loop == faster improvement == faster results.