3 ms·
This is a great discussion! Reading good code is the best way to learn. Reading the NativeScript code gave me a really good impression of TypeScript, although
by DonHopkins 9y ago
This is a great discussion! Reading good code is the best way to learn.
Reading the NativeScript code gave me a really good impression of TypeScript, although I'm just learning it and haven't written much yet myself.
https://www.nativescript.org/using-typescript-with-nativescript-when-developing-mobile-apps https://www.nativescript.org/using-typescript-with-nativescr...
I have a huge blob of old JavaScript cellular automata code I want to rewrite in TypeScript, but first I want to read some good TypeScript code before starting so I don't mess it up.
It has a bunch of old "frameworky" meta-programming code and data structures that I've painted myself into a corner with (see the "type definitions" comments), which I'd like to throw away and re-implement from scratch, because TypeScript is much better suited for that kind of stuff. And then there's a bunch of brute force bit bashing and number crunching code that I hope will just run without any modification and only a little repackaging, which is another nice benefit of TypeScript.
https://github.com/SimHacker/CAM6/blob/master/javascript/CAM6.js https://github.com/SimHacker/CAM6/blob/master/javascript/CAM...