Showing items from Software Engineering

post-thumb

Menus in a Catalyst app

So… Catalyst, huh? The ultimate promise that a click on a checkbox and minimal effort will bring your iPad app to the Mac. If you have ever tried porting an app with this technology, you surely know by now that it is unfortunately not that simple. But, hey, in the end you finally managed to port your app, in all its glory, to the Mac. You’ve got all, or most of your features, you revamped some controllers, you have it all under control. Catalyst is great, long live Catalyst.

Read more Details
post-thumb

Kotlin contracts

Kotlin logo

Motivation

The Kotlin smartcast feature allows to write cleaner code and reduce boilerplate. However, it does not handle all possible situations properly. For example, suppose that we define a function that returns a distinct value if its parameter is not null. When we execute that function under the condition that the distinct value has been returned, then the Kotlin compiler does not automatically cast the parameter to a non-nullable type.

Read more Details
post-thumb

Kotlin Inline classes

Kotlin logo

Introduction

Any C++ developer knows about inline functions. Kotlin tries to provide a similar concept to classes. The following post explains the basic idea behind inline classes by providing code examples. We first start by defining what an inline class is.

Read more Details