HNHacker News
TopNewBestAskShowJobs

rudian

305 karma · joined July 23, 2021

submissionscomments
rudian··on GetElementById vs. QuerySelector
Yeah but they’re not necessary for selection. Label elements actually need an input with ID to function. The other useful use for IDs is for deep-links in articles.

But then again that doesn’t mean the id should be used for selection (in JS nor CSS) as it’s probably easier to target many elements with a class, should they ever co-exist. This is basically what you end up with if you build components anyway (even without specific frameworks)

rudian··on GetElementById vs. QuerySelector
A few minification transforms actually kind of speed code up. If Babel hadn’t turned into a hydra this kind of transforms would have been right up its alley.
rudian··on GetElementById vs. QuerySelector
I know, that's why it's misleading and it should not be considered. A quick reader will think that "using getElementById will save me 32ms", but it'd be off by several orders of magnitude.
rudian··on GetElementById vs. QuerySelector
Please don't listen to this, it's misleading.

querySelector *does not* take 62ms to run. Both of them take 0.01ms at most, try it yourself. This is the sort of micro optimization you should not concern yourself with.

How often do you need to select unique elements by ID? Don't use IDs in the first place.

This is akin to using `i--` in loops to "speed up your code" — we're past that.

rudian··on Modern PHP Cheat Sheet
> It's why we get things like Deno, which attempt to throw all this cruft away and start again

Doubt. Your "something@v1.2.3" in Deno is no different than "something": "^1.2.3" in npm. The problems will appear when you update stuff.

The only thing benefiting deno currently is the clean slate and the lack of hacks (for now).

rudian··on Please Stop “Fixing” Font Smoothing (2012)
Yes, that’s what doesn’t work on my computer.
rudian··on Please Stop “Fixing” Font Smoothing (2012)
That's not true, I can replicate it in Chrome 96, macOS 11. It doesn't seem to work in Firefox though.
rudian··on Please Stop “Fixing” Font Smoothing (2012)
This is an old article and I think designers kinda stopped doing this because its effect is not as pronounced on high-res displays.

Either way, 100% agree. Stop trying to change a OS’s text rendering, if you still are.

rudian··on IMF warns El Salvador: “Bitcoin should not be used as a legal tender”
Most people are ignorant about Bitcoin and its risks; The fact that there are no protests should come as a surprise to no one.

What people see is that they get free money from the government and maybe they’re lucky to see it go up. They don’t know it could be half tomorrow.

rudian··on IMF warns El Salvador: “Bitcoin should not be used as a legal tender”
I’m a normal user and I can see their message. Has it been vouched for in the past 4 minutes? My settings are still the HN defaults.
rudian··on Vercel raises $150M Series D
Sounds like you never used Vercel now AWS. I wouldn’t call AWS “super trivial” nor is Vercel equivalent.
rudian··on How Google designed its wildfire feature for Maps
I’m confident it’s two reasons:

- too many street names make for a noisy/busy/ugly map, and we all know maps must be beautiful and nothing else

- streets don’t pay for ads, businesses do, so between the two they prefer showing the latter.

Technically now you can tap anywhere on the map once to place a pin and get more info; In practice tapping in Google Maps has become horrendous, it never does what you expect. One such example is tapping on a business near a “walkable area”: you can’t. The area will always focus instead, even if painted behind the business.

rudian··on Native-like Navigation of Web apps
I remember some browser blocking that at some point, but I still occasionally see it. I can’t believe there’s no way to “go back to the previous website” in most browsers. Safari iOS for example just clips the history so you can’t even hold the back button and scroll up if there are dozens of entries.
rudian··on How to programmatically find out if computer is on
Have you tried turning it off and on again?
rudian··on Bring Back Our Knobs: Analog vs. Digital (2009)
Heh, that’s the damnation of the expert. The more I know about movies the less I enjoy them, for example. It’s easier when you don’t notice defects.
rudian··on Kia EV6 Smashes Tesla's World Record
Yeah, I get it, we have a lot to thank Tesla for the push towards EV, but that doesn't exempt them from bad reviews.

Tesla is not the only EV maker anymore, so they can't hide behind "but it's an EV, so… that's where the money goes"

rudian··on A Xiaomi phone might’ve shipped with a censorship list in Europe
You’re an idiot or a spy if you think Facebook’s blocking is in anyway similar to China’s censorship.

Facebook does not block anything like “Winnie the Pooh” and you don’t risk disappearing by posting on Facebook.

rudian··on “Click to subscribe, call to cancel” is illegal, FTC says
I think “companies” have run out of the “benefit of the doubt” as far as I’m concerned. Using the web has become a pain not because companies don’t care about UX, but because they think popup X will increase profits — and it often does.

Certainly there’s a good amount of ignorance in every company, but many choices are purposeful.

rudian··on I hate password rules
My internet-first bank’s passwords are limited to 8 characters. I'd take password rules over this idiocy any day. I reported it maybe 5 years ago and of course radio silence. I bet they plaintext it.

Oh and of course I also have literally 4 different digit-based pins to do operations.

rudian··on I hate password rules
Congrats on getting them to use a password manager, now everyone can see all of their password by typing in the master password they stuck to the side of the screen.

I'm only half-joking sadly, people just don't understand why password exist in the first place, so they comply maliciously.

rudian··on Some notes on using esbuild
(Misunderstood comment)
rudian··on To set new tab as blank in MS Edge you need to enroll device in MDM
The parent comment wrote “a bit of configuration” not “spend your waking hours configuring.”
rudian··on Bar-tailed Godwits regularly travel more than 7,000 miles non-stop
Sorry this isn’t the argument department.
rudian··on Bar-tailed Godwits regularly travel more than 7,000 miles non-stop
The surprising part is that we have a battery that lasts that long for tracking “in real time” and doesn’t weigh the bird down. How’s that possible?

The article mentions that is solar-powered, but even then how much power could it generate?

rudian··on YAML: It's Time to Move On
You can turn any piece of a YAML into a JSON object and it will be read just as well.

This YAML:

    user:
      name: Ted
is equivalent to this YAML:

    user: {"name": "Ted"}
which is equivalent to this YAML/JSON:

    {"user": {"name": "Ted"}}
rudian··on There may be a steep privacy cost if you park here
Many of these things are basically standard practice nowadays thanks to cross-site tracking and this is just one of the many companies that checks all the (modern shitty-company) boxes.

It's good that they are exposed and people discuss them in order to (hopefully) reach the politicians, but none of this is surprising at all.

rudian··on Apple isn’t patching all the security holes in older versions of macOS
I really don’t get this. Apple does provide free updates for all. If you skip major versions, you’re shooting yourself in the foot and blaming Apple for allowing it.

Apple is giving you the update: Install it and now it’s up to date. They don’t have to support multiple versions of the same thing indefinitely.

The situations (devices) where the update isn’t possible (i.e. they’re outdated too early) can probably be counted on one hand.

rudian··on World’s first USB-C iPhone sells on eBay for $86,001
Yeah right. As if this affected their sales at all. USB-C would only reduce accessory licensing fees.
rudian··on Show HN: Nestly – A simple nested time tracker
Lawyers contacting you in 3 2 1.

Not a good idea to be named one-letter off the name of a huge disliked corporation.

rudian··on Debit cards are hidden financial infrastructure
Canada sure learns a lot of tricks from their big brother.
Page 1 of 4Next →