Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwitaway1123
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
throwitaway1123
2y ago
Which smart TVs natively support port knocking?
92.
▲
by
throwitaway1123
2y ago
WireGuard has apps for most devices (macOS, iOS, Android, Windows). For smart TVs it's a bit of a mixed bag. Some of them do support VPN clients, and I know Tailscale works on the Apple TV now (Tailscale uses WireGuard under the hood).
93.
▲
by
throwitaway1123
2y ago
WireGuard is honestly very easy to set up. All of the commands feel very straightforward: https://www.procustodibus.com/blog/2020/11/wireguard-point-t... You can definitely run an HTTP server behind WireGuard
94.
▲
by
throwitaway1123
2y ago
I actually use TS as a way to avoid bothering with TDD. Many of the proponents of TDD are using dynamically typed languages, and need tests to verify every tiny little assertion about their code. I remember Eric Elliot had a bunch of posts
95.
▲
by
throwitaway1123
2y ago
> JavaScript is so powerful and amazing, it’s a bummer to hamstring your app by using TypeScript and classic OO inheritance models that preclude the beauty and dynamics of JavaScript as a functional, prototypal language. The idea that Mi
96.
▲
by
throwitaway1123
2y ago
Deno, Node, and Bun have been improving at a blistering pace lately. Within the span of a single day Bun and Deno both announced improvements to the ergonomics of parallelization (Deno with the new --parallel option to the serve command, an
97.
▲
by
throwitaway1123
2y ago
The `@media (scripting: none)` query absolutely can detect if a user has disabled JS on the page via their browser's settings (e.g. via chrome://settings/content/javascript). If you mean to say that it can't de
98.
▲
by
throwitaway1123
2y ago
> For the comparison to be valid you would have to split up coreutils into roughly 100 individual repositories and replace many of the implementations with ones that are trivial, buggy, and/or unmaintained that pose a supply chain a
99.
▲
by
throwitaway1123
2y ago
> Again, the media query only does its thing when the browser says JavaScript isn't supported I get how it works, it just feels like a hack designed to work around a missing feature, rather than the ideal way to handle the problem.
100.
▲
by
throwitaway1123
2y ago
> Yet, they are still a lot bigger than most micro-libraries. And more complex. Some of them are incredibly trivial. I made this exact same comment months ago, but the yes command is basically a one line bash function [1]: function y
101.
▲
by
throwitaway1123
2y ago
> The `scripting` @media query isn't very useful. If you want CSS that's in effect when the browser doesn't have JavaScript, you can put those styles inside <noscript>. If your styles are defined within external styl
102.
▲
by
throwitaway1123
2y ago
I'm also frequently surprised at how long certain CSS features take to implement. Some recent examples for me are the `has:()` pseudo selector [1], the scripting media queries [2], and css nesting [3]. [1] https://caniuse.co
103.
▲
by
throwitaway1123
2y ago
I would almost certainly never implement a UI as a render loop, but if you wanted to go down that path requestAnimationFrame is a much more idiomatic way to do it if you want to match the user's display refresh rate.
104.
▲
by
throwitaway1123
2y ago
> I'm not sure how you came to conclusion that I thought construction industry was merely dangerous, rather than being frequent violators of safety standards. The construction industry violates more OSHA standards than other industr
105.
▲
by
throwitaway1123
2y ago
> they're building (what you consider to be) frivolous projects? I don't think frivolity is necessarily binary — it's more of a spectrum. On one end of the spectrum you have tunnels that connect landmasses separated by mas
106.
▲
by
throwitaway1123
2y ago
> The Boring Company might not have the best safety record, but let's not pretend "ignoring worker safety" was one of their "innovations". If there's another company out there mutilating their workers via ch
107.
▲
by
throwitaway1123
2y ago
> Literally the only “innovation” is that they made the tunnels a bit cheaper by removing space for emergency egress If the reports are to be believed then there was another "innovation" as well: ignoring worker safety [1]. &qu
108.
▲
by
throwitaway1123
2y ago
It's a shame that Reason fragmented into Reason and ReScript. I remember there being a ton of excitement around the project when Jordan Walke (creator of React) announced that he was working on a JS successor.
109.
▲
by
throwitaway1123
2y ago
This looks pretty cool. One issue I have from just a cursory glance is that the IO capability includes things like `print` and `echo` [1]. If the context system can't differentiate between `console.log` and `fetch`, then it's a li
110.
▲
by
throwitaway1123
2y ago
> That could be much better solved through coeffects It's possible, but I can't thoroughly evaluate coeffects until they land in a mainstream language with production usage. What I do know from experience is that you can't
111.
▲
by
throwitaway1123
2y ago
> I also don't like how async/await ends up taking over a whole codebase. Often making one function async will cause you to update other functions to be async so you can do proper awaiting. This is basically the function colori
112.
▲
by
throwitaway1123
2y ago
The canonical way to handle responsive videos is to embed multiple source elements within the video element, and them use the media attribute to respond to the user's viewport size, and preferred color scheme: https://develo
113.
▲
by
throwitaway1123
2y ago
Not only can you increase the font size, but Safari has an immersive "reader mode" where you can change the font and color scheme, and even have Safari dictate the page to you. A massive percentage of organizations that develop na
114.
▲
by
throwitaway1123
2y ago
For a practical example of this technique used in JS take a look at libraries like htm and lit-html: https://github.com/developit/htm
115.
▲
by
throwitaway1123
2y ago
This was fixed years ago, and of course people then complained about not being able to remove their packages [1]. [1] https://news.ycombinator.com/item?id=38874874
116.
▲
by
throwitaway1123
2y ago
> A secured registry is long overdue, where every release gets an audit report verifying the code and authorship of a new release. Microsoft did exactly that (since they own both NPM and Github) by allowing you to verify the provenance o
117.
▲
by
throwitaway1123
2y ago
Yeah expression based languages are a pleasure to work with. A lot of what was good about CoffeeScript was absorbed into ES6, but the expression oriented nature of it was never fully replicated in JS/TS.
118.
▲
by
throwitaway1123
2y ago
> FrankenPHP doesn't proxy to the PHP dev server. I didn't say FrankenPHP proxies to the PHP dev server. I'm saying FrankenPHP is a Frankenstein amalgamation of the Caddy reverse proxy server and PHP, which is necessitated
119.
▲
by
throwitaway1123
2y ago
The FrankenPHP binary also needs a daemon to manage it, which is why the docs recommend using Docker. So you end up with Docker (or SystemD or whatever you prefer), managing Caddy, which is in turn managing PHP. This is because the server w
120.
▲
by
throwitaway1123
2y ago
> One of those environments is a GUI which is naturally a good application for async. The other is not. Backend web development is still largely input -> process -> output. Node is just shoehorning JS in, and pretending that JavaSc
More ›