For example, to get the full name of a User model with first_name and last_name attributes, one could write:
def full_name
self.name_first + " " + self.name_last
end
or
def full_name
"#{self.name_first} #{self.name_last}"
end
I've noticed that I personally prefer the latter. It may be subjective, but which is generally preferred? What are the advantages/ disadvantages?