4 ms·
I've always felt that JS could have been the language for shared mobile & server business logic. Write a throwaway script in a light, fast interpreted language,
by hitekker 6y ago
I've always felt that JS could have been the language for shared mobile & server business logic. Write a throwaway script in a light, fast interpreted language, and then share it with your compiled, native platform-specific UI code. If you need to update that one script, the app can phone home and get the latest. No need to update the entire app.
That's how I wrote multiplatform code 7 years ago, using hidden webviews in the background.
Unfortunately, Android or iOS to this day have not supported JS (or really Node/V8) as a first-class citizen. The best approach is still just to use webview, which has a performance cost, amongst other complexities.
Time will tell if Kotlin Multiplatform is light enough and has the minimum number dependencies to warrant its inclusion in mainstream, high-traffic applications.
- snappytrap 6y agoSquare has been using it for awhile: https://developer.squareup.com/blog/developing-on-ios-and-android/ https://developer.squareup.com/blog/developing-on-ios-and-an...