Topics /

Web & Frontend

The most popular blog posts about web & frontend on Hacker News. 4,615 posts.

Any year
4325

WhatsApp Security Vulnerability

Back in March, Rolf Weber wrote about a potential vulnerability in the WhatsApp protocol that would allow Facebook to defeat perfect forward secrecy by forcibly change users’ keys, allowing it—or more likely, the government—to eavesdrop on encrypted messages. It seems that this vulnerability is real: WhatsApp has the…

4326

Tables vs CSS: CSS Trolls begone

First mistake, drinking the CSS Kool-Aid Several weeks ago, I started designing the layout for my threaded comments on a social news site that I'm building. I had created a down and dirty layout using nested tables. It was ugly, and used nested tables but it worked. I was then paralized by guilt. I couldn't let the…

4328

Introduction to WebAssembly Components

WebAssembly and WASI show great promise for the future of computing outside the browser, and the WebAssembly component model aims to improve the portability, cross-language, and composition story for Wasm. This article explains the goals of the component model, and showcases how to use tooling from the Bytecode…

4329

Why PHP won

When I first learned to program on the web, Perl + CGI was the dominant platform. But by the time I was building my first websites for com...

4340

Designing Good Interfaces

Technician: Welcome to Custom Lube, how can I help you? Me: I need an oil change. Technician: OK, you can hop on out. Where is the oil you want to use? Me: I didn’t bring any oil. I expected you would supply that. Technician: That’s a common misunderstanding. At Custom Lube, we don’t supply oil or anything else. We…

4344

Understanding Concurrency, Parallelism and JavaScript

Up until now, I was not aware that concurrency and parallelism were actually different things since they are often used interchangeably by some. I just learned that this is not the case while reading Chapter 9 of the book “Clojure for the Brave and True.” This made me want to learn more about concepts related to…

4346

HTML-only conditional lazy loading (via preload and media)

The accepted practice is to not add lazy-loading to images above the fold, especially the LCP image, since doing so can delay their loading until the browser has determined they are definitely in the viewport. One problem though is that "above the fold" depends on screen size: an image can be above the fold on desktop…

4349

Understanding JavaScript function invocation and "this"

Over the years, I've seen a lot of confusion about JavaScript function invocation. In particular, a lot of people have complained that the semantics of this in function invocations is confusing. In my opinion, a lot of this confusion is cleared up by understanding the core function invocation primitive,

4350

Gevent For the Working Python Developer

The structure of this tutorial assumes an intermediate level knowledge of Python but not much else. No knowledge of concurrency is expected. The goal is to give you the tools you need to get going with gevent, help you tame your existing concurrency problems and start writing asynchronous applications today.