Generally speaking, using read-only variables (in any language) and modulating your program (in any language) is good.
Read-only variables protect against a common source of errors and also help improve readability and maintainability. Knowing that you can rely on the value of a variable allows you to better reason about your program and make assumptions about that variable later β things you could not do if the variable were mutable.
Modulation improves maintainability and reuse. More modules usually mean finer-grained units that can be reused in different circumstances, a shorter code that is easier to read, and if your modules are independent, less interaction between parts that can destroy the modification.
Ronald barzell
source share