HNHacker News
TopNewBestAskShowJobs

thelgevold

206 karma · joined December 11, 2016

submissionscomments
thelgevold··on Comparing the Closure compiler to Uglify
I kept it simple to try to illustrate the main difference between the two approaches.
thelgevold··on Comparing the Closure compiler to Uglify
There is a flag to tell it to process commonJS. I played with that here: http://www.syntaxsuccess.com/viewarticle/combining-es2015-mo...

Combining es6 and commonJS in the same project.

thelgevold··on Comparing the Closure compiler to Uglify
Closure definitely has a steeper learning curve. I also agree that it's not always realistic to use it.
thelgevold··on Comparing the Closure compiler to Uglify
Here is a little bigger app as well http://www.syntaxsuccess.com/viewarticle/migrating-my-angula...
thelgevold··on Comparing the Closure compiler to Uglify
I have a comparison using an Angular app here: http://www.syntaxsuccess.com/viewarticle/angular-application...
thelgevold··on Comparing the Closure compiler to Uglify
Yes. Angular is working on a similar approach. Great results so far.
thelgevold··on Loading Components Dynamically in Angular 2
I definitely agree that there is a bit of a learning curve to Angular. A big pivot for people who are used to version 1.

The thing I like the most is how they are pushing the framework to reduce the footprint. In the upcoming version (4) they have made even more progress on this. There are also plans to introduce the Closure compiler in the build chain, which will lead to further optimizations.

thelgevold··on Loading Components Dynamically in Angular 2
It's unfortunate that the JS framework debate is so biased and subjective. I personally like to play around with several of the frameworks. My conclusion is that all the major players are of comparable quality (Angular, React, Aurelia etc). I think it really comes down to how you use the framework, rather than which one you end up with.
thelgevold··on Ask HN: What are some good technology blogs to follow?
Blog about JavaScript topics like frameworks and web performance: http://www.syntaxsuccess.com/
thelgevold··on JavaScript Tree Shaking in Webpack
Does it show up as ES5 functions? I down transpile it to ES5. Search for BMW and Joe Smith.
thelgevold··on Using jQuery with Angular 2.0
Yeah, I would use it sparingly :-) Mostly to still allow existing jQuery plugins.
thelgevold··on Angular application bundles using Rollup, Webpack and the Closure compiler
It was accidentally committed commented out for debugging, but the numbers from the experiments use uglify and gzip. Updated the repo as well now.
thelgevold··on Angular application bundles using Rollup, Webpack and the Closure compiler
Hi. The author of the article here.

The webpack and Rollup experiments were done with uglify and gzip enabled. The numbers are based on the reported values in Chrome when running the code here: http://www.syntaxsuccess.com/rollup-bundle http://www.syntaxsuccess.com/webpack-bundle http://www.syntaxsuccess.com/closure-bundle

The uglify code was accidentally commented out in the source on Github, but I have fixed that now.