DEV Community

Discussion on: Why you shouldn't reassign values in JavaScript

neradev profile image
Moritz Schramm

Optimization can often lead to code that is harder to read, test and maintain. You are right saying that is the task of an programmer to understand the code. But I would not like to work in such code. Moreover in times of huge in-memory-databases, memory is not as expensive as programmers maintaining and extending the code.