1,927 karma · joined May 23, 2013
I think there's a reason for this, which is that sunlight supplements indoor lighting during the day. People rely on indoor lighting more at night when those warmer tones are most desirable.
Do analyses typically factor this sort of thing in, or do they assume corn is grown solely for the purpose of ethanol extraction?
I mean, it could be disastrous, couldn't it? That foot could be the threshold of someone saying "Aw screw it, I'll just use my parent's frayed extension cord from the 70s."
It's better to say `unknown` is a promise that you won't care about the type. When you write `obj.value`, you're caring about the type. TypeScript sees that and says "hey, you promised you wouldn't care about this type."
> While calling it on an ant is valid typing
It's still invalid, same as if you'd used `unknown`. It just suppresses the type error. The presence of `any` in a codebase is a very real risk. The only reason it exists is to allow incremental porting from JavaScript to TypeScript.
Then size everything using rems, including the width of your layout. The whole design scales with the width of your browser.
In the past I'd have a function accept a `visit(x)` callback, but then I had to invent a protocol for error handling and early cancellation between the host and callback.
The ability to just `yield x` and have done with it is a breath of fresh air.
> Bottom right should be "points lost" imo.
There's a certain breed of hot-shot dev who truly believes they're gaining status by making cryptic, in-the-know references, and there's another breed who falls for it. When it comes to social status games, if enough people believe it, it becomes true.
Too true. Explaining things is hard. My gripe is mainly people's tendency to pretend they understand in perpetuity, instead of expressing a modicum of curiosity about it. "What does 'TPS' stand for actually?" As mentioned, explaining things is hard, and I think I'm not alone in needing help identifying gaps in my explanations.
That said, I also understand that there are huge social barriers to admitting a lack of understanding in the tech industry, especially for juniors.
Ah yes, the "shouting up from the rabbit-hole problem".
> people "on the spectrum" often having low "theory of mind" capabilities.
I somewhat take issue with this, as people on the spectrum are more likely to over-communicate, all other things being equal. Techies are rather caught in a web of social status pressures. Draw a 2x2 grid. On the top axis is the correctness versus incorrectness of your assumption. On the side axis is whether you assume ignorance or knowledge. The social calculus always favors assuming a prior understanding:
correct incorrect
+--------------+--------------+
| | |
| | lose |
ignorance | neutral | status |
| | points |
| | |
+--------------+--------------+
| | |
| | |
understanding | points | points |
| gained | gained |
| | |
| | |
+--------------+--------------+Hmm, I'm definitely not proposing people should work for free.
> It's an okay deal for managing the risk around hiring, say, an entry level employee...
This is what I had in mind. Mitigating risk on the employer side isn't such a bad thing if it helps more people penetrate the skillset barrier who'd otherwise be excluded. Rank-and-file who train new hires benefit as well. It's soul-draining to invest myself into someone who ends up just using that investment as a stepping stone to other things.
(function dammit() {
setTimeout(dammit, 100);
let els = document.querySelectorAll('object,embed,iframe,video');
for (let el of els) {
el.parentNode.removeChild(el);
}
})();
Feel free to make it into a bookmarklet using this guide:I have a button in my toolbar called "dammit" which strips away every iframe, embed, object, audio, and video from the page, multiple times per second. These are considered foundational elements in the web platform and yet, when they disappear, pages seem to magically collapse into something readable.
I deviate from some proponents in that I think this kind of TDD can be done while writing zero unit tests, but in practice they keep you sensitized to good design techniques. Plus the tests do occasionally catch bugs, and are otherwise a good forum to exercise your types and illustrate your code in action.
> Most rich people are rich because they were born into it.
Both of these can be true at the same time!
I think it was a good investment, but 10 billion is a lot of money in absolute terms and comparing it to "all US spending between 2003 and 2026" just to make it seem small is disingenuous.
An infinite amount, in the long run.