When it’s it appropriate to comment code? I follow a simple set of rules: If the code is confusing – I try to refactor the code so that it’s not confusing anymore. If a refactoring is not possible, I document the “why”, not the “how”. The “how” is already documented: that’s the code.
Writing a test is easy, ensuring your project is tested, is hard. This post is here to advocate for end-to-end testing, to make controversy mainstream and hopefully convince you to join the cause. At the Android Summit, Donn Felker shared his views on ‘testing for success in the real world’
As Android developers, you know that your app is insulated from other apps in the device by the Android Application Sandboxing model. But the reality is that this sandbox only protects your data. Your APK is completely exposed to other apps, including resources, assets, and code.