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.

Interfaces, Delegation & Composition vs Multiple Inheritance & Duck Typing

Kotlin has Interface, Abstract Classes and Delegation, while Python has multiple inheritance. Different tools, same problems.  The different tools reflect an evolution of what Object Oriented best summed up by: Composition over inheritance. The rethink, the new concepts and how to use them are explained here. Abstract Classes Interfaces:  Duck Typing with Safety Multiple Interfaces… Continue reading Interfaces, Delegation & Composition vs Multiple Inheritance & Duck Typing