wyuenho

Joined 16 years ago

Karma
2,022
Submissions
685
Member since
May 20
If you are good at something never do it for free (except for the first time).
View on Hacker News

Recent submissions

Comment · 10 months ago
HN is full of noobs loudly proclaiming what they don't know is true these days. Ubiquitous HTTPS does not change the nature of private browser caches, and only nullify the proxy related cache headers if the origin encrypts traffic all the way to the client, which is quite rare in real life, unless we are merely talking about a dude serving this blog from his basement computer.

In general, your answer depends on where the TLS cert terminates. In most situation a CDN or a reverse proxy is involved, and the TLC cert you use to encrypt traffic from the origin to the proxy is different from the one the proxy uses to encrypt traffic from it to the browser. Whenever a MITM intermediary is involved, you should read the intermediary's documentation. These usually include Cloudflare, AWS Cloudfront, Akamai etc. With with exceptions, like the Vary header as pointed out elsewhere, these vendors largely follow HTTP caching semantics for proxy caches.

Comment · 1 year ago
Oh you mean something like active file awareness and selection context? This code seems quite well architected and has websockets well integrated, both features sound like a lunch break’s worth of work if you file a ticket. Other than that, I couldn’t care less about how these capabilities are implemented or whether /ide works.
Comment · 1 year ago
It absolutely does. Give it a try.
Comment · 1 year ago
Comment · 1 year ago
The UK has a petition website. It logs the signatory by constituency. Once a threshold os signatory has cross, the government has to respond and parliament will have to consider a debate on the topic.
Comment · 1 year ago
I swear if I see another "SEO" guy or some rando web dev who joined the workforce after Covid complaining about SPAs by misrepresenting it, I'm gonna explode.

As someone who's been developing web apps since the 2000s, let me tell you the origin of SPA has few things to do with the "false promise of SPAs" he listed, but largely due to companies in the late 2000/early 2010s wanting to go "mobile first". This usually meant they still had a desktop second somewhere, which implied they were architecting the entire system to completely separate the frontends and the backend.

Before, what web devs meant by frontend was essentially server-side rendered HTML templates with perhaps a little bit of jQuery running on the client-side. Now, since mobile and desktop web apps are to share some business logic and the database somehow, people had to rediscover REST by reading Roy Fielding's Phd dissertation that inspired the original HTTP. This meant now every company was moving to service-oriented architecture and started exposing their backend APIs onto the open internet so their mobile apps and SPAs running in the browser can share the same APIs. This was a cost saving measure.

This period also coincided with the steady decline of full-stack webapp frameworks like Ruby on Rails and Django because for a couple of years, these frameworks had no good ways to support an API only applications. Django hadn't even reached 1.0 back then. This was a time when NodeJS was really starting to pick up momentum. Once people had started being more comfortable with JS on the server-side, lots of people suddenly realized they could push a lot of business logic to increasing powerful desktop browsers and phones, application hosts people now call "edge devices".

This is the true impetus of SPA. How is CSS going to kill this need?

Comment · 1 year ago
Most developers weren’t deploying simple stateless functions. They were building full-stack apps: apps that talk to a database, that almost always is located in a single region.

I wonder if this is true in general for most people on serverless these days. If so, whether this is what the original intention of this movement and whether these people just don't want to deal with docker/k8s.

Comment · 1 year ago
An equally important but opposite problem with pipes getting stuck is pipes getting broken because some commands at the front of the pipe expects buffering down the pipe. Some years ago I was scratching my head trying to figure out why

  curl ... | grep -q
was giving me a "Failed write body error". I knew "grep -q" would close stdin and exit as soon as a match is found, and therefore I needed a buffer in front of grep but I was on a Mac, which to this day still doesn't come with "sponge" (or stdbuf and unbuffer for that matter), so I had to find a cross-platform command that does a little buffering but not too much, and could handle stdout being closed. So I settled on:

  curl ... | uniq | grep -q
To this day people are still confused why there's not a "sort" in front of uniq and the comment about this cross-platform buffer thing I put in the script.
Comment · 3 years ago
iPhone since 12 has not used the Intel modem, and while newer iPhones supports Beidou, it’s not clear which chip supports it and whether it is used outside of China, or even iPhones sold outside of China has support for Beidou. Even if it does, its civilian frequency only has a 10 meter accuracy outside of APAC, so it’s not clear to me it is used globally in the sense that GPS is.

Also, Loongson and OpenATOM lol. Are they industry standards?

Comment · 3 years ago
Let me know when you have an example of an open source Chinese industry standard, essentially subsidized by the Chinese government. The only example I can think of is Beidou, which nobody uses.
Comment · 3 years ago
And the Chinese says thank you Uncle Sam for giving us RISC-V for free.
Comment · 3 years ago
What happened to the level playing field? China doesn't invest and open source anything, why should the US subsidize their technological advancement?
Comment · 3 years ago
We seriously need to have a new HN policy that requires every link posted to be HTTPS link

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton