News for hackers. Stuff that matters.
Re:JavaScript fundamentals before learning React by dotancohen on Saturday July 21, 2018 @08:03AM (#17581722)
> They initialise a variable using let and then branch to figure out > what should go inside it. That can be replaced by a pure function.

I don't want to detail the discussion, but I would love to see some of your code. I contend with this antipattern often but solve it in different ways often depending on language features. If you're doing anything other than simply calling an auxiliary method with a ton of parameters, I would appreciate seeing your solution in Javascript, a language that I'm learning but not proficient in.

There are no comments on this comment yet.