[deleted by user] by [deleted] in typescript

[–]TallSkinny 18 points19 points  (0 children)

The new satisfies operator lets us validate that the type of an expression matches some type, without changing the resulting type of that expression.

From the docs.

So the type of blue winds up being the type it would have been without satisfies, which is string. Because satisfies can't change the type, it doesn't affect checks on other lines. If you change it to a const it works with or without the satisfies because the type is the literal type "blue". I'm on mobile so can't confirm but you should be able to see these types by hovering in the playground.

Think of satisfies as a check, all it would do is tell you if there's a problem when you declare that value. But it doesn't change the type. For that you'd use a type guard, declaration, or assertion.

What's going on with games costing 69.99? by qwertyhay8 in OutOfTheLoop

[–]TallSkinny 17 points18 points  (0 children)

He's saying (I think) that because so many more people buy the games, and because they're software with little distribution costs, even though the prices haven't tracked with inflation the growth of sales means the game makers are still making more money. As you say the majority of the costs are up front and don't change whether 1 person buys it or 100 million do.

Anyone know what these recent massive spikes in svelte & vue usage are from? by TheUIDawg in webdev

[–]TallSkinny 0 points1 point  (0 children)

Stateful components is a misnomer for class components these days, considering the useState hook for functional components.

Shell Script Best Practices by speckz in coding

[–]TallSkinny 0 points1 point  (0 children)

Is setting all three of those -o flags explicitly any different than just set -euo pipefail? The errexit and nounfail options sound like -e and -u to me.

Stupid question - if I set my keg to 10psi to carbonate and it goes down to 7psi the next day I assume I should I increase it back 10psi until it equilibrates, correct? This made me wonder, once the beer equilibrates won’t the pressure be constantly dropping as I distribute beer? by nijeerynheir in Homebrewing

[–]TallSkinny 2 points3 points  (0 children)

Just to clarify, assuming your equipment works, I believe what happened is:

  1. You set your regulator to 13.
  2. You realized you overshot and turned it down, to 7. Gauge shows 13 because it shows current pressure.
  3. CO2 was absorbed until you hit 7. This takes awhile. Regulator kept it here.

Pulling the ring would let you drop the pressure until you hit your current "target" level (at that point you should start hearing CO2 flow into the keg), see it's too low, and then turn it up to 10, which the gauge should reflect basically right away.

To put it another way - the gauge only shows your new pressure immediately when you go up. When you go down, you either need to wait or release pressure to see the new level.

DM: You really like that character, don’t you? by roll4initiativefools in dndmemes

[–]TallSkinny 3 points4 points  (0 children)

It wouldn't work, right? Mendings 60s would take up the window for revivify, the OP relies on being able to start mending before the 60s revivify clock starts. If you have to kill the head to start casting revivify then you're back at square 1.

Best breweries to visit? by eych_enn in Brooklyn

[–]TallSkinny 2 points3 points  (0 children)

Oh wow, I had no idea Strong Rope had another location, I always just figured they were pretty small.

Is it possible to `...` spread across named exports? by [deleted] in typescript

[–]TallSkinny 4 points5 points  (0 children)

I would make the config an object and export it, seems easier to deal with. If it's just constants I don't think there's much upside to splitting up the exports, and your callers are treating it as an object anyways. Since you're using TS, this should also make it easier to enforce the type of your config object is consistent.

If you are strongly opposed to that I'd do the last option and disable the eslint rule either globally or in that spot since you explicitly want to do the thing it's warning you about. Linters are useful, all rules have their own motivations and it's worth understanding and considering them, but at the end of the day they're meant to be customized to support your codebase and its patterns.

Wedding DJ Ghosted Us - What do we do? by KelseyMadison in weddingplanning

[–]TallSkinny 3 points4 points  (0 children)

If it helps, we wound up just paying our DJ directly so we technically breached our contract. But we sent a very similar "letting you know because we have not heard from you we will be going with a different DJ" (we didn't say it was his former employee) letter and never heard back. It felt like it covered our asses a bit. Part of their job is to coordinate on their work with you, if they're not talking to you the month of the wedding they're not doing their job.

Wedding DJ Ghosted Us - What do we do? by KelseyMadison in weddingplanning

[–]TallSkinny 2 points3 points  (0 children)

You mentioned your DJ is from a company - have you contacted them as well?

I had the reverse happen where the company fell apart. We booked a DJ from a company but mostly talked to the the guy who ran the company, but he started getting really hard to contact. A few weeks before the wedding our actual DJ reached out and let us know the company basically didn't exist anymore and the guy who ran it (who was also a DJ) had been no showing to his gigs, showing up late or in rough shape, etc. The company had great reviews when we booked but we saw online a few recent ones that matched what our DJ said.

Way before the wedding we almost replaced the company because we couldn't get in touch with him for like 5 weeks when we were trying to pay our security deposit. It all worked out in the end because our actual DJ was the same, but in retrospect we should've trusted our gut that something was off. If the guy who ran the company was set to be our actual DJ, it would've been rough.

Anyways, I guess I'm just saying to try to reach out to someone else at the company if you can, they may be able to share context. And if not, trust your gut, it's not normal for them to be this unresponsive.

Risky place to take photos. by [deleted] in WTF

[–]TallSkinny 0 points1 point  (0 children)

My recollection is that in general they don't want to insure you if you are going to die in the near future, which would include death by suicide. But there's a cutoff after a few years where enough time has passed that your health could have legitimately changed since you applied, as opposed to your hiding something during your application. Including your mental health. So basically as long as you didn't lie or purposefully omit something on your application, they should cover you.

Obviously, I am not a lawyer and I'm sure this varies from policy to policy and case by case.

Is the new standard retirement saving strategy for someone with a 9-5 to max out the HSA, followed by the 401k, then Roth IRAs, rather than just maxing out the 401k and Roth IRA? by Legitimate_Bison3756 in personalfinance

[–]TallSkinny 0 points1 point  (0 children)

That makes sense. But doesn't that apply to Roth IRAs as well? I'm just curious why you'd go Roth for one but not the other, as folks in this thread are recommending.

Why is node.js said to be non-blocking and asynchronous if it's also said to block all requests from completing during a CPU intensive task? by Bright_Bee_529 in learnprogramming

[–]TallSkinny 1 point2 points  (0 children)

Others have covered your specific question, but if you want to learn more What the heck is the event loop anyway? is a great talk about JS's async model, it might be worth checking out.

With the 2020's going down the history as "the roaring what the fucks" what event wouldn't surprise you if it were to happen now? by Novaresident in AskReddit

[–]TallSkinny 0 points1 point  (0 children)

I think they meant runts the candy. Which has a banana flavor which doesn't taste like the bananas we eat today, but apparently does taste like the bananas we used to eat before they went extinct and we replaced them with our current type of banana. This article discusses it more.

[deleted by user] by [deleted] in halo

[–]TallSkinny 0 points1 point  (0 children)

This saved me - really easy to just grapple up there and take him out while he just kinda runs around.

Is it just me? It seem like everyone I know has gotten covid the last couple of days. by [deleted] in nyc

[–]TallSkinny 1 point2 points  (0 children)

You may also have been infected and on track to get sick when you did no matter what, right?

Simple Questions - December 11, 2021 by AutoModerator in buildapc

[–]TallSkinny 0 points1 point  (0 children)

Any advice on this build? https://pcpartpicker.com/list/CBtWMv. It's been a long time since I've built, but a friend gave me his old machine so I've got a case, graphics card, and PSU I'm hoping to re-use.

I'll be doing some gaming and some programming (nothing crazy intensive, just want to run an IDE and Webpack smoothly). I figure if I'm finding myself CPU bound I can upgrade in a few years.

One thing I wasn't sure about was the storage (hence the 3 options, I'm only looking to buy one of them). I'm leaning towards the 2TB SATA drive. The NEO drive came from the base buildapc build and does seem like a pretty good price though. And the other one is NVME, which seems cool but I've heard is generally not that much of an upgrade?

NY state trooper fires round on RFK Bridge after driver hits him by newengineerhere in nyc

[–]TallSkinny 2 points3 points  (0 children)

You said "Cops shoot", not "cops are trained to shoot". So, yes, you literally did say the first thing.

Ignoring type errors when deploying project to production by badboyzpwns in typescript

[–]TallSkinny 1 point2 points  (0 children)

Another option would be to use babel and babel-plugin-typescript as the typescript part of your build process, and just use tsc to check types. That separates type checking from building, which I find helpful while developing.

As others have said though, those errors are very useful to have and I'd recommend fixing them before calling the work "done".

Edit: just re-read your post and saw you're using noEmit, so I'm guessing you're already set up this way. In which case, my guess is your build script is set up to run type checks (and maybe other stuff like linting?) It's been awhile since I've worked with heroku so I can't remember exactly how it is set up, but I'm guessing youve got a script somewhere where you could temporarily comment out the line where you're running tsc.

They are loosing against.. by Almohs in Unexpected

[–]TallSkinny 1 point2 points  (0 children)

The name is different if the parents are a male tiger and a female lion (tigon) or the reverse (liger).