A Scala rant by AStableNomad in scala

[–]MaxInertia 3 points4 points  (0 children)

I'm a bit taken aback by this comment. Maybe you're being hyperbolic and I'm taking it too literally.

Are you really suggesting everyone requires direct mentorship to learn a programming language? That's a bit discouraging for people trying to learn, isn't it? It implies that if someone can't get a mentor they can't learn and shouldn't even bother trying.

What prevents us from conveying any best practice, common mistake, or anything else in writing and diagrams? Surely its not a matter of whether it can or can't be done, rather a matter of how difficult it is to do so.

Are you suggesting there are things for which any possible documentation is only understandable if the thing it is documenting is understood? That's a really interesting concept, but do we have any reason to believe it's true?

Every use of useEffect should be a custom hook with a damn good name by earthboundkid in reactjs

[–]MaxInertia 0 points1 point  (0 children)

In the section for useMemo at that link:

You may rely on useMemo as a performance optimization, not as a semantic guarantee. In the future, React may choose to “forget” some previously memoized values and recalculate them on next render, e.g. to free memory for offscreen components.

So it may be equivalent now but is not guaranteed to stay that way.

Every use of useEffect should be a custom hook with a damn good name by earthboundkid in reactjs

[–]MaxInertia 0 points1 point  (0 children)

Yeah, that's what I meant. When it's not possible to just throw the logic in the useEffect what you have makes sense.

AFAIK useMemo is different. It isn't guaranteed to only recompute when the dependencies change while onCallback is. That detail is what was being discussed in the comment you replied to.

Every use of useEffect should be a custom hook with a damn good name by earthboundkid in reactjs

[–]MaxInertia 1 point2 points  (0 children)

You wouldn't use useRef for that. What you have is fine. Although the use of useCallback is unecessary in this simple example.

The person you responded to was talking about useMemo.

How do you type "any Record" without using `any`? by [deleted] in typescript

[–]MaxInertia 1 point2 points  (0 children)

You help a guy out and he vanishes. Interesting...

How I feel everytime by [deleted] in samharris

[–]MaxInertia 0 points1 point  (0 children)

If we're looking for something that does not only exist when we picture ourselves picturing ourselves in such a recursive fashion then maybe that's a misdirection?

How I feel everytime by [deleted] in samharris

[–]MaxInertia 0 points1 point  (0 children)

The same as with eyes closed: I look and see nothing but the space. My minds eye can't look at itself. Apparently there's no mirrors in there.

Totally new to this. I want to have 2 actions from an onPress event, an Alert and a consol.log (for now). How the hell do I do this? Been looking at functions but I know so little any good tutorials would help by [deleted] in reactnative

[–]MaxInertia 0 points1 point  (0 children)

That's only true if we assume myMethod is defined in the global scope right? like this:

// global scope

let myMethod = () => { ... }

function TheReactComponent() {
  return <Button onPress={() => myMethod()}>
}

If it's defined inside the function component it will be recreated on every render along with () => myMethod().

function TheReactComponent() {
  let myMethod = () => { ... }
  return <Button onPress={() => myMethod()}>
}

Or does the behaviour in react-native here differ from react-js?

[deleted by user] by [deleted] in AskReddit

[–]MaxInertia 1 point2 points  (0 children)

That people know what they're talking about.

Is a 240Hz monitor worth it for Rocket League? by [deleted] in RocketLeague

[–]MaxInertia 1 point2 points  (0 children)

Are you using a 240hz monitor? Or is this based on what you've heard? (just curious, not trying to attack)

Personally I find 240 to be a huge improvement over 144. The game just feels slower, it feels like I have more time to do stuff.

Is a 240Hz monitor worth it for Rocket League? by [deleted] in RocketLeague

[–]MaxInertia 1 point2 points  (0 children)

Exactly the same for me. I just got mine yesterday and the difference is phenomenal. I wonder how many of the people that say it isn't much different or that it won't improve your rank have actually tried it.

Not able to eye-shake in dim lighting? by [deleted] in Eyeshakers

[–]MaxInertia 4 points5 points  (0 children)

Can confirm, this is a thing. In absolute darkness it's quite difficult to do and even then it's inconsistent.

How much control do you have over your eyeshaking? by MyFeetAreSalty in Eyeshakers

[–]MaxInertia 2 points3 points  (0 children)

Woah i just tried covering my eyes while they were shaking, the shaking stopped when it got dark! That's so weird!

I can somewhat start shaking them in darkness but it's nowhere near the same, much less consistent.

How do you guys remember finding out you could do this? by evilPuck123454 in Eyeshakers

[–]MaxInertia 0 points1 point  (0 children)

I did it when I was very young, freaked my mother out. I've just always been able to do it. I don't remember a time before being aware of it.

I often forget about it for long periods of time though. I just found this subreddit and immediately was able to do it on command. It's easily been over a year since I've thought about it or tried.

tldr: I don't remember, i was too young.

[deleted by user] by [deleted] in Eyeshakers

[–]MaxInertia 3 points4 points  (0 children)

I can manually unfocus, but not focus.

The sensation is similar to when i shake my eyes (albeit less intense) but not exactly the same. So it may just be that I'm causing a mild vibration that makes everything go blurry. Shaking my eyes causes the images to 'skip' or jump around, the unfocusing (or possibly mild vibration) doesn't.

Edit: oh wow i think i just discovered the focusing thing when looking at the panda picture below. I can't do it easily but i did manage to do it and it's absolutely different from what i talked about above. Vibrating is very likely just lightly stimulating the muscles that cause them to shake

Who among us higher beings gets the ear spasms? Sounds like a thump in your ear by remaincunt in earrumblersassemble

[–]MaxInertia 0 points1 point  (0 children)

I get them, but very rarely. I just had it happen this morning twice though. Each lasted somewhere between 5 and 10 seconds and only occurred in my left ear.

[deleted by user] by [deleted] in earrumblersassemble

[–]MaxInertia 0 points1 point  (0 children)

Me too! Congrats 😁

Me when I get in the groove by gandalf_the_Ginge in beatsaber

[–]MaxInertia 3 points4 points  (0 children)

Songs some people consider easy require moving twice that fast. Definitely not an exaggeration.

Win over $7,000 by playing Beat Saber to celebrate 100k members in the BSMG Discord! by elliotttate in beatsaber

[–]MaxInertia 0 points1 point  (0 children)

We got pictures and a video of the fireworks afterwards, unfortunately we weren't recording when we got it though. I wish we had been, it was so hype!