Using the switch(true) pattern in JavaScript
The switch true pattern isn't well known but it is incredibly useful. It's not a JavaScript specific pattern, but I use it in almost every single project.
Topics /
The most popular blog posts about web & frontend on Hacker News. 8,469 posts.
The switch true pattern isn't well known but it is incredibly useful. It's not a JavaScript specific pattern, but I use it in almost every single project.
Earlier this month, we migrated from offset pagination to cursor-based pagination for our API. In this journal, we walk through the basics of these methods of pagination and why we’re making this switch.
The Plasma Mobile team is happy to present the Plasma Mobile updates for July 2021. Read on to found out about all the new stuff included in this release: Shell First and foremost: Marco Martin made the shell more responsive by improving the performance of the top panel.
For a while, I blocked the Tailwind keyword on Twitter. I was a bit mad that @tailwindcss and author Adam blocked me on Twitter after I wrote a bit of criticism that got popular.
Alex Clemmer is a computer programmer. Other programmers love Alex, excitedly describing him as "employed here" and "the boss's son".
It’s easy to get carried away when you’re building a new web app. You’ve got big ideas, you picture millions of users flocking to your platform, and you start imagining the kind of infrastructure needed to handle all that traffic. So, you build for scale from day one—optimising databases, setting up powerful servers…
We're launching the next major version of Lit
What can SmooshGate teach us about standards development and the Web Platform? This write-up gives an overview.
I built a webring for personal websites.
What's the deal with these two hooks?! Lots of devs find them confusing, for a whole host of reasons. In this tutorial, we'll dig deep and understand what they do, why they're useful, and how to get the most out of them.
How the hell is this blog served over HTTPS by GitHub Pages?
The title may lead you to think that this post is another ranting post about the downside of a “Single Page Application”. It is more about…
Five patterns to help Single Page Applications fetch data from remote sources
I must confess, I was neither surprised nor disturbed by last month’s announcement that the Opera web browser was switching to the WebKit rendering engine. But perhaps I’m in the minority among geeks on this topic.
Most browser agents forget what they’ve done. This one remembers, adapts, and learns, redefining how AI agents get work done.
With Opera announcing that their future products will be based on WebKit, the Internet is abuzz with discussion about what that means and wh...
A preview of `pavex`, an upcoming Rust web framework built around compile-dependency injection. An attempt to combine great development ergonomics with high runtime performance.
Hey. I decided to get a paid plan on Github and Paypal looked like a good payment option to me. Click the blue button here : This looks ...
This holiday season we have a special gift for Mac users everywhere, especially ones with a new MacBook Pro and notch. We’re proud to announce the immediate availability of Notchmeister. So what does Notchmeister do? Think of it as a fun way to spruce up your notch. Or as a screen saver for something you […]