Last week I wrote about creating a private token class. This time I wanted to share a neat feature I recently learned about to help facilitate experimental development!
Every week I receive a copy of the Android Weekly email, which contains many articles about the latest trends in Android development. If you don’t subscribe to it already, you can sign up here:
In a recent issue, I read a very interesting article describing Android Studio’s support for Scratch files. This really useful feature allows you to add experimental code that doesn’t pollute your Git repo, yet still has access to all of the libraries/code in your project! I’ve found this really helpful in being able to experiment with new code that I just want to try out or know I’m going to throw away — with the convenience of not having to create a new sample project or risk accidentally checking it in.
Jetbrains has more information on this feature here: https://www.jetbrains.com/help/idea/scratches.html
Perhaps most impressively, Scratch files have an interactive mode where you’re able to preview code output on the fly in the editor — in addition to being able to run and debug the code too.
The original article that inspired this tidbit is: https://zdominguez.com/2019/11/21/scratch-files.html
I encourage you to try this feature out, and let me know in the comments what other interesting use cases you come up with for this! And, please follow me on Medium if you’re interested in being notified of future tidbits.
Interested in joining the awesome team here at Intrepid? We’re hiring!
This tidbit was discovered on December 6, 2019.
Top 10 Youtube channels for Flutter developers (2020)
Damola Adekoya -
Top 5 Courses to learn React Native in 2020 - Best of lot
Install Flutter without Android Studio
Enger Jimenez -
Best ways to learn Kotlin in 2020: browser vs IDE, books vs tutorials, for newbies and Java devs
Jean-Michel Fayard 🇫🇷🇩🇪🇬🇧🇪🇸🇨🇴 -