We're a place where coders share, stay up-to-date and grow their careers.
Completely agree with this. I always use const and resort to a mutable variable only if I cannot find a way around it. Variables that can be mutated add mental load and make the program harder to follow.
That’s definitely fair!!
Thanks for reading!
Completely agree with this. I always use const and resort to a mutable variable only if I cannot find a way around it. Variables that can be mutated add mental load and make the program harder to follow.
That’s definitely fair!!
Thanks for reading!