
I can acknowledge this, as I remember using it myself back in 2017! If there are any iOS developers still reading at this point, I know what you’re thinking: the Swift Playgrounds app has been out for some years now. How does it compare to Swift Playgrounds? Differently, the embedded playground instance not only gives more freedom to the sharer on how it looks, but it sports a more dynamic view that doesn’t require any cookie agreements and resizes itself as required. Nevertheless, copying the link seems to truncate the view a lot more, and requires accepting the cookies agreement as a regular website would.


It should be noted that both ways of adding a preview - either by copying the link and pasting it or by embedding it directly - allow the reader to execute and edit the code directly in the panels that are shown. Simply, access and you can start playing around almost immediately! Using the Kotlin standard libraries only, the Kotlin Playground can run mildly complex blocks of code directly in your browser without much setup, and without the burdensome matter of ramping up and working with a chunky IDE. Initially published about 5 years ago, the Kotlin Playground is an online lightweight compiler that allows Kotlin programmers to run code directly in the browser using different versions of Kotlin, and even target different platforms.Īdditionally, the Kotlin Playground gives developers the opportunity to both share their code with other people, as well as embed a small version of the compiler into websites, and particularly into Medium. For these kinds of situations, the lesser-known Kotlin Playground is a great option to try out code on the fly.

As a modern Android developer, sometimes I find myself with the need of wanting to run some small snippet of code.
