updated 1 Jan 2020 To understand how memory works, it can be useful to consider how the CPU itself works, and what follows from that is how memory works. Languages are built on these underlying principles and automate using the different types of memory. This page uses a 'hypothetical programmable calculator' (Magic Calculator), to illustrate… Continue reading Machine Code and Global Memory
OOP vs Functional: No contest!
Moving to kotlin, the question can arise: "should I program in OOP (Object Oriented Programming) style, or move to Functional programming?". This page examines reviews what Object Oriented programming really means, what functional programing is, and outlines how there is no incompatibility if the correct approach to OOP is in place, and the two paradigms… Continue reading OOP vs Functional: No contest!
Java: The king is dying
(originally written 23 May 2017) TL:DR ... but just read the headings in that case. Java is the king. In a similar way that the queen of England is 'the queen'. Java is not everyone's king, and some have another king, but even they may see java as the most recognised king. Certainly, Java is… Continue reading Java: The king is dying
Lists, Dictionaries, Iterations & More
Python uses dictionary, list and tuple to hold collections information, with set also available (but not used as quite as often). Kotlin provides List and Map as collections, and their mutable forms, MutableList and MutableMap as the main solutions for collections equivalent to Python. Further, Set and MutableSet are available matching the python 'set'. 'List'… Continue reading Lists, Dictionaries, Iterations & More
Data Classes: The end of ‘Faux Objects’?
This page introduces the concept of 'Faux Objects': the use of a collections to avoid need to declare a class to represent data, and data classes, the solution that makes removes the barrier to declaring a class for storage as an object. Subtopics: When is a collection actually a 'Faux Object?'The Dual Nature of Data:… Continue reading Data Classes: The end of ‘Faux Objects’?