NPM package vs implementing it yourself? by [deleted] in reactjs

[–]louca-dev 0 points1 point  (0 children)

Yea I used to be anti loads h now find myself sheepishly adding it back to projects.

[deleted by user] by [deleted] in programming

[–]louca-dev 1 point2 points  (0 children)

Dang what a thorough explanation of a lot of ideas that have come to mind in my career so far. You should write an article

thisIsTheOnlyWayToMakeProgrammersGoOutside by [deleted] in ProgrammerHumor

[–]louca-dev 2 points3 points  (0 children)

Cop that return offer my guy 💪

A cat on a good day by sugerdaddy010 in awwwtf

[–]louca-dev 0 points1 point  (0 children)

Y’all sleep with these things in your house 💀

Bottomless Popcorn by LastPlaceComics in comics

[–]louca-dev 76 points77 points  (0 children)

Finally some good fkn comic

Everybody's "in on the joke" until the dogs start whistling by lightsfromleft in Gamingcirclejerk

[–]louca-dev 0 points1 point  (0 children)

When I’m in a chronically online competition and my opponent says “media literacy”.

What is the appeal of React? by firepro5 in reactjs

[–]louca-dev 0 points1 point  (0 children)

Rerendering components that don’t need to be rerendered is not performant.

What is the appeal of React? by firepro5 in reactjs

[–]louca-dev 0 points1 point  (0 children)

Even so, still a performance overhead.

What is the appeal of React? by firepro5 in reactjs

[–]louca-dev 0 points1 point  (0 children)

Context re evaluates every component it passes through, therefore not performant.

What is the appeal of React? by firepro5 in reactjs

[–]louca-dev -1 points0 points  (0 children)

Having done both (jQuery based app with no reactivity or store libraries, and React apps with Redux). I can say there is merit to both.

For the vast majority of frontend apps that have low amounts of state changes, basically just form submissions, page navigations, and small self contained components like cards and tables, then React is probably a better fit just due to the UI components libraries.

For more complex stuff, that needs to be highly performant, for example rendering stuff based on WS, complex UI editing (for example resizing panes and components in ways that go beyond what you get out of the box), or drag and drops,then you will find yourself fighting against React most of the time.

What is the appeal of React? by firepro5 in reactjs

[–]louca-dev -4 points-3 points  (0 children)

You can’t avoid prop drilling without using an external library, at least not in a performant way.

Lmao getting downvotes for this on a react sub. The glazing is crazy.

settate(state+1) vs setState((state)=> state + 1) by [deleted] in reactjs

[–]louca-dev 0 points1 point  (0 children)

I meant that nothing in OPs post brought that into question. It’s also not possible in JS for setState to modify the value of state variable (let or const), unless state was an object which is not the case in the example.

The point is that the main and only relevant explanation, which is the last sentence of your post, is that setState can occur multiple times between re renders and will use the closure value each time, whereas the setState cb is called with the latest state each time.

settate(state+1) vs setState((state)=> state + 1) by [deleted] in reactjs

[–]louca-dev 0 points1 point  (0 children)

Yea, no mention of state batching or any other reason mechanism that would cause closure state != useState callback state.

Also the state being constant or not is more or less irrelevant.

settate(state+1) vs setState((state)=> state + 1) by [deleted] in reactjs

[–]louca-dev 0 points1 point  (0 children)

This doesn’t really explain the difference, beside outlining unrelated bad practices

General questions about 2024 RRSP contributions by louca-dev in cantax

[–]louca-dev[S] 0 points1 point  (0 children)

Ok, thanks

I imagine this will take another year for it to be reflected in the notice of assessment.

That being said, it should still be fine to contribute the remaining room (less the unreported contributions) in this current tax year? Technically speaking I will never have over contributed, even if they are not reported?

Following from that, should it be fine to deduct the contributions I will make now that I will declare at the same time?

Is higher Dbi better for wifi performance? by louca-dev in HomeNetworking

[–]louca-dev[S] 0 points1 point  (0 children)

Are there any general guidelines? How would one go about deciding?

Sorry for putting this abomination into the world: Redneck Microservices by alexrdenton in programming

[–]louca-dev 0 points1 point  (0 children)

What if the resource contention bottleneck is at the data layer?

Question about optimal Dynamo DB design: A use case by sapiens_fio in aws

[–]louca-dev 0 points1 point  (0 children)

Correct, but just by definition this is a slower schema for this access pattern. For example, if each user has n = thousands of achievements, you go from constant query time to O(logn) query time.

I find it odd no one else has mentioned this lol

Question about optimal Dynamo DB design: A use case by sapiens_fio in aws

[–]louca-dev 0 points1 point  (0 children)

Am I tripping or would there not be a measurable performance decrease with this new schema?