The
VotesControllerclass consists of several almost identical methods. I know that copy-paste is bad, but I have no idea how to deal with it in this case.I am not sure about naming conventions in Spring. Have I properly named controllers, entities, fields, etc.?
I really hate the way I pass information to the Mustache templates. For example, I need to display a question's creation date in this form:
May 27 '20 at 15:40, but if I just useDate creationDateTimefield from theQuestionentity then Mustache will display it in the form2020-05-27 15:40:49.0.
And then I can use formattedCreationDateTime in the template. It is not the single oneonly example.