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.
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.