Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
HeavyFeather
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
HeavyFeather
4y ago
"OR" was just my (bad) way to explain it. In plain English: if isInteger(x) is true, x is definitely a `number` if isInteger(x) is false, x is unknown/unaltered (it remains `typeof x`) Current type guards can't express &
62.
▲
by
HeavyFeather
4y ago
> It’s not clear to me how playing video games is any better or worse than watching TV, other than it appears to be your preferred choice of entertainment. Having to interact with a world is by definition more active than solely watching
63.
▲
by
HeavyFeather
4y ago
I mean, that could be changed. Currently: either string OR number Possible: either string | number OR just number
64.
▲
by
HeavyFeather
4y ago
Nah, it will just eliminate the middle class. I’m sure the millionaires will figure something out from their villas and yachts.
65.
▲
by
HeavyFeather
4y ago
The first thing I noticed looking at React after Svelte was that Svelte had syntax for promises from v1 while dealing with Promises in "the most popular framework on the plane" is still a PITA. "await blocks" on http:&#
66.
▲
by
HeavyFeather
4y ago
Hilarious to see a half-billionaire complain about 20 bucks a month.
67.
▲
by
HeavyFeather
4y ago
“Skin in-app purchases” are quite popular these days.
68.
▲
by
HeavyFeather
4y ago
“Insane” really? How so? In what world do unused variables make sense?
69.
▲
by
HeavyFeather
4y ago
Note that there's an error on the default export: - export default foo = 'foo'; + export default 'foo';
70.
▲
by
HeavyFeather
4y ago
> focus more on improving the terrible JS web API That's W3C’s job, not ECMA’s. > Where are all the containers? ? > Sorted sets/maps? Sets and Maps are sorted (by insertion order) > Why can't I even map an iter
71.
▲
by
HeavyFeather
4y ago
They're likely referring to Babel and TypeScript. In short, it doesn't matter what you're writing as long as your transpiler has the right `target` so it works in older browsers/engines too.
72.
▲
by
HeavyFeather
4y ago
Developers love hating on JavaScript, on change, and on "complexification." This is all of the above. The first comment I read after yours is literally "I hate how much programming languages change"
73.
▲
by
HeavyFeather
4y ago
> Surely people can find better use for their time and energy than churning through half-baked frameworks? We should have all stayed on backbone or Prototype.js with that logic. People look for alternatives because the status quo is awfu
74.
▲
by
HeavyFeather
4y ago
You’re probably referring to https://github.com/vadimdemedes/ink
75.
▲
by
HeavyFeather
4y ago
Is React good on mobile or does it just have a good solution there? I don’t think anything is stopping vue-native from popping up other than interest and someone to work on it.
76.
▲
by
HeavyFeather
4y ago
Speed brings value. Loading dash without optimizing it carries a huge weight. Weight can slow down users. Users leave the cart before completing a purchase. Lodash is engineered to deliver “perfection” and performance, to an absolute fault
77.
▲
by
HeavyFeather
4y ago
> it doesn't seem to happen if I press hard I would assume that's because you're increasing the contact area and therefore more of your nerve endings are getting a lower voltage, pushing it below the detectable range.