Not to be confused with the use of the @ symbol, which is an annotation in Kotlin but a decorator in python. Python syntax allows for two flavours of annotations: variable annotations: Introduced in Python 3.6 (2016) function annotations: Introduced in Python 3.0 (2008) Introduction. Both flavours of annotation work in the same manner. They… Continue reading Python Annotations
Tag: coding
What is a DSL?
With Kotlin the term ‘Kotlin DSL’ usually refers to DSLs built in Kotlin using specific Kotlin features (as discussed in 'Kotlin DSLs'), this page, however, is about DSLs in general. Introduction: DSL: The general definition DSL vs 'a DSL' The Types of DSL: External DSL Internal Detached DSL Internal Augmentation DSL Detached vs Internal DSL:… Continue reading What is a DSL?
Language Extension Methodology (LEM/DSLEM) : A Software Development Concept.
With Kotlin, the term 'DSL' has taken on a specific meaning, and that more specific meaning of Kotlin DSLs other pages on this site and elsewhere. In fact, Kotlin DSLs are not just Domain Specific Languages, but Domain Specific Extension Languages. The principle of a DSL, is that languages benefit from The DSLE methodology is… Continue reading Language Extension Methodology (LEM/DSLEM) : A Software Development Concept.
Kotlin multi-platform projects structure
Previously, we talked about how to share code across platforms in kotlin world. But as your code base grows, you will encounter a scenario where some code in the projects is cross, but some other is platform specific, so will not be shared and there may be a version of this code for any or… Continue reading Kotlin multi-platform projects structure
Kotlin code sharing among platforms
When you try to deal with the across platform codes, you need to solve 2 things, one is what to share, the other is the architecture of how to share the code. Different languages have different techniques to the second problem, but in Kotlin, you can use multiplatform projects to share the code. With kotlin… Continue reading Kotlin code sharing among platforms