The two that do not fit in the same group are the Python With and Kotlin Use. These functions are for using (or doing something with) a resource that should be released when the operation is complete. Kotlin Let, Apply, Run, Also, With (not to be confused with Python With), are all quite similar. Once… Continue reading With,Use,Apply,Also,Run,Let
Available in the Android SDK (SDK Tools) and therefore also in both Intellij IDEA and Android Studio, the Android emulator allows apps be run on a computer used for development in place of running on a phone. This page describes how to run the Android emulator from Intellij IDEA/Android Studio or from a the command… Continue reading Android Emulator
Both Kotlin and Python use the keyword "import". At a superficial level, import performs a similar role in both languages, but the steps for each languages achieve what is required are very different. Examining how import works, explores the structure of Python and Kotlin program, and how they are constructed. Import relies on dependencies, and… Continue reading Structure: Import, Dependencies & Repositories
I found the wikipedia page on namespaces not very helpful, and in fact did not find a concise and clear explanation elsewhere, so hopeful this post provides a clear and concise explanation of the basics, before getting to the more advanced. Contents: Basicswhat is a namespace?runtime vs compile time namespacesglobal namespacesobject namespaces and "."function/method 'local'… Continue reading Namespaces, Modules & Packages
With Python you easily have a whole group of small test programs within a single folder, which provides a simple 'sandbox' environment to try tests and experiments that go beyond what can be done in the Idle REPL. This page describes how to create Kotlin 'sandbox' project that provides a simple solution to creating Kotlin… Continue reading Kotlin: Sandbox Projects
Kotlin is a compiled statically typed language, Python is an interpreted language. While you could interpret Kotlin or Compile Python, the examination in this post shows how the design of each language fits with as a language Kotlin=compiled and Python=interpreted as these are not just implementation choices, but are baked into the respective languages. LT;DR:… Continue reading Languages: Compilers, Interpreters
Already discussed is Global static memory, which is reserved before the program starts, and local stack memory that is allocated at the start of each function, and then released at the end of that same function. Heap Memory is a third type, for when neither global nor stack memory are suitable. Consider, for example, data… Continue reading Heap Memory and Garbage Collection.