Hacker News new | ask | show | jobs
by ReturnTheGift 6194 days ago
"Don't use the nice readable str + str syntax to concatenate, instead, use StringBuilder"

Depending on who the audience is for your coding standards, this may not be a bad standard to have. In certain scenarios (e.g. building a very large String in a loop), appending with a StringBuilder can be vastly more efficient than "str+=" concatenation. Without the standard, the audience needs to know when it's not appropriate to use "str+=" concatentation.