Am I the only one who likes to see milion variables? Like I assign variables for everything. :) If yes, is that normal?

  • 2
    If you've got constant values, then yeah I'm a big fan of putting them into const or final types, I.e

    Private final String MESSAGE_TEMPLATE = "template";

    That way you've not got magic strings or numbers flying around.

    If this is a major concern for you, enums are a nice way to keep things organised.
  • 0
    Ok now I know it is normal
  • 1
    I do that as much as I can because the code is more readable that way
Add Comment