Notes on C#, JavaScript, SQL, RavenDB, No-Sql, PHP and other software related activities.
Tuesday, May 3, 2011
String.Format
Such a simple, but commonly over looked function. When writing inline sql, (yes, it still happens), try to use string.format(...) vs. "text" + "text" + someVar.
I wish I had time to post samples of both, so you can see the readablity difference.
No comments:
Post a Comment