Skip to main content

10 posts tagged with "kotlin"

View All Tags

· 2 min read

If you feel curious how would an implementation of decorator design pattern look like in Kotlin, this might be the right place for you. This example is just a very basic thing that you then tweak until it’s perfect. Pattern definition can be found at Wiki, but what’s important is that you can compose chain of decorators at runtime and in such a way – you can control runtime behavior of your system.

· 3 min read

Kotlin language recently gained some traction owing to Google promoting it as a primary language for writing android apps. Kotlin has already been for a while in production owing to it’s creator JetBrains incorporating it in own tools, such as Intellij IDEA and so forth.

· 4 min read

Kotlin language can come quite handy write concise and expressive code, without too much boilerplate, while keeping all advantages of being JVM citizen. Let's quickly peek into example of creating Factory method creational design pattern implementation.

· 3 min read

Continuing series of blog posts related to Kotlin, today we’ll together make a sample application showing us how we could automate email sending – using Kotlin programming language. Example is quite simple, and surely – you can enhance it with own features. Application mostly demonstrates compact Kotlin syntax, as well as full compatibility with Java or 3rd party libraries (in this case Apache commons-mail library).