Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
twhb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
twhb
9y ago
See my top-level comment. It should be handled by library authors, and npm does provide the tooling to do it, but most authors choose to include the files. Seems to be a difference of principle.
152.
▲
by
twhb
9y ago
Symptomatic of the npm community’s overloading of “npm install” to serve both users and contributors. It’s easy to configure “npm publish” to do essentially this for all users, but it’s considered bad practice. Which I don’t understand, sin
153.
▲
by
twhb
9y ago
It’s a balancing act. Breaking compatibility creates work, unfixed bugs and design flaws create work, which is more work varies. Retaining compatibility can be, in sum, a harmful decision.
154.
▲
by
twhb
9y ago
Certainly doing this is introducing technical challenges easily avoided. But it’s also a win for reading, typing, and remembering URLs. Don’t confuse back-end elegance with elegance in communication with humans.
155.
▲
by
twhb
9y ago
https://33mail.com and https://mailhero.io both offer what you're describing. https://mailinator.com is disposable email that reliably avoids block lists by showing (on their homepage) only one of th
156.
▲
by
twhb
9y ago
FYI, in HTML5 <img src=".." alt=""> is equactly equivalent to <img src=".." alt>. Value-less attributes become attributes with empty string values at the tokenizer level.
157.
▲
by
twhb
9y ago
It's a quest of mine to understand this subject mathematically. I'm convinced that typography is an exact science, it's just easier to use intuition than find the formulae that govern it. Like catching a baseball versus und
158.
▲
by
twhb
9y ago
Correlation does not imply causation. A patent in a strong economy is worth more than a patent in a weak one, therefore it seems very likely they're pursued more, and probably also more lobbied-for. It also seems very likely that the s
159.
▲
by
twhb
9y ago
If you explore the first of the links you're replying to, you'll see that I make my conclusions about what people are using based on country-adjusted analytics from millions of websites, not imagination. This situation is actually
160.
▲
by
twhb
9y ago
You're right, some things are still shorter with jQuery, but one must weigh that against the rest. Native selectors are nearly as powerful. Your example works as-is, "not" is there, full reference at https://www.w3
161.
▲
by
twhb
9y ago
"Five years ago" refers to across-the-board browser support, the spec is older. You can use caniuse.com, https://kangax.github.io/compat-table/es6/ , and/or MDN compatibility tables to quickly check
162.
▲
by
twhb
9y ago
Your JS knowledge appears to be severely outdated. Instead of the first you can now write: Object.assign(target, object1, objectN); The second: element.classList.add(className); element.classList.contains(className); A
163.
▲
by
twhb
9y ago
> we can imagine a volunteer-run service that's just as good or better than Spotify -- but it's based on piracy. We could also imagine it reaching the pinnacle or convenience, so nothing else could be added except marginal impr
164.
▲
by
twhb
9y ago
It's pretty common that some software removes a feature, an extension or alternative is created to mimic the feature, and then over time the extension dies. I chalk it up to human attachment to workflows. Usually, when some Apple UI co
165.
▲
by
twhb
9y ago
Forgive me if this is a dumb question, but can't they just act as their own insurance? Reimburse customers themselves? As I understand it, insurance costs more than expected payouts (or the insurance company wouldn't make money),
166.
▲
by
twhb
9y ago
Google stores many of those settings as cookies, which means your opt-out only applies to one browser on one device for a limited time.
167.
▲
by
twhb
9y ago
That OOP is only skin deep. Look at the way data flows, which pieces of code need to understand any given data structure. Look at the preferred way of extending classes - composition. I think what we have now is not old-school anything, but
168.
▲
by
twhb
9y ago
Along similar lines, I noticed some latency to Apple Terminal's prompt and made this to fix it. https://github.com/twhb/terminal-prompt-perf
169.
▲
by
twhb
9y ago
I think you misunderstand. The names are unrelated to React as well, they are native. Defined by the same standards bodies that define JavaScript itself, implemented by the browsers themselves. On a blank HTML page that includes neither Rea
170.
▲
by
twhb
9y ago
Those names have nothing to do with JSX or React, they're the actual properties you're setting. JS properties don't map 1:1 to HTML attributes: while for example the "src" attribute is controlled using the "src
171.
▲
by
twhb
9y ago
That doesn't add up. I'm sure these companies scale customer service staff to demand. Seems more plausible that Twitter's public nature means complaints there are measurably more harmful, so the companies intentionally devote
172.
▲
by
twhb
9y ago
I think more granular permissions, not domain-specific permissions, are the solution. Domain-specific permissions destroy the illusion that the extension is part of the browser, without restricting access as far as it should be. For example
173.
▲
by
twhb
9y ago
I'm not sure HN headlines - even ones like "we rewrote our codebase with X" - indicate that people are actually rotating libraries quickly. Rather, they indicate our quickly-shifting curiosity, and cherry-pick instances of pe
174.
▲
by
twhb
9y ago
Keep in mind that these functions aren't being removed, just shifted to keyboard shortcuts. Do you really hit Print Screen more often, or more impatiently, than Ctrl+S? Besides, shortcuts are sometimes faster, by virtue of keeping your
175.
▲
by
twhb
9y ago
I see that quoted a lot, and never really dug into. - What about purchases? I'd bet that the vast majority of online - not in-app - purchases happen on desktop. - Are these companies devoting extra resources to their mobile websites an
176.
▲
by
twhb
9y ago
Parallel restyling just kicks the can down the road, asking for free perf elsewhere because we still haven't made it fast. What we need is a low-level style interface - .style but for computed, not CSS-integrated, styles - and then to
177.
▲
by
twhb
9y ago
I realize you weren't talking about 0-60 time, it was an analogy I introduced. Not meant to be technically similar, only a similar fraction of the whole. I think "driv[ing] in a straight line at 60mph" is a smaller fraction o
178.
▲
by
twhb
9y ago
It absolutely looks to me like you're just trying to keep this field unscientific. Misrepresenting the article, then throwing out a bunch of jargon without explanation, then coming to the conclusion that people here shouldn't even
179.
▲
by
twhb
9y ago
I think it's pretty critical to note that, with only one exception, every website that works well without JS is what HTML was built for - static documents - and every website that doesn't, what HTML is famously bad at - apps.
180.
▲
by
twhb
9y ago
Not British so genuinely asking - to what degree? Greater than "thing that bends"? Because there's plenty of slang that doesn't inhibit use of the word by its earlier definition. Nobody blinks when you ask for a "bo
More ›