rudian | 4 years ago | on: GetElementById vs. QuerySelector
rudian's comments
rudian | 4 years ago | on: GetElementById vs. QuerySelector
rudian | 4 years ago | on: GetElementById vs. QuerySelector
rudian | 4 years ago | on: GetElementById vs. QuerySelector
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 | 4 years ago | on: Modern PHP Cheat Sheet
Doubt. Your "[email protected]" 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 | 4 years ago | on: Please Stop “Fixing” Font Smoothing (2012)
rudian | 4 years ago | on: Please Stop “Fixing” Font Smoothing (2012)
rudian | 4 years ago | on: Please Stop “Fixing” Font Smoothing (2012)
Either way, 100% agree. Stop trying to change a OS’s text rendering, if you still are.
rudian | 4 years ago | on: IMF warns El Salvador: “Bitcoin should not be used as a legal tender”
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 | 4 years ago | on: IMF warns El Salvador: “Bitcoin should not be used as a legal tender”
rudian | 4 years ago | on: Vercel raises $150M Series D
rudian | 4 years ago | on: How Google designed its wildfire feature for Maps
- 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 | 4 years ago | on: Native-like Navigation of Web apps
rudian | 4 years ago | on: How to programmatically find out if computer is on
rudian | 4 years ago | on: Bring Back Our Knobs: Analog vs. Digital (2009)
rudian | 4 years ago | on: Kia EV6 Smashes Tesla's World Record
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 | 4 years ago | on: A Xiaomi phone might’ve shipped with a censorship list in Europe
Facebook does not block anything like “Winnie the Pooh” and you don’t risk disappearing by posting on Facebook.
rudian | 4 years ago | on: “Click to subscribe, call to cancel” is illegal, FTC says
Certainly there’s a good amount of ignorance in every company, but many choices are purposeful.
rudian | 4 years ago | on: I hate password rules
Oh and of course I also have literally 4 different digit-based pins to do operations.
rudian | 4 years ago | on: I hate password rules
I'm only half-joking sadly, people just don't understand why password exist in the first place, so they comply maliciously.
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)