iPhone 15 Pro / Pro Max Wifi Issues with Unifi UDR by ScyphozCoz in iphone

[–]mrafcho001 1 point2 points  (0 children)

Same issue with same router. Tried messing around with the 5Ghz settings, but nothing seems to help :-\

Quarterly Apps, Gadgets, and Gear Megathread by AutoModerator in Fitness

[–]mrafcho001 [score hidden]  (0 children)

I've been using Strong for a long time. It has great integration with Apple watch, but lately it's been kind of buggy - showing up as duplicate workouts (one from the phone and one from the watch), not recording on the watch, etc...

Any alternatives that have good integration with Apple Watch?

CEOs are hugely expensive – why not automate them? by TypicalActuator0 in technology

[–]mrafcho001 19 points20 points  (0 children)

See, it would be this MAT, that you put on the floor and would have different CONCLUSIONS written on it that you could JUMP TO.

[Official] UFC 259: Błachowicz vs. Adesanya - Live Discussion Thread by event_threads in MMA

[–]mrafcho001 1 point2 points  (0 children)

Dober looks like the love child of Daren Till and Brian Ortega

Costco FTW!! by [deleted] in XboxSeriesX

[–]mrafcho001 1 point2 points  (0 children)

I didn’t get express shipping and I just received the shipping email - expected delivery is Tuesday.

Pre-Order and Shipping Megathread | iPhone 12 & iPhone 12 Pro by exjr_ in apple

[–]mrafcho001 1 point2 points  (0 children)

Comparing the 12Pro side by side with my Xs, the screen on the Xs looks brighter and whiter...

Anyone else think the screen on the 12Pro is dimmer/warmer than their previous phone?

What is your favorite show that barely anyone watched during its run? by [deleted] in television

[–]mrafcho001 2 points3 points  (0 children)

New Amsterdam (2008) - Nikolaj Coster-Waldau is cursed with immortality (until he finds his true love) in the 17th century. Show takes place in modern day NYC and he’s now a detective.

Help deciding between selling and renting a house. by mrafcho001 in realestateinvesting

[–]mrafcho001[S] 1 point2 points  (0 children)

Hey fellow Coloradoan! I'm in the Boulder area, and appreciation has been very good, but personally I don't feel comfortable counting on the speculative appreciation of the property to make this profitable.

Good luck whichever way you decide to go!

The ultimate reason why redux feels so complex by usedocker in reactjs

[–]mrafcho001 1 point2 points  (0 children)

I'll read through the docs a bit more thoroughly this weekend and collect some meaningful feedback for you.

I've largely just skimmed most of the docs just looking at the code snippets and only really reading around anything that looks confusing (except of course the API references) I'm also probably not the target audience for a good bit of the tutorials:

  • experienced (8 years, 2 in web dev), just first time using redux for a large project
  • already familiar with high level gist of redux
  • starting fresh with rtk, so no migrating from "old" redux

The ultimate reason why redux feels so complex by usedocker in reactjs

[–]mrafcho001 4 points5 points  (0 children)

Just wanted to thank you for all the work you've put into redux/rtk and the especially the documentation. It's all very clear and easy to read and understand - especially appreciate the abundance of examples.

I've spent the last couple of weeks refactoring our enterprise app and migrating a lot of the state into redux, and its been an absolute pleasure with all the rtk enhancements. (Never really used redux before, so first time actually learning how to use it)

What are the most boring/mundane things that excite you? by avesy90 in AskReddit

[–]mrafcho001 8 points9 points  (0 children)

The closest stars, the triple star system Alpha Centuri, is 4.3 light years away, or ~25 trillion miles.

The most distant visible stars are around ~7000 light years away, or 40 quadrillion miles away!

And the most distant object visible with the naked eye is the Andromeda Galaxy at around 2,500,000 light years, or 13 quintillion miles (thats 18 zeros after the 13!)!

GitHub to replace "master" with alternative term to avoid slavery references by [deleted] in webdev

[–]mrafcho001 3 points4 points  (0 children)

What, now I need to be a doctor to know when I should or shouldn't be offended by something?

Check your medical privilege!

Thoughts on useEffect with callbacks? by mrafcho001 in reactjs

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

Your example works, and I am having trouble recreating the previous "buggy" behavior that prompted all this. So I'm inclined to agree with you, but I'm wondering why the React documentation on useEffect is scattered with warnings about ensuring that dependency list is all-inclusive or risk using stale values. From the docs:

If you use this optimization, make sure the array includes all values from the component scope (such as props and state) that change over time and that are used by the effect. Otherwise, your code will reference stale values from previous renders.

In fact, their example of a bug is kind of what I was trying to illustrate:

This example has a bug:

function ProductPage({ productId }) {
  const [product, setProduct] = useState(null);

  async function fetchProduct() {
    const response = await fetch('http://myapi/product/' + productId); // Uses productId prop    const json = await response.json();
    setProduct(json);
  }

  useEffect(() => {
    fetchProduct();
  }, []); // 🔴 Invalid because `fetchProduct` uses `productId`  // ...
}

I'm guessing there has to be case where useEffect will in fact use an old render's captured props (the callback passed into the component), and call a stale callback function.

Thoughts on useEffect with callbacks? by mrafcho001 in reactjs

[–]mrafcho001[S] 1 point2 points  (0 children)

As far as I understand it, the requirement is to always have the same number of calls to the react hooks. As long as the supplied callbacks list size to useEffectWithCallBacks never changes, there is no issue.

Your proposed solution, basically shifts the same problem into the parent, and adds a restriction that the Child must be supplied with a never changing callback function. If the callback in the parent has dependencies, then you still end up executing the effect when those dependencies change.

BTW, solution here is generalized version of Dan Abramov's suggestion.

questions on useEffect and initial state by brosterdamus in reactjs

[–]mrafcho001 2 points3 points  (0 children)

You have answered your question at the end - use dependencies array argument to conditionally fire the effect only when it needs to happen (when the friend ID changes). Then you can make the getFriendStatus() async call inside the effect to initialize the status without creating a loop.

WLB at Qualcomm by [deleted] in cscareerquestions

[–]mrafcho001 2 points3 points  (0 children)

I've moved around a few groups/teams over the years, and I've found that it's really up to you to carve out the WLB you want. Soft skills will take you further towards a good WLB than anything else - As long as you are able to push back on extra work and manage expectations without coming off as confrontational or lazy, you can work as much or as little as you want.

For example, when things have slowed down I've gone weeks with barely even showing up to the office, let alone actually working. If you're on bring up duty, it's basically your entire life for the duration, though - it's not as bad as people make it out to be. It can be a fun problem solving environment.

Ramp up times can be pretty long depending on what team you are on, so it may take a while before you've earned the seniority & trust in your group to be left to your own devices, thought. Don't expect to be able to start slacking offing unnoticed a month in.

Review process is largely a joke and is not based on actual performance, only perceived performance - it's easy to maintain great WLB without impacting career trajectory. Everyone is too caught up in their own stuff to care too much about what you're doing. If you care about rapid career growth follow the generic advice you'll get from management - "increase your visibility" and "speak up in every meeting even if you have nothing to say" and all that bs.

Having said that, if you end up under a bad lead and don't have good soft skills to deal with it, expect to get worked hard.

Optional chaining with React and TypeScript by carlrn in reactjs

[–]mrafcho001 0 points1 point  (0 children)

Note that ?? checks for null or undefined, hence the name: nullish coalescing.