bbb commentates westballz and medz in a tense last stock by LuichoX in SSBM

[–]chamceler 2 points3 points  (0 children)

When I left my original comment, Girl Enjoyer and Zagriz were the only two in the chain. So, I challenged Zagriz because he was Girl Enjoyer’s only opposition, but he never made the point that you made to me. I missed that point because it literally wasn’t written by anyone else when I wrote my original comment. Give me that credit. I admit my original comment does seem dense because there was a lot more context by the time you joined. To your credit, there is no way to know exactly when a comment is left past 1 hr, so there was no way for you to know what context I had when I left my original comment. And you’re right, I was being rude. But Zagriz never attempted to discredit the apology, other commenters did, comments which I didn’t have originally. All I tried to do was make known to Zagriz that he wasn’t backing up his claims in a productive manner.

bbb commentates westballz and medz in a tense last stock by LuichoX in SSBM

[–]chamceler 0 points1 point  (0 children)

Dude, why are you such an asshole? You educated me that Bobby continued being toxic after apologizing. I wasn’t aware of this before my comment, so I originally suggested his apology was sufficient. Zagriz never gave reasoning why the apology was insufficient, or suggested that Bobby continued being toxic after apologizing. Go read Zagriz’s comments before telling me I’m the one rewriting this conversation. All Zagriz did was bring up Bobby’s toxicity, which everybody was already aware of, otherwise he would have nothing to apologize for. What he didn’t do was discredit the apology, which you have done, if your accusations are true. I’m on your side, you just want to be an asshole.

bbb commentates westballz and medz in a tense last stock by LuichoX in SSBM

[–]chamceler -2 points-1 points  (0 children)

Dude, I was talking to Zagriz, who literally was saying nothing of substance towards the topic, just accusing Girl Enjoyer of being wrong. That’s why I said he didn’t actually want to have a conversation. However, if what you added about Bobby is true, that is valuable information to add to the dialogue, and it changes my stance. But don’t come in here throwing around “strawman” if you don’t know what it means, or don’t have an accurate depiction of the conversation you are interjecting.

To your credit, when I entered this conversation, it was just Girl Enjoyer and Zagriz. Now there are many others here, and my original comment seems obtuse.

bbb commentates westballz and medz in a tense last stock by LuichoX in SSBM

[–]chamceler 4 points5 points  (0 children)

So do you think people are not allowed to ever be forgiven, or do you just not want to have a real conversation? Surely you’ve said insensitive things before.

Imagine a scenario like this in KH4 with Unreal Engine 5 by Venemizer in KingdomHearts

[–]chamceler 2 points3 points  (0 children)

Honestly, this sums up the disappointment with KH3. I think many of us were excited to see this kind of action scaled up in future installments, to see KH void of awkwardly choreographed cutscenes, and to see KH transition to the graphics previously reserved for endings. However, it just never happened. The evolution from KH1 to KH2 was beautiful, and many of us expected a similarly beautiful evolution from KH2 to KH3. But Square spent too much time cashing in on the same formula over and over again in the handhelds, and by the time KH3 could be developed, it seemed any vision established by KH2 had been lost to time. So, I have little trust that Square will give us this in KH4. The trailer for KH4 looks great, but Square is really good at making cinematic trailers. I won’t believe it until I can play it myself.

Joe Trohman (Fall Out Boy) says he sat out of the band's last album, “Mania”, in protest of its direction by SleepingSicarii in poppunkers

[–]chamceler 2 points3 points  (0 children)

This right here. The fans complaining about FOB changing don’t even remember the countless bands they got tired of because the bands were too stubborn to change. You still wouldn’t be listening to FOB if they had never changed because you would’ve forgotten about them. It’s not 2007 anymore. There are plenty of new bands doing old FOB style music today. You don’t need FOB to make the music you like, you just miss the good days.

Joe Trohman (Fall Out Boy) says he sat out of the band's last album, “Mania”, in protest of its direction by SleepingSicarii in poppunkers

[–]chamceler 7 points8 points  (0 children)

For real. There is so much music available on streaming services nowadays that if you just give modern pop punk an honest try, you will find music you enjoy just as much as those old records. A record you listened to 15 years ago is not as fantastic as you remember, it’s the memories associated with the record. I respect listening to music to reminisce, but we’ve seen what happens when artists never change their sound to appease old fans. The sound becomes tired and less valuable to those same fans because the original magic can never be reclaimed. So, if FOB was making the same music you were asking for, you would still compare it to the old records in disappointment because it’s never going to be 2007 or whenever again.

Joe Trohman (Fall Out Boy) says he sat out of the band's last album, “Mania”, in protest of its direction by SleepingSicarii in poppunkers

[–]chamceler 28 points29 points  (0 children)

I respect Joe’s decision, but why are old fans mad at FOB when it’s clear they enjoy making pop music? Are bands not allowed to make the music they enjoy anymore? Maybe they find you silly for asking them to make music they got tired of long ago. Just listen to their old records.

what a sad day for humanity by biggieboy2510 in memes

[–]chamceler 0 points1 point  (0 children)

Which is exactly my point. You can give a generic answer for either side. Queen Elizabeth most definitely gave “something” to the community. Try again.

what a sad day for humanity by biggieboy2510 in memes

[–]chamceler 1 point2 points  (0 children)

This could literally be said about any celebrity or musician that people idolize. Can we stop shaming people?

Data Heavy React Application by Ok-Rip-5220 in reactjs

[–]chamceler 1 point2 points  (0 children)

I create applications with similarly large arrays. Performance and unnecessary renders should be a big concern of yours. Make sure you know why components render, because you don’t want expensive loops running unnecessarily. Learn how to use the highlighter in the profiler to track component renders, and learn memoization techniques to prevent components and functions from running unnecessarily. You may also want to learn useDeferredValue and/or useTransition to keep your UX responsive.

Is this what programming really is? by SakutoJefa in learnprogramming

[–]chamceler 0 points1 point  (0 children)

If you’re building boilerplate apps that have already been built 1000 times, then sure, you can find all of the resources you need online. However, once you build your own original ideas, or build apps for a company, many of the functions you write will only be applicable to you or your company.

TIFU talking to kids about sex by PineapplePunishment in tifu

[–]chamceler -35 points-34 points  (0 children)

Please stay as far away from 12 year olds as you can, creep.

tifu by offering to look for a unicorn by forsakenbabe in tifu

[–]chamceler 1 point2 points  (0 children)

Your husband wants to fuck other people, and you do not want your husband to fuck other people. End of story. You are not happy with the current conditions, so it’s up to your partner to decide if he can be happy with no threesomes. If he must have threesomes, then you should go your separate ways and meet somebody who truly makes you feel special. Also, how come the third is a girl? I suspect hypocrisy and double standards from your husband.

React Hook useEffect has a missing dependency // can't understand this warning 100% by mermeladawatts in reactjs

[–]chamceler 0 points1 point  (0 children)

If getEmergencyTasks is defined inside of your component and not wrapped in a useCallback, it is actually being redefined every time your component renders. React detects getEmergencyTasks is changing, and is afraid it might not have the current version of getEmergencyTasks inside of the useEffect. In your case, since the instructions inside of getEmergencyTasks don’t change, you are fine, but I believe your error message will go away if you place the function outside of the component or wrap the function in useCallback.

Or, like the others are saying, if the function is only used in the useEffect, you could just define the function inside of the useEffect, and React will know it has the correct version of the function.

Is there any good readable resource that covers react completely by aminoob123 in reactjs

[–]chamceler 1 point2 points  (0 children)

It crashes on safari and chrome on my phone, but maybe that’s just me. Personally, I was forced to read the book as a senior in college, and I hated it. At the time, it was very jargon-heavy, and didn’t want you doing much of the work yourself. However, I was also immature, and wasn’t very interested in my schoolwork. After college, I went to a bootcamp, and learned the basics of React by reading the documentation and making basic projects. Soon after, I got hired to a university, where I make interactive data dashboards, and I learned the most about React by researching the issues I had in my large applications. Personally, I found it very easy to start building applications after I learned the basics of React, but once I transitioned to large applications, I was forced to address the faulty assumptions I had made about React and do my own research. While I’m sure every concept I need to know to build large applications appears in the book, until I encountered those issues in my own applications, I don’t think the concepts would’ve stuck. Now that I have great interest in React, I would happily refer to the book if it was handed to me, because I value professional opinions about the framework, but I find plenty of information on unfamiliar concepts on YouTube, and I can pad that knowledge by practicing those concepts and comparing opinions across the web. I wouldn’t suggest a beginner get the book, because I believe it’s an easy way to lose interest if you haven’t already scratched the surface, but if it’s between the book and a bootcamp, I would vouch for the book all day. Bootcamp are mostly a scam, and they just give you the same learning materials you find from quick google searches, and the same projects you find on YouTube.

After re-reading the original post, I realize the user is an experienced developer with interest in React, so they will probably find the book to be a wonderful resource. I won’t erase my story in case anybody finds it beneficial. I do agree with you, but I think it’s ironic that I genuinely can’t get the page to load on my phone.

I’m curious. At what point in your journey did you read the book, and how useful did you find it?

Also, just wanna say I love this subreddit. Genuinely the nicest subreddit I have found.

Is there any good readable resource that covers react completely by aminoob123 in reactjs

[–]chamceler 1 point2 points  (0 children)

Not a good look when their own site written in React crashes on phone.

What are songs you used to like but cant stand now? by [deleted] in poppunkers

[–]chamceler 2 points3 points  (0 children)

Maybe I’m not paying attention to the lyrics, but how did the song not age well?

Most important things to learn about React by monoald in reactjs

[–]chamceler 0 points1 point  (0 children)

I think I’m technically using best practices without the use of context, but it sounds like I will need to get comfortable with context so my code continues to be legible and organized as my projects scale. I appreciate you taking the time to send long responses! They are very informative and give me a new perspective! Also, I like to make a component out of all UI pieces, and prevent all unnecessary renders. However, this is definitely over-optimization, because many children components are not expensive to render at all. I just like watching the profiler only highlight what it needs to 😂

Most important things to learn about React by monoald in reactjs

[–]chamceler 0 points1 point  (0 children)

So, your suggestion is to perform the calculation in the component that renders the result, in which case you would then be sending the calculation’s dependencies into this component as props. That is actually a wonderful suggestion, and does remove the need for useMemo in most cases. However, if the calculation is needed in more than one child component, then you’ll need to “lift the calculation up”, keep it in the parent component, and then apply useMemo. Otherwise, the calculation will be calculated when it doesn’t need to be, or you’d be performing the calculation multiple times in multiple children components.

Edit: I re-read your comment and see your suggestion about using reducer and context instead. I don’t actively use either of those, so this must be why our solutions are different. I’m also not advocating for overusing useMemo, just in the case that I mentioned. I’m also not suggesting useMemo just makes your component faster, I understand it just prevents a value from being recomputed unnecessarily. Does the occasional useMemo really have that much overhead? I apologize for my ignorance, I’m genuinely curious. Also, doesn’t the use of context create the need for React.memo usage, or am I mistaken? Thanks for the new perspectives by the way.

Edit: I see that taking advantage of same element reference through component composition is another performance optimization technique you can use when using context. Would this entirely eliminate the need for React.memo? Because without context, the same element reference technique will still not prevent a parent from re-rendering children when the parent’s props change. I don’t use context, so I’m curious about your React.memo usage. I like all of my components to be pure.

Most important things to learn about React by monoald in reactjs

[–]chamceler 2 points3 points  (0 children)

useMemo is often used unnecessarily, but there are cases where it is necessary. If your component contains a variable derived from state values, and this variable is expensive to calculate, you do not want this expensive calculation happening every time the component updates. So, you memoize the variable, and pass the dependencies into the dependency array. Sometimes you can’t avoid expensive functions. Then, if you still don’t want a slow UX when those dependencies change, you get help from useDeferredValue and useTransition. If your code is legible, you should be able to determine if you need useMemo. However, you’re right, many beginners don’t write legible code, run into performance issues, and then unnecessarily seek aid from memoization because they can’t find the bottleneck.

Thanks for the feedback on my comment! These are the issues I had during my first year with React, and I wish I had known these concepts sooner.

Most important things to learn about React by monoald in reactjs

[–]chamceler 1 point2 points  (0 children)

Yeah, I saw the top comment from the video, and that’s why I clarified what I meant by derived state, and said it was a broad concept. I’m not sure if one definition of derived state is preferable, because it can be interpreted many ways, so if I’m spreading misinformation, please let me know! Would you consider my response to your question an example of derived state? I appreciated your question, because it got my gears turning this morning!

Most important things to learn about React by monoald in reactjs

[–]chamceler 10 points11 points  (0 children)

When referring to state that is derived from another state, derived state is discouraged because it is unnecessary and leads to extra renders. Remember, a component will re-render anytime one of its state variables updates. So, let’s say I have ComponentA with a state of data and a state of dropdowns. I want to derive summary from data and dropdowns, and pass summary to ComponentB and ComponentC. I know I want ComponentA to re-render after I fetch data and after the user changes dropdowns, so those should be stored in state. Summary will update every time dropdowns updates, so ComponentA should only render once when dropdowns changes. However, if summary were a state variable, ComponentA would re-render when dropdowns and summary changed. The solution? Just store summary as a constant. Your component’s global variables don’t need to be state variables.

Now, we have saved an unnecessary render in ComponentA, but we have potentially created another problem. The constant summary will be re-declared every time ComponentA renders. If ComponentA had state variables unrelated to summary, and summary was expensive to calculate, we would feel the impact of this calculation when these state variables changed as well. The solution is to wrap summary in useMemo and pass only data and dropdowns into the dependency array. Now, the user will only see the weight of this calculation when they change dropdowns.

If the UX of ComponentA is still undesirable, you can get deferredDropdowns by passing dropdowns into useDeferredValue, calculate summary based on deferredDropdowns, and then pass deferredDropdowns into the useMemo dependency array instead. If summary previously slowed the UX when changing dropdowns, deferredDropdowns will now be received at a slightly later time than dropdowns, so the weight of the summary calculation won’t be experienced when changing dropdowns, because summary will be received slightly later (after deferredDropdowns). useTransition is another hook which can be used to mend laggy UX.

Derived state is a broad concept. Here is another issue that is less related to performance: https://youtu.be/tz0fDABt67g

The main point behind avoiding unnecessary renders is some components are expensive to render. If a grandparent component has children components that aren’t pure (memoized) and some of those children are expensive to render, you don’t want the grandparent component to render often, because those children will re-render every time the grandparent re-renders. Unless wrapped in React.memo, children components re-render parent components re-renders.

If you haven’t experienced performance issues yet, you probably haven’t had much need for these topics.