Functions and Methods (With the Traps and Tricks)

These pages are targeted at people who can already program in Python, so the most basic aspects of functions and methods is assumed knowledge, and this page focuses on what is of interest to those who aleady have that assumed knowledge. Default Value Parameters.The default value trap'Pure' functions / methodsFunction overloading Default Value Parameters Both… Continue reading Functions and Methods (With the Traps and Tricks)

Variables & Types (Under the hood)

This posts delves a little deeper in to variables in both Python and Kotlin. Nobody Expects.. Pointers in Python (and Kotlin)Primitive Values vs Reference/Pointer Variables.Mutable vs ImmutableShared Modifications - The Devil InsideClass vs Type in Python & Kotlin Nobody Expects.... In many languages, the simplest variables operate like a calculator memory: A value is stored… Continue reading Variables & Types (Under the hood)

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

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