Word of warning though - ts-node can be excruciatingly slow. We recently switched a project from using ts-node in our dev environment to compiling with tsc and running with node, and shaved around 5 minutes from our startup time.
Well, that answers something I was wondering about recently.
I noticed in a couple of popular TypeScript (+React fullstack) boilerplates, that they were using ts-node to run the server in production.
Unlike babel-node, there's no mention in the documentation to avoid using it in production - but I figured there'd be performance impact, since it's transpiling on the fly (I suppose just once per require).
More then one second and people will test their code less often. Five minutes and people start relying on the type-checker. Like with the chicken and egg problem, what came first, the type-checker or the need to have a type checker?
It doesn't really help that much with TypeScript native NPM-packages being published with JS and D.TS (TypeScript-definitions) instead of the original source, does it?)
React native doesn't really use css - there are no .css files, no cascading either. It's more like a style engine that uses a subset of css ideas as a starting point.
It uses flex-box (and only flex-box) for layout, adds some convenient shorthands - marginVertical, marginHorizontal, and does some surprising (but useful) things like has transform take a JS array of key value pairs - https://reactnative.dev/docs/transforms#transform
Yes, this point is being strongly overlooked. Worst case scenario they end up like the rest of the world now with a struggling economy and thousands of cases.
By closing their borders it gives them time to build up their healthcare infrastructure, wait for vaccines and other experimental treatments to be vetted so by the time their borders open up again it won't devastate the country like it has everywhere else. These are all luxuries every nation wishes it could have taken advantage of. Criticizing New Zealand's response right now is extremely premature.
Isn't tourism a large portion of the economy there? I'd imagine this isn't going to help. Although no one is really traveling now, so maybe the damage is already done.
For New Zealand the largest source of tourists are from Australia. The opposite isn't true due to the nations population imbalance but New Zealand is still a large source of tourism for Australia.
It may surprise some people but the number of Australians that visit countries overseas is roughly equal to tourists visiting Australia. As wealthy diversified nations tourism for Australia and New Zealand is a net wash in terms of foreign cash flows. Citizens spend as much overseas as tourists coming to Australia. The issue isn't foreign currency gains/losses but a more simple case of the economy and jobs are setup to service a certain number of tourists who are no longer there.
Both nations leaders have met and discussed encouraging bilateral tourism. Honeymoons, family overseas trips, etc. will be bilateral and internal for the time being. If the previously external tourism can be directed internally it'll actually more or less be a wash on topline numbers.
Hey, since you know about this space, could I contact you to to learn some more about it? I'm developing a product that can act as a CMS but is more general and I think more powerful. If you can email me, I'm arthur@everdb.net