As outlined on 'what is a DSL', both intent and implementation of DSLs vary considerably. The two types of internal DSL are most relevant to these pages, and how to implement an external DSL can be is 'off topic' for these pages, but the goals of external DSLs and a DSL-Full are the same, so… Continue reading Building DSLs: Why, When & How?
Author: pscitechian
Language: The Core of DSL design
For both standalone DSLs and language extensions, to build a DSL is to build new language. Being restricted to specific domain should allow the language to be small and simple, but it is still building new language. How do we keep new language intuitive and simple? This page looks at the basics for guidance. What… Continue reading Language: The Core of DSL design
Class data: Getters, Setters & Properties
Data: fields vs properties Boilerplate Getters and Setters Cutting the boilerplate, and the impact Beyond the boilerplate for getters and setters Data: fields vs properties Classes have both functions called methods and instance data or fields. Python also uses the term properties, for data that has an explicit getters function and optionally setter a setter… Continue reading Class data: Getters, Setters & Properties
Defining, Construct & Init for Classes
defining classes: constructors and init python vs kotlin Syntax Hopefully the above python code is self explanatory. Example 2 adds a base class. I do not deal with multiple inheritance at this time, and will devote a specific page at some future time as for python it gets complex, and for kotlin it requires additional… Continue reading Defining, Construct & Init for Classes
Background & History of OO Languages
Background Python, Kotlin or Java, which best supports Object Oriented Programming (OOP)? History. Simula 67 (in 1967) was probably the first Object Oriented Language. It was a great language, but wow was it slow! And slow even on the massive mainframe computers it lived on. The origin of C++ was to add the power of… Continue reading Background & History of OO Languages