Dave Posted February 28, 2019 Share Posted February 28, 2019 Anyone else using TypeScript? I've been using it extensively recently whilst writing a Page Builder feature for Magento. It's honestly saved me hours in large refactors and finding simple bugs you'd normally miss when writing plain old JavaScript. https://www.typescriptlang.org/index.html Quote Link to comment Share on other sites More sharing options...
G7470 Posted February 28, 2019 Share Posted February 28, 2019 (edited) I have used typescript for work with the website re-implementation I'm in the process of finishing up for work. It has had its benefits, that's for sure. At least for me, since I didn't really have a whole lot of JavaScript to work with in the re-implementation process to begin with, I didn't use it much. ~G7470 Edited February 28, 2019 by G7470 Quote Link to comment Share on other sites More sharing options...
Dave Posted February 28, 2019 Author Share Posted February 28, 2019 Just now, G7470 said: I have used typescript for work with the website re-implementation. It has had its benefits, that's for sure. At least for me, since I didn't really have a whole lot of JavaScript to work with in the re-implementation process to begin with, I didn't use it much. ~G7470 You’ll thank yourself if you ever do a refactor or onboard other team members into the project! 1 Quote Link to comment Share on other sites More sharing options...
G7470 Posted February 28, 2019 Share Posted February 28, 2019 2 minutes ago, Dave said: You’ll thank yourself if you ever do a refactor or onboard other team members into the project! I hope so! It took some time for me to learn it, haha. I've heard about it for quite a while, so I figured I would give it a try. ~G7470 Quote Link to comment Share on other sites More sharing options...
Dave Posted February 28, 2019 Author Share Posted February 28, 2019 19 minutes ago, G7470 said: I hope so! It took some time for me to learn it, haha. I've heard about it for quite a while, so I figured I would give it a try. ~G7470 The learning curve is certainly interesting, I dislike writing normal JavaScript now though. Quote Link to comment Share on other sites More sharing options...
Dayo Posted February 28, 2019 Share Posted February 28, 2019 We are using typescript to write our HeatingSave mobile app for android and iOS It is weird going between typescript and javascript ? Quote Link to comment Share on other sites More sharing options...
Dave Posted February 28, 2019 Author Share Posted February 28, 2019 1 hour ago, Dayo said: We are using typescript to write our HeatingSave mobile app for android and iOS It is weird going between typescript and javascript ? Oh very nice! Which framework are you using? Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 1, 2019 Share Posted March 1, 2019 We use ionic for all our mobile apps Quote Link to comment Share on other sites More sharing options...
Dave Posted March 1, 2019 Author Share Posted March 1, 2019 2 hours ago, Dayo said: We use ionic for all our mobile apps Oh nice! How’d you find it? I’ve only ever used React Native and Flutter. If you like TypeScript you should check out Flutter, it’s written in Dart which feels a lot like TypeScript. Quote Link to comment Share on other sites More sharing options...
HauntedDawg Posted March 5, 2019 Share Posted March 5, 2019 NativeScript is what you want for mobile apps (or React Native) - https://www.nativescript.org/ Haven't heard of Flutter. Will give it a look 2 Quote Link to comment Share on other sites More sharing options...
Dave Posted March 5, 2019 Author Share Posted March 5, 2019 6 hours ago, HauntedDawg said: NativeScript is what you want for mobile apps (or React Native) - https://www.nativescript.org/ Haven't heard of Flutter. Will give it a look Does this still not end up just being a website within a WebView? Or does it have some crazy magic JS to Objective-C / Java compiler? Going to go and answer my own question! https://docs.nativescript.org/core-concepts/technical-overview?_ga=2.55062443.1060648082.1551772759-150989056.1551772759 it still runs the JS in a Virtual Machine and just has lots of lovely abstractions around core APIs and layout handling. I imagine there’s a minor performance penalty along with increased bundle sizes, but that shouldn’t really be a concern as it’ll be way easier to build and maintain. Quote Link to comment Share on other sites More sharing options...
HauntedDawg Posted March 5, 2019 Share Posted March 5, 2019 (edited) 6 hours ago, Dave said: Does this still not end up just being a website within a WebView? Or does it have some crazy magic JS to Objective-C / Java compiler? Going to go and answer my own question! https://docs.nativescript.org/core-concepts/technical-overview?_ga=2.55062443.1060648082.1551772759-150989056.1551772759 it still runs the JS in a Virtual Machine and just has lots of lovely abstractions around core APIs and layout handling. I imagine there’s a minor performance penalty along with increased bundle sizes, but that shouldn’t really be a concern as it’ll be way easier to build and maintain. We have not found to have any performance impact using NativeScript and we have a variety of mobile apps out there at the moment. The app is truly native though hence "Native"Script ? - it just make's it super easy to maintain without needing 2 different developers cause of different languages. See here for more reading: https://www.nativescript.org/nativescript-is-how-you-build-native-mobile-apps-with-angular Edited March 5, 2019 by HauntedDawg Quote Link to comment Share on other sites More sharing options...
Dave Posted March 5, 2019 Author Share Posted March 5, 2019 15 minutes ago, HauntedDawg said: We have not found to have any performance impact using NativeScript and we have a variety of mobile apps out there at the moment. The app is truly native though hence "Native"Script ? - it just make's it super easy to maintain without needing 2 different developers cause of different languages. See here for more reading: https://www.nativescript.org/nativescript-is-how-you-build-native-mobile-apps-with-angular Makes a lot of sense! I keep going into making an app and never finishing them. I've tried in React Native and Flutter so far, maybe the next one I'll try in NativeScript. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.