Kotlin: JVM to Multiplatform

The standard way to start a kotlin project is as a jvm project. Perhaps it shouldn't be, as starting as a multiplatform project is just as simple, and provides more flexibility. At this time, there is no way to automatically create a jvm project as multiplatform, without already selecting extra platforms, but it is very… Continue reading Kotlin: JVM to Multiplatform


Functional Programming Introduction

What is Functional Programming?functional programming is not...why 'functional' then?helicopter view: the big picturebenefits of functional programminglimitations of functional programminglearning guide for functional programmingwhy the weird new terms?The ConceptsCategory TheoryPure FunctionsMonoidWhy bother with MonoidsFunctorMonad What is functional programming? What functional programming is not. Python uses functions such as len("my string") in place methods such as "my… Continue reading Functional Programming Introduction

Dates, Datetimes & Timestamps.

Software needs a way to represent a point in time, a 'timestamp', and the difference between two points in time. TimeStamps: What are the problems to be solved?Absolute Time: UTC Time Zones: Time is RelativeDate/Time from which Perspective?Extra Data: Local TimeOriginal Event Time: Key To Reporting.Local Time Calculation & Complications.Timezone SolutionsDateTime Properties & UsageImplementationGeneralPythonKotlinConclusion: Combining… Continue reading Dates, Datetimes & Timestamps.

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)