Live data from Hacker News

Tell HN: Thank you for not redesigning Hacker News

news.ycombinator.com

371–380 of 398 posts

Re: Tell HN: Thank you for not redesigning Hacker News

#372
post #237

Earlier quoted context omitted.

How could it possibly be considered a good thing? I've seen dang say before that they've been running into performance issues, and I bet that they'd see a significant drop in resource usage solely by not generating entire comments pages just to throw them away every time anyone votes on a comment. The response is literally not used at all, they're doing that work and sending that data for no reason. There are multipl…

It's implemented this way for balance of a simple implementation and how lightweight it is. Not to mention, there is at least one benefit: the voting mechanism doesn't depend on JavaScript. And if you are not authenticated, you are instead taken to a login page. Logging in then gives you the redirect and the upvote is registered.

It is possible to do both. Such as, have the link like it is now, but add a JavaScript code which replaces the link with one that executes the JavaScript code to make a request that returns nothing (if you are logged in). If JavaScript is disabled or unimplemented, it will still work.

Re: Tell HN: Thank you for not redesigning Hacker News

#374
post #19
post #8

I wish they would update the line-height to something more reasonable. ~1.5x font size would be go a long way in paragraph readability. Other than that, it's fast and stable. About all I require from a forum. Edit: All my lovely responders, I appreciate the feedback, but I don't want to install addons/mods/hacks to fix line-height.

Another awesome thing about simple sites like this is you can hack the CSS really easily with something like Stylus. https://addons.mozilla.org/en-GB/firefox/addon/styl-us/

Yes, it is good. (I tend to only use it for sites that already use CSS; for those that don't, the default is almost always good enough.) Even on Hacker News, I use that to do two things: to make all comment text black, and to display dotted lines for the comment indentation to make it more easily to be seen the indentation level (it is implemented as simply a tiling background picture). (For more complicated web pages, I often need to add a lot more stuff to make it work reasonably.)

Re: Tell HN: Thank you for not redesigning Hacker News

#375

Earlier quoted context omitted.

Can't frame tags reload independently?

It's still a full page refresh but with a page within a page. Making every comment a separate iframe would make the site very resource intensive on client and server.

I dont see why it would be resource intensive server side. In fact, it would be less resource intensive, since we avoid a full page reload and instead reload a single comment iframe.

As for the rendering engine, a iframe tag per comment is nothing compared to the pile of JS that's normally there on other sites.

Re: Tell HN: Thank you for not redesigning Hacker News

#376

Earlier quoted context omitted.

I log in to www.reddit.com, and have the "use new reddit" box unchecked. Anytime I click a link to reddit (including np.reddit links) it honours my preference of avoiding new reddit (checked just now by a quick reddit search on site:reddit.com) So maybe this is a misfeature on old.reddit.com, or you don't have the box unchecked?

As an example: visiting the Ask Historian's wiki in Old, all the links redirect to New. https://old.reddit.com/r/AskHistorians/wiki/index

Ok, well if I visit that url and click links to reddit posts, like [1] under April Fools, they go to www.reddit.com but my preference setting of not seeing new reddit is honoured there. (i.e. looks the same as if I did s/www/old/ on the url.)

Not sure if you're saying that setting's not working for you or you're just annoyed that it doesn't explicitly link to https://old.reddit.com../blah/..

1: https://www.reddit.com/r/AskHistorians/comments/b7rums/why_d...

Re: Tell HN: Thank you for not redesigning Hacker News

#377

Earlier quoted context omitted.

It's still a full page refresh but with a page within a page. Making every comment a separate iframe would make the site very resource intensive on client and server.

I dont see why it would be resource intensive server side. In fact, it would be less resource intensive, since we avoid a full page reload and instead reload a single comment iframe. As for the rendering engine, a iframe tag per comment is nothing compared to the pile of JS that's normally there on other sites.

Every frame is still a full HTML document that needs to be generated even if it just contains a single comment. This page has 370+ comments which would mean 370+ additional HTTP requests to load them all as standalone HTML pages. That's a massive increase in server load.

On the client, iframe tags are entirely separate browser windows and can use up considerable resources. It's like opening up hundreds of tabs and is far more intensive than running some javascript code which is quickly parsed, compiled and cached in modern JS engines.

Re: Tell HN: Thank you for not redesigning Hacker News

#378

Earlier quoted context omitted.

I dont see why it would be resource intensive server side. In fact, it would be less resource intensive, since we avoid a full page reload and instead reload a single comment iframe. As for the rendering engine, a iframe tag per comment is nothing compared to the pile of JS that's normally there on other sites.

Every frame is still a full HTML document that needs to be generated even if it just contains a single comment. This page has 370+ comments which would mean 370+ additional HTTP requests to load them all as standalone HTML pages. That's a massive increase in server load. On the client, iframe tags are entirely separate browser windows and can use up considerable resources. It's like opening up hundreds of tabs and is…

Ah. Thanks. Understood. I often wonder if one could whitelist a very small subset of JS and avoid Turing Completeness but enable 90% of the use cases.

Re: Tell HN: Thank you for not redesigning Hacker News

#379

Earlier quoted context omitted.

a {padding: 1rem} This increases area by padding the link. Just don’t want the rap areas of different elements to overlap with too much padding. You can also put a border around the new area, or a box shadow, to indicate larger click area, making it a button sort of: {border: thin solid grey}

Note that the element is inline by default, which means top and bottom padding is not applied. Set display: inline-block; to have padding apply all around while retaining the element’s flow in the layout.

Thank you! I’m still learning CSS and will have to adjust my style sheets! :)

Re: Tell HN: Thank you for not redesigning Hacker News

#380
post #188

Earlier quoted context omitted.

My parcel with a fairly simple app spits out a 10MB release build. We still have some way to go.

How many libraries did you add? Last I checked the major ones were about 1mb

I think the AWS library is pretty insane.
Post reply on HN