305 karma · joined Jul 23, 2021 (5y ago) · 115 submissions
comment 4y ago · link · parent
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)
comment 5y ago · link · parent
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.
comment 5y ago · link · parent
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).
comment 5y ago · link · parent
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.
comment 5y ago · link · parent
- 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.
comment 5y ago · link · parent
comment 5y ago · link · parent
Certainly there’s a good amount of ignorance in every company, but many choices are purposeful.
comment 5y ago · link · parent
Oh and of course I also have literally 4 different digit-based pins to do operations.
comment 5y ago · link · parent
I'm only half-joking sadly, people just don't understand why password exist in the first place, so they comply maliciously.
comment 5y ago · link · parent
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.
comment 5y ago · link · parent
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.