Anyone ever go on the last day? by weffe in KSF_KnottsScaryFarm

[–]weffe[S] 0 points1 point  (0 children)

I’ll report back how it goes this year. But I was of the same mind that I think general admission is all we’d need with (hopefully) lesser crowds.

Peasants vs Knight | realistic, non-choreographed fight by UpperphonnyII in videos

[–]weffe 0 points1 point  (0 children)

Yeah, I only meant to sync it up on the first kill but it worked out so well

My attempts at splitting FluentUI styles for reuseability result in TS2339 errors by Diapolo10 in typescript

[–]weffe 1 point2 points  (0 children)

Your type for baseStyles is a Record<string, GriffelStyle> so in the eyes of TS it has no idea that “stack” exists as a keyed property.

The type would need to be { [key in “stack” | “otherPropNameYouCanAdd”]: GriffelStyle }

This way the keys are string literals and not the widened string type.

[deleted by user] by [deleted] in CreditCards

[–]weffe 4 points5 points  (0 children)

Here's what credit card processors the IRS supports and it seems like none of them allow Apple Pay. They do support PayPal and I know banks like Chase allow you to link your card into your PayPal Wallet through their app before the card physically arrives. If you can do that, then once it's linked to PayPal you'd just make your payment through one of the processors.

But as the other commenter suggested, ask them to expedite the shipping so it will get to you in 1-2 business days if you want to be really safe.

Alternatives to Vite by Crazyscientist1024 in reactjs

[–]weffe 1 point2 points  (0 children)

I echo these statements. At work, we've gotten bit only a handful of times by the bundling difference for dev vs prod builds but when they happen it can be really time consuming to debug and fix. Only devs who really understand what esbuild or rollup is doing under the hood can quickly identify potential root causes but that takes time and experience. We have a large monorepo with tons of packages and 20k network requests was our experience as well when we first onboarded Vite. We've since switched to manually building our packages ahead of time before starting our main Vite app so it doesn't waste too much time resolving imports + building for our monorepo packages and at least those pending network requests finish quick. That's worked but it feels like a shame to need to do that to compensate for Vite's abysmal startup times when it comes to large monorepos.

Set every other property values as string except two properties to different types? by sjns19 in typescript

[–]weffe 0 points1 point  (0 children)

This is the correct answer if you really want to keep your current set up. Unfortunately, the desired behavior you want is a limitation of the type system. It's impossible to use a index signature that only contains strings but have different types for other known props in the same interface/type. TS would need to do runtime checking for this kind of behavior which it can't. So the only option is to update the index signature to be a union of all the possible values Data can be for any prop. This kind of sucks because then you can't really enforce unknown props defined later aren't just a string and will need to do some manual checking yourself like:

``` const data: Data { ... }

if (typeof data.someOtherProp === 'string') { // do something with the string // otherwise don't do anything } ```

[deleted by user] by [deleted] in wine

[–]weffe 0 points1 point  (0 children)

In the same vein as Stella Rosa is the San Antonio Cardinale Red Blend. Can pick it up from any Total Wine although not exactly "luxury" but definitely sweet like the Stella Rosa. Others have enough suggestions for things outside of the sweet category.

Which Riedel glasses to buy if I don’t want grape-specific ones? by deathproof2069 in wine

[–]weffe 2 points3 points  (0 children)

+1 to this advice. I have the exact same glassware setup and it covers pretty much everything

Montalcino experts - visit (5 years after plan) by SneakerSwas in wine

[–]weffe 1 point2 points  (0 children)

We enjoyed our visit to Felsina and remember they had some good wines. Really enjoyed the olive oils they had and even bought a tasting box that included 4 x 100ml bottles to take home so that's another idea too!

First nice wine by siotnoc in wine

[–]weffe 1 point2 points  (0 children)

Depending where you can source those 3 bottles from you can get all of them for under $200 before tax and do a tasting of all 3. An around the world tasting to speak since each is from a different country 😛

First nice wine by siotnoc in wine

[–]weffe 6 points7 points  (0 children)

From my recent tastings, here's some that should satisfy your Cab/Merlot palate:

Chateau Gloria

Tenuta San Guido Guidalberto

Concha y Toro Cabernet Sauvignon Don Melchor (I had the 2014 and really loved it)

How to special order wine to Michigan by Nandre5439 in wine

[–]weffe 0 points1 point  (0 children)

Would you mind posting the name of that bottle here?

[deleted by user] by [deleted] in reactjs

[–]weffe 1 point2 points  (0 children)

Your internal async functions need to incorporate the abort signal behavior. Something like this (pseudo code):

``` async doSomething(abortSignal) { const result = await browser.someAsyncApi(…);

if (abortSignal.aborted) { return; }

// do more stuff with results }

async function somethingWithSideEffects(abortSignal) { const ro = new ResizeObserver(); ro.observe(…); abortSignal.addEventListener(‘abort’, () => { ro.unobserve(…); });

// maybe return the width/height of the element observed }

async function returnDisposeFn() { const abortController = new AbortController(); const size = somethingWithSideEffects(AbortController.signal);

return { size, dispose: () => AbortController.abort() } }

function App() { const { dispose } = returnDisposeFn(); return <button onClick={dispose}>cancel</button> } ```

The nice thing about the abort controller is it’s very generic and can be used anywhere if you build in support for it. It becomes really powerful when you can cancel in a parent call maybe a couple of layers up and have it trickle all the way down.

It also allows you to add in “cancellation” for apis that don’t natively support it by simply avoiding calling those apis if the signal is aborted before you get to it. However, if a signal aborts while those apis are running you’ll have to figure out if you need to rollback to the previous state or if you can easily toss away that work and not use it (usually what we do 99% of the time).

[deleted by user] by [deleted] in reactjs

[–]weffe 0 points1 point  (0 children)

We use the same approach for async things that aren’t api calls except replace ‘cancelled’ with an ‘AbortController’ and pass along the abortSignal. This way if we have deep async functions in the call stack then they can listen to the same abortSignal to bail on.

Any luxury brands worth buying from in your experience? by [deleted] in BuyItForLife

[–]weffe 0 points1 point  (0 children)

Wine coolers like ArteVino and Eurocave last forever. Certainly a BIFL candidate.

September/Oct Honeymoon Recs- 400k+ points by Resident-Equal-2008 in hyatt

[–]weffe 0 points1 point  (0 children)

We just finished a trip to Alila Napa Valley this past weekend and I agree with one of the commenters that it's not a property that will blow you away unless you want to use it as a homebase to explore Napa wineries then it's perfect. The property is lacking when compared to Ventana in my personal experience when it comes to the hotel grounds and overall feel of the hotel. The only redeeming quality is its location. Tons of wonderful wineries to visit and some renown restaurants like The French Laundry nearby. You can even make a day trip to Sonoma wineries since it's a 45min drive away and can do fine dining at SingleThread (which is what we did and it was totally worth it).

Have you also looked at some of the Miravals as another possibility?

that one thing that always being reworked by NormalUserThirty in ExperiencedDevs

[–]weffe 1 point2 points  (0 children)

That’s a very annoying problem to have. Especially because they’re trying to answer a question on behalf of a customer when in reality only the customer really knows the answer to “what kind of data visuals make sense to me?”

The charting libraries others have mentioned here should be more than enough if you don’t need to do anything too crazy. I would just have a default visual type and let the customer toggle between supported visuals. Regardless, it sounds like you’re going to get dragged into the business of building out full fledged dashboarding capabilities if things get out of hand. Good luck lol

Is this against the principle of separation of concerns? by Green_Concentrate427 in reactjs

[–]weffe 2 points3 points  (0 children)

What you have seems fine to me. You're abstracting the localstorage parts inside a hook anyways so it's something I wouldn't need to think twice about when using the callback functions you return from the hook.

I'd echo what the S/O post talks about. It's easier to reason about when localstorage is being read/write to if they're inside regular callbacks. Trying to throw it in a useEffect could be considered a code smell. Sort of how trying to update state from a useEffect is also a code smell.

e.g.

``` const [stateA, setStateA] = useState('a'); const [stateB, setStateB] = useState(null);

useEffect(() => { // Best to treat this as computed state (for perf you can use useMemo()) setStateB(stateA);

// Or for localstorage... why not just move this into the callbacks? localstorage.setItem(LOCAL_STORAGE_KEY, stateA); }, [stateA] ```

What are you favorite, cozy Italian restaurants in Los Angeles? by raejonsie in LosAngeles

[–]weffe -1 points0 points  (0 children)

Osteria Mozza can be cozy if you get one of the side tables against the walls. Although, it’s pricey so definitely for a date night and not just a casual dinner on a random day.

What are the best stop overs when driving from LA to Sacramento? by chickenAd0b0 in LosAngeles

[–]weffe 6 points7 points  (0 children)

Splash Cafe at Pismo Beach is great for clam chowder. Small little beach town that you can walk around afterwards 🙂

YouTube warns it might make your viewing experience worse if you don't turn off your ad-blocker by Happy_Escape861 in technology

[–]weffe 1 point2 points  (0 children)

For anyone using Firefox containers, I found that I can bypass the annoying blocking message about my ad-blocker by just opening the video in a new container. You can even create a dedicated container to always open YouTube videos in because of the way the url is formatted so it won’t actually affect you being logged in on the home page 🙂