Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alangpierce
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
31.
▲
Impossible Pork
(impossiblefoods.com)
230 points
by
alangpierce
7y ago
|
339 comments
32.
▲
by
alangpierce
7y ago
Makes sense! The image we're referring to is the one for the "Built for macOS" section, not the full screenshot at the top of the page. That one doesn't have a cursor in it. https://www.chimehq.com/assets
33.
▲
by
alangpierce
7y ago
From the screenshot, it looks like the intention is that "Prin" has been typed by the user and "tf" is a suggestion, so it makes sense that "tf" would be gray and "Prin" would be green. (Of course, th
34.
▲
by
alangpierce
7y ago
Mentioning gender isn't inherently exclusive, like using "gentleman" to refer to a specific man. The term "gentlemen's agreement" is exclusive because it's a relic from a time when men were the only people
35.
▲
by
alangpierce
7y ago
I'm certainly sympathetic to the frustration of having to support every previous version of your software. If upgrades cost money, then people are incentivized to stay on old versions and then complain about bugs that have been fixed s
36.
▲
by
alangpierce
7y ago
PyCharm includes all of the features of WebStorm because it's so common for Python developers to also do JS work, so you probably should just be using PyCharm. That's what I do at my work. (It's also why PyCharm is more expen
37.
▲
by
alangpierce
7y ago
Why is "IDEs, Word Processors, Editors with Vi-modes" missing IntelliJ/JetBrains, VSCode, Atom, and Sublime? All of those have vim modes (of varying quality, I'm sure).
38.
▲
by
alangpierce
7y ago
I've had a hard time understanding it as well. It seems like I can express so much more and operate so much faster on a computer, but these days a lot of people prefer to just stick with their phone for everything. FWIW, if you use Goo
39.
▲
by
alangpierce
7y ago
Seems like a great idea. One big worry with handing over ownership is fiascos like https://news.ycombinator.com/item?id=18534392 where the author handed over ownership of an unmaintained project and the new owner released m
40.
▲
by
alangpierce
7y ago
Nope, the "no maintenance intended" explanation definitely does not mean that the software is free from vulnerabilities. If you want to use an unmaintained project, you should look at its dependencies and assess for yourself whe
41.
▲
by
alangpierce
7y ago
Python 2 and 3 are not compatible via syntax translation in the same way that many new JS features can be transpiled to old JS. In Python 3, strings work differently in subtle ways that force you to be more careful, and a source code transl
42.
▲
by
alangpierce
7y ago
An interesting challenge is to try to generate this puzzle, or one like it, once you know the answer. Given any existing grid, you can implement a "step" function in code that generates the next grid describing it. You'll alw
43.
▲
by
alangpierce
7y ago
Strongly typed functional languages (including Reason) can often figure out a function's parameter types based on how the variables are used in the function. For example, given `(a, b) => a.push(b * 2)`, it could figure out that `b`
44.
▲
by
alangpierce
7y ago
In addition to the suggestions in the sibling comments, I've had good luck with ts-interface-checker/ts-interface-builder . You add a code generation step to your build process (rather than ttsc) that generates runtime equivalents
45.
▲
by
alangpierce
7y ago
There are a few ways to get exhaustiveness checking in TypeScript when using tagged unions. The way I usually do it is an assertNever function like this: function assertNever(value: never): any { return value; } Then if y
46.
▲
Jade to React: using prod validation to make modernization safe, fast, and fun
(benchling.engineering)
2 points
by
alangpierce
7y ago
|
0 comments
47.
▲
by
alangpierce
7y ago
Wasm bytecode is lower-level than JVM bytecode, so I believe it's a much easier compilation target for a variety of source code languages.
48.
▲
by
alangpierce
7y ago
That's fantastic if so. Their FAQ still says it's "coming later this year, find it at a restaurant". I follow them pretty closely and haven't seen any press about it. https://faq.impossiblefoods.com/
49.
▲
by
alangpierce
7y ago
I think that's a reason Impossible has only been available in restaurants so far. (They say they'll be available for retail purchase later this year.) My understanding is you have to be a bit careful when cooking it, so they want
50.
▲
by
alangpierce
7y ago
Sounds like maybe you're referring to Beyond Burger, not Impossible Burger? Impossible Burger isn't available in grocery stores yet, and Beyond has sort of a spammy taste to it that Impossible doesn't have (from my perception
51.
▲
by
alangpierce
7y ago
It's still on the second page, so not flagged/dead in the sense that it's gone. I think the ranking algorithm looks at upvotes and number of flags and weights flags heavily enough that it can push it well off the front page e
52.
▲
by
alangpierce
7y ago
It actually just updates window.location.hash instead, which does cause a flood of history entries (looks like just one per distinct animation state, though, at least in Chrome). See the "One Last Thing" section near the bottom of
53.
▲
by
alangpierce
8y ago
I've had the idea of doing a similar thing in application code for XHRs. For example, if you have a React app and you structure your code so that components declare their own data dependencies, then you can have a framework-level solut
54.
▲
by
alangpierce
8y ago
Normal office environments already have managers that are plenty capable of watching and critiquing everything you do all the time, but at least in my experience, that's almost never how it goes. Good managers know that freedom and aut
55.
▲
by
alangpierce
8y ago
It sounds like you're questioning the whole idea of accountability. The mechanism here is the same as if you have a friend check in on you to help you quit smoking or exercise more or eat better. It's true that you're adding
56.
▲
by
alangpierce
8y ago
> Google should have a graduation mechanism for a product they launch, where they publicly announce that a product is out of beta, and can be depended on to exist. And if the product isn't ready to be supported, they should continue
57.
▲
by
alangpierce
8y ago
I don't think the poster ever actually said that fish isn't meat, and I guess a lot of people are interpreting your question as a hostile challenge of the idea of pescatarianism (along the lines of "Why don't you think t
58.
▲
by
alangpierce
8y ago
Frankly it's a bit of a nuanced improvement, but I've seen it come up enough times that it's nice to have a real solution. The big value in `as const` is that `'ON' as const` has type `'ON'`, while `'
59.
▲
by
alangpierce
8y ago
JavaScript usually runs quite a bit faster than other dynamic languages (after JIT warmup), not because it's fundamentally any faster, just because modern JS engines are so good. Browser competition has meant that the amount of enginee
60.
▲
by
alangpierce
8y ago
> there's no telling what "extra" Javascript (and thus overhead) might be inserted by the Typescript compiler TypeScript doesn't do this. With only a few exceptions, the way to turn TypeScript into JavaScript is to re
More ›