News for hackers. Stuff that matters.
Re:React's UseRef Deep Dive by azangru on Thursday December 17, 2020 @05:47AM (#25454395)
> Junior engineers are also constantly tripped up

That's just the nature of being a junior engineer — you get tripped up. Tripped up by mutating objects, by stale closures, by comparing numbers to strings, by asynchrony, by thinking in terms of rxjs or xstream streams, by god knows what else.

Re:React's UseRef Deep Dive by fn1 on Thursday December 17, 2020 @06:19AM (#25454547)
So let's write code in a way that doesn't trip up junior engineers...

That will also help seniors when they are tired or under time-pressure.

Re:React's UseRef Deep Dive by true_religion on Thursday December 17, 2020 @07:01AM (#25454798)
Sure and if you are at a big company like Facebook that makes total sense. However lots of us work for smaller firms. My company has no junior engineers.