With,Use,Apply,Also,Run,Let

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

Advertisements

Structure: Import, Dependencies & Repositories

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

Namespaces, Modules & Packages

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

Static Typed vs Dynamic Typed Languages

Programming languages are categorised as either static typed ,or dynamic typed, and the differences may actually surprise, as they go deeper than it may seem at first. Contents: Dynamic Type Variables: The Obvious, but Superficial Difference Dynamic Types: A Deeper Difference Strange Behaviours Behaviour Summary: Total flexibiliy, total uncertainty Static Types Compile Time vs Run… Continue reading Static Typed vs Dynamic Typed Languages

Gradle, Maven, Ant, other build tools and History

Introduction While the components of a python program are installed with pip install or similar, the components of any compiled program (such as kotlin) need to be combined together or 'built' using a build tool. This page gives an overview of build tools, while other pages in the build section of this site explain how… Continue reading Gradle, Maven, Ant, other build tools and History