HN user

sceutre

32 karma
Posts0
Comments14
View on HN
No posts found.
TypeScript 3.7 7 years ago

The latter. You can look at what javascript is emitted on the playground.

  let bar: any, log: any;
  log?.(`foo ${bar()}`);
  
  // becomes
  var _a;
  var bar, log;
  (_a = log) === null || _a === void 0 ? void 0 : _a("foo " + bar());

In webstorm/intellij say you have a react component, one export per module as you say. The import statements are a tie imo to write by hand:

  import MyThing from "../../components/editors/MyThing";
  import {MyThing} from "../../components/editors/MyThing";
But if it's named, you don't need to stop what you're doing, scroll to the top of the file, type out the import statement by hand, and look over at your code tree and figure out the path to the module you want.

You just type MyT Ctrl-Space and let intellij do all that for you, not even having to move out of the function you're writing.

Electron is more active than NW.js looking at their github repos, it has had 25 releases since the last NW.js release for example. Visual Studio Code choosing electron was a big external validation too in my opinion. (no idea if that was a factor though)

Well it still exists and is actually great for distributing Java desktop apps inside a corporate intranet.

But it never caught on because it was a poor implementation of a dubious idea. It started up many hundreds of time slower that Flash, required you to context shift out of the browser, was pretty ugly, and obfuscated the fact it was getting unrestricted access to your machine behind confusing security dialogs.

I think the underlying programming language was the least of its concerns.