by tribby · 10y ago · 0 comments
"I am able to keep the freedom and expressiveness of JavaScript to which I have become so accustomed while getting enterprise-level type checking and refactoring capabilities. Declaration of objects and interfaces is a dream."
I got there from thier other article "Does Electron live up to the hype?"
https://www.cycligent.com/blog/does-electron-live-up-to-the-...
tl;dr - It does
I am not associated with the company. I download and tried Cycligent to see how their Elecron app turned out (I'm a big fan of Electron.) It looks like a decent git client, although it feels like a web app with the dialogs that slide in. I could get used to it. Screen shot:
It creates applications that require at the very least three times as many resources as Qt, which is also a cross-platform tool-kit that allows you a lot of freedom (specially with QML) as well as native OS widgets using a single codebase (although probably compromising on the HIGs' patterns for each OS).
I fail to see how Electron lives up to its hype as a holy grail for cross-platform application development, unless my impression of the hype behind it is wrong.
Meanwhile, Electron and their ilk use all the standard web languages, and JS is nowadays used much more (including on servers), so the code reuse is now actually useful.
Electron is much better than XUL along many dimensions.
At least it doesn't force you to use XML external entities in DTD files for text localization. [1]
You just call the Electron localization function! ;) [2]
[1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tu...
[2] https://en.wikipedia.org/wiki/Electron_localization_function
They solved most of the expressiveness problems; at least for me. And Java only got them a year or two ago didn't it?
I use typescript a lot at the moment, I really miss it now when I have to write vanilla js, but it's still not a great language. You still have to think about 'this' a lot, 'this' still causes bugs, in many ways it's over verbose because every property and method call has to be prepended with 'this.'.
It doesn't mean anything. I guess the author just meant static typing.
I know that is not the case with TypeScript. I believe the recent version added support for union types which is going to blow the mind of the naive JavaScript masses, for sure.
Describing any language as "enterprise grade" is rarely a good thing. Wording and phrasing is important.
Google is bigger than most enterprises, and they don't use any "enterprisey" stuff, not even in their Java.
I doubt Google doesn't use any of the type checking and refactoring tools that come with all Java IDEs out there. You think they rename Java methods with command-line search&replace just to stay in touch with their inner startup? Come on. They're an enterprise like any other and they use what the OP calls "enterprise-level type checking and refactoring capabilities".
I agree that it's a stupid name but I think you're misunderstanding on purpose.
"Modern" type checking is mostly about not writing types and strong inference
Aka
"Of the two languages I know, Typescript is my favorite."