News for hackers. Stuff that matters.
Re:TypeScript 3.0 by finaliteration on Tuesday September 04, 2018 @12:16PM (#17910116)
I’m genuinely curious: Why are you not okay with the compilation step? I work primarily as a developer using compiled languages so I may be missing something.
Re:TypeScript 3.0 by TekMol on Tuesday September 04, 2018 @12:19PM (#17910156)
There are many aspects to it. From setting up a new project to 'edit a line and reload in the browser'. Everything feels so much faster, lighter, fresher.
Re:TypeScript 3.0 by stefanfisk on Tuesday September 04, 2018 @12:34PM (#17910306)
I'm one of many who don't seem to understand your point of view. how would editing and reloading be faster than hot reloading? I usually edit my styling live in Sublime while viewing the changes in Chrome.
Re:TypeScript 3.0 by TekMol on Tuesday September 04, 2018 @01:13PM (#17910736)
Styling?
Re:TypeScript 3.0 by szatkus on Tuesday September 04, 2018 @03:03PM (#17911835)
I usually write down styles to some kind of Notepad and then rewrite it to sass. At the beginning it was annoying, because I was forgetting that my css will be reloaded, but I got used to it.
Re:TypeScript 3.0 by stefanfisk on Tuesday September 04, 2018 @01:38PM (#17911034)
yep, as in style sheets. personally I prefer Sass before native CSS, so I usually use the broader term to avoid assumptions about the technology stack used.
Re:TypeScript 3.0 by spankalee on Tuesday September 04, 2018 @12:40PM (#17910375)
tsc --watch is incredibly fast.

And you don't need a bundler and hot-reloading. Just stick to JS modules, output JS modules and let the browser take care of it.

Re:TypeScript 3.0 by peterkelly on Tuesday September 04, 2018 @12:45PM (#17910426)
But when you use a tool like webpack it's even simpler - you just save your file and it recompiles & reloads.

You can also run 'tsc -w' (watch mode) and it will automatically recompile as soon as files change. And since doing so maintains a local cache of the compiler's state in memory it's extremely fast.

The tiny amount of time I spend waiting for compiles is several orders of magnitude less than when I had to deal with the lack of static typing, particularly when refactoring code.

Re:TypeScript 3.0 by ww520 on Tuesday September 04, 2018 @12:32PM (#17910287)
Fast REPL cycle.