Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. Commented Nov 10 at 20:41
  • 3
    I find this answer revealing for why you should use const as much as possible :-) Similarly as you start by having systems locked down and open them up as needed, instead of adding security for the issues you can think of. Commented Nov 11 at 8:12
  • The basic understanding I am getting is that you write you code and get it to work, then you add in the conts declaration. The confusing part is how much refactoring you do to your code, are you trying to create pure functions (functions without side effects). Or, are you just doing stream of consciousness programming/debugging then tossing in const in an ad hoc manner? Commented Nov 19 at 15:23