Hacker News new | past | comments | ask | show | jobs | submit | hswolff's comments login

I'll humbly add myself to this list https://youtube.com/hswolff


Congrats on the release Brian!


This is super exciting! Really excited to try this out and glad to see innovation in this area.

I'm also bummed cuz I've been working on a static site generator for over a year written in node called Yarn as well[1].

I guess it's time for a rename! Any suggestions? :D

[1] https://github.com/yarnjs/yarn


Oh that sucks..How about "yarnish"? It's available on npm, sticks to your roots, and you can play on varnish if you like. Or you can always go the thesaurus route and use fleece, wool, cotton fiber, flaxen thread...


FYI: Made a similar npm module a while ago if you want this functionality locally: https://github.com/hswolff/read-time


Thanks for sharing! The point here isn't just calculating the reading time based on a WPM metric, it's fetching a remote page, analyzing it to find the main content and then doing the maths, among other stuff taking into account any images.


Glad you enjoyed! Thanks for the kind words!


Seconding that, this is far more useful than another TodoMVC implementation for getting a feel for how an Angular 2 app is put together, with multiple pages, data from an API and at least one component with more complex display logic.


:) I've always enjoyed looking through your React HN site as well insin. It's very well done, kudos. Glad to see you continue to iterate on it.


Something I have in my todo list is to use the new angular router (https://github.com/angular/router/) however it doesn't appear to be currently available for angular 2. See issue https://github.com/angular/router/issues/233.


author here, Are you still seeing that? Can you open an issue with further details please?


It is a mistake to assume a browser supports javascript.

Angular/meteor/etc do not generate sane output, as throwing up what is essentially an empty body tag (literally so, in some cases) is not only totally unusable outside the one use-case you have planned for, the page being generated is equivalent to a server error.

The correct solution, of course, is to render the page server side (and cache it, if you're sane), and progressively enhance any features such as XHR-style loading. Some comments later in this thread have mentioned that this might be an upcoming feature in the near future, which is great.

Without server-side rendering? That is still no excuse to serve up an empty page. Put some sort of fallback there, or a link to some alternative page. At a minimum, at least have a proper error message about how your site only only works in browsers that support javascript.


> It is a mistake to assume a browser supports javascript.

I really feel at this stage in the battle that that argument is hurting the call for server side rendering. Don't get me wrong, I have been a pusher for PE for many years but it quite clearly is falling on deaf ears these days.

The reason being is that it's very easy for someone to turn around and say "none of our users that we care about turn js off". However it is much harder to ignore the fact that initial page load times with server side rendering are minimal in comparison to the render-via-js frameworks of today.

I believe we need to follow the performance argument.


I agree. Server side rendering is not currently available for Angular 2.0 but it is in the queue: https://docs.google.com/document/d/1q6g9UlmEZDXgrkY88AJZ6MUr...


FYI: The angular team is working on server side rendering: https://docs.google.com/document/d/1q6g9UlmEZDXgrkY88AJZ6MUr...



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: