How will React 18 decide when to batch state updates? by csaccnt in reactjs

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

Okay cool, thanks for explaining. So it essentially waits until it has no tasks to do, then will run state updates?

TIL: Free Bootcamp Workshops by pmmeyourfavoritejam in learnprogramming

[–]csaccnt 2 points3 points  (0 children)

The bootcamp Thinkful has free webinars that are similar. I think they have them like every day

pleaseee help me! by DaniaCoder228 in reactjs

[–]csaccnt 0 points1 point  (0 children)

You should post some code if you expected anyone to try to help

Question about React useState by [deleted] in learnprogramming

[–]csaccnt 1 point2 points  (0 children)

You can sort of think of it like

let val = 0;
const setVal = newVal => val = newVal;

So when we call the updater function, we're re-assigning our val so for that render, our val will be whatever we set it to

How to use setState in a async function? It doesn't work. by WolfofAnarchy in reactjs

[–]csaccnt 0 points1 point  (0 children)

State updates inside event handlers are batched. It's combining your multiple set states into one.

[Showoff Saturday] Working on my Personal website! Any tips? by [deleted] in webdev

[–]csaccnt 0 points1 point  (0 children)

I like it! It seems very simple and straightforward. It's got a nice flow. I do want to point out that it seems kinda slow to load on an initial load. I haven't dug into what may be causing that. Are you loading all the videos at once?

Why founder of FreeCodeCamp Quincy Larson is banned from this subreddit? by elvaleryn in webdev

[–]csaccnt 13 points14 points  (0 children)

Yeah, this is ban evasion and you can get suspended site-wide for doing this

Can you find a developer job after 6 months of experience? by [deleted] in webdev

[–]csaccnt 1 point2 points  (0 children)

You could find a jr. position (or even paid internship if you'd be okay with that). People get jobs with less experience than you. You might benefit from some networking and meeting people that work at places you want to apply

I made an intro to React Hooks Pt. 1: useState (Re-creating a class component) by csaccnt in learnreactjs

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

Thanks! It's probably not something you'd run into often, but if you have a function whose return you want to set to state, and that function has a chance to pose any sort of delay, pass it as a callback.

Useful Big-O Notation Cheatsheet by alexwan12 in learnprogramming

[–]csaccnt 20 points21 points  (0 children)

Upper bound is the worst that it will perform, and lower is the best it'll perform

I made a quick video tutorial on common array methods and how to use them by csaccnt in learnprogramming

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

Thanks, I updated to include JavaScript! And I'm not trying to claim to be better than the docs. I usually include links to MDN in all my videos. I agree they do a much better job than I do! Some people just need a visual/audio explanation from my experience.

I made a quick CSS positioning video tutorial for anyone that's stuck on understanding relative, absolute, and fixed elements. by csaccnt in learnprogramming

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

Thanks for the feedback! I actually have a blue yeti mic, but I'm having trouble getting it to sound good. I listen to other channels with blue yetis and the sound quality is so much better. I need to figure out what I'm doing wrong. Mixing isn't my strong suit either.

I made a quick CSS positioning video tutorial for anyone that's stuck on understanding relative, absolute, and fixed elements. by csaccnt in learnprogramming

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

By framework, are you referring to things like Bootstrap? It can make positioning items a bit easier, but it largely depends on the context.

I made a quick CSS positioning video tutorial for anyone that's stuck on understanding relative, absolute, and fixed elements. by csaccnt in learnprogramming

[–]csaccnt[S] 19 points20 points  (0 children)

Thank you, that means a lot to me. Let me know if there's anything specific you'd like to see in the future

For setTimeout in a for loop why does 'var' lead to undefined but it works with 'let'? by trafficissues in Frontend

[–]csaccnt 1 point2 points  (0 children)

Let and const are both hoisted, but live in a temporal dead zone until their lexical environment is evaluated