2 ms·
If I want to write a web application and I go to the API reference, it's unclear where to start. It should say whether each library is browser-only, server-only
by skybrian 12y ago
If I want to write a web application and I go to the API reference, it's unclear where to start. It should say whether each library is browser-only, server-only, or works in both places. For example, is kotlin.dom a client or server API? How about kotlin.io? It says that kotlin.io writes to System.out which is a server-side concept, so I'd guess it's server-only?
It would also be nice to see examples of how to embed kotlin-based JavaScript in a web page, how to call JavaScript from kotlin, and how to expose a callback function to JavaScript.
A good way to help web developers get started might be to port the examples from the React front page to Kotlin.
- hhariri 12y agoThanks. The API docs are being revamped as I mentioned and those things we hope to solve. We're also working on tutorials for JS. Right now you can see info on JS here: http://hadihariri.com/2013/10/16/writing-kotlin-in-the-browser/ http://hadihariri.com/2013/10/16/writing-kotlin-in-the-brows... which discusses usage, interop and getting started.