Live data from Hacker News

Please make your products work with URLs

anderspitman.net

181–190 of 353 posts

Re: Please make your products work with URLs

#181
post #98

Author here. Sorry for those having trouble viewing the site. That's obviously never the intention. The current incarnation is actually a bit of an experiment. Unfortunately, my blog is only occasionally tested against front page traffic so I don't always get a feel for what's not working. That said, I assure you I am intimately familiar with the tradeoffs of different methods of delivering HTML. TL;DR it's my person…

> TL;DR it's my personal site and I'll do what I want with it. It's for fun.

That's great and I hope you keep on doing that. That said I have a few comments on your actual implementation.

> If you clone my blog[1] (with submodules) you should be able to host it exactly as-is from the repo.

Who would want to do that? Somebody interested in running your website is probably somebody also willing to install and run a build tool. And even if not, if it's just about consuming the contents of your website without visiting your website, the Markdown in your git repository is accessible enough.

> Second, I wanted user interactions within my site to be very fast[3]. > [3] https://anderspitman.net/13/64-ms/

A noble goal, however the initial load time from a cold browser session was consistently between 3s and 4s for me. Probably because you got hit by HN, but looking at the network tab reveals why a statically generated page would've been way faster: Instead of loading 19 resources, you could've simply loaded 3 (HTML, CSS + Favicon). That'd have been significantly smaller and faster.

> After the initial load, subsequent navigations are much faster (and consistent) than retrieving a new static HTML page.

As already mentioned your initial page load would've been significantly faster with a statically generated page. What you do is optimize for subsequent page loads at the cost of the initial page load. I can only speak from my own experience, but I also believe this is true for most of the HN crowd: I usually end up on websites like yours, because somebody links to a specific article on it. I then read such an article and close the website right afterware. It's very rare that I look around what other content is available on such a website. So I don't know how your usual website visitors behave, but I'd assume visitors which actually visit more than 3-4 articles on your page a probably relatively rare and for such a few pages the sum of loading times would be shorter than your premature optimization.

However if you want to optimize for subsequent page loads I suggest you do so without compromising your initial page load and completely without JavaScript by utilizing link prefetching [1] which is supported by all major browsers [2] except Safari.

[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefe...

[2]: https://en.wikipedia.org/wiki/Link_prefetching

Re: Please make your products work with URLs

#182
post #165

Anyone have a recommendation for high quality 4k dumb TVs that are truly offline? I have a media center PC I plug into my TV and don't want or need any of the "apps" or "homescreens", just give me a few inputs to HDMI cables, maybe USB slot, and I'm good.

Can't just you just...not connect it to the internet?

That's what I do (my Apple TV is connected to the internet). A nice side effect is that you don't get ads in the TV's home screen that way.

Re: Please make your products work with URLs

#183
post #165

Anyone have a recommendation for high quality 4k dumb TVs that are truly offline? I have a media center PC I plug into my TV and don't want or need any of the "apps" or "homescreens", just give me a few inputs to HDMI cables, maybe USB slot, and I'm good.

“Dumb TVs” essentially don't exist AAA product category; you need either a “commercial display” or a “monitor”.

I think you're right. Dell actually has a few "conference room monitors", which come close. There is a 55 inch version for $850, and a 70 inch version for $3,000. I've considered the 55 inch version, but it is just a bit small for the room I watch TV in, and I'm not sure I'm willing to shell out 3 grand for a living room TV.

Re: Please make your products work with URLs

#184
post #17

I hate smart TVs with a burning passion. They accomplish literally the bare minimum to keep people happy and sometimes not even that. Samsung’s Tizen OS is the most genuinely frustrating experience I’ve had with a consumer device outside of printing. Advertisements on my home screen that can’t be disabled, dubious privacy, bugs that require me to reboot my TV, and of course security so bad that they recommend install…

I've long since run with the notion that if you must have Smart TV features, do it with an external box. Last time I checked the Roku devices were decent for this, but there's a bunch of alternatives, and some lovely FOSS stuff (Kodi comes to mind) that is much more privacy focused. The TV itself is a black box of mystery, and does NOT get to go on my network. It doesn't need my wifi password, and I certainly don't w…

A screen should be dumb, though I should be able to attach something smart. TVs are trying to be what they are not.

Re: Please make your products work with URLs

#185
post #98

Author here. Sorry for those having trouble viewing the site. That's obviously never the intention. The current incarnation is actually a bit of an experiment. Unfortunately, my blog is only occasionally tested against front page traffic so I don't always get a feel for what's not working. That said, I assure you I am intimately familiar with the tradeoffs of different methods of delivering HTML. TL;DR it's my person…

>I'm optimizing for first-time visitors As a first-time visitor I had a very bad experience while waiting for your JS to download and generate the content - in the meantime I was looking at a completely empty black screen. Optimizing for first-time user experience means giving your visitors the content they came for as soon as possible, which is not what you’re doing.

Maybe I wasn't clear. I'm optimizing the performance for first time users, specifically when it comes to navigation.

EDITed to be less inflammatory.

Re: Please make your products work with URLs

#186
post #182
post #165

Anyone have a recommendation for high quality 4k dumb TVs that are truly offline? I have a media center PC I plug into my TV and don't want or need any of the "apps" or "homescreens", just give me a few inputs to HDMI cables, maybe USB slot, and I'm good.

Can't just you just...not connect it to the internet? That's what I do (my Apple TV is connected to the internet). A nice side effect is that you don't get ads in the TV's home screen that way.

True, I guess I'm just worried it might hit my neighbors unsecured wifi or somerthing. I live in an apartment complex so it is tough to monitor all the connections all the time since people move in and out.

Re: Please make your products work with URLs

#187
post #186
post #182

Earlier quoted context omitted.

Can't just you just...not connect it to the internet? That's what I do (my Apple TV is connected to the internet). A nice side effect is that you don't get ads in the TV's home screen that way.

True, I guess I'm just worried it might hit my neighbors unsecured wifi or somerthing. I live in an apartment complex so it is tough to monitor all the connections all the time since people move in and out.

Don't think it would auto-connect to unsecured networks but could always set up an offline access point and force the TV to connect to it to be extra sure. Probably not worth the hassle though.

Re: Please make your products work with URLs

#188
post #67

I think it should be possible to do this with the browser and the Chromecast protocol, since my understanding is "play a video from this URL" is the core of the protocol. Someone could build a website following https://developers.google.com/cast/docs/chrome_sender/integr... where you paste the URL of a video and are given the option to "cast" it to the TV. This would be some work, but only one person would need to do…

Right, someone already built it :) https://chromecast.link/

It looks like https://play.google.com/store/apps/details?id=com.rabidgreml... may be the equivalent in Android app form.

Re: Please make your products work with URLs

#189
post #98

Author here. Sorry for those having trouble viewing the site. That's obviously never the intention. The current incarnation is actually a bit of an experiment. Unfortunately, my blog is only occasionally tested against front page traffic so I don't always get a feel for what's not working. That said, I assure you I am intimately familiar with the tradeoffs of different methods of delivering HTML. TL;DR it's my person…

I think part of what people are pointing out is, if you went and asked the Roku devs why they don't support arbitrary URLs, I'm sure they would be able to give you a list of reasons as long as this if not longer.

They'd probably make the point that most user-video content is on Youtube or Vimeo, and that for most users there really isn't much need for a non-app solution.

They'd probably make the point that Roku is designed to fit a particular user, not to stream arbitrary content, that it's not trying to be a be-all-end-all streaming solution for everyone.

They'd probably make the point that a URL system wouldn't allow them to support cool app-streaming-specific features like resuming play between devices, or social features like comments, or suggested content.

And they'd probably tell you that of course they considered supporting URLs, and of course they considered the tradeoffs, and ultimately it just wasn't worth it.

I have no doubt that the number of people who want to use URLs with their TV are a minority of the market. Almost certainly not as much of a minority as people who disable JS (that's a tiny sliver of traffic that mostly just hangs out on tech forums like HN). But probably not a high enough market segment that it makes financial sense for a Roku or Chromecast to expend a lot of time adding support.

Re: Please make your products work with URLs

#190
Alternative solution: Build your own Roku app. Last time I checked it looked pretty easy; set up a JSON manifest file and a bit of JS on a web server that can also serve video, or something like that. I don't remember how easy it was to install your app on your own Roku but I seem to recall there was a way to do so for testing purposes.
Post reply on HN