Using a lot of hardcoded strings in code
<p>When I am looking at my code and I am writing things like..</p>

<pre><code>if (role == "Customer")
{
    bCustomer = true;
}
else if (role == "Branch")
{
    bIsBranch = true;
}
</code></pre>

<p>Or</p>

<pre><code>foreach(DataRow as row in myDataSet.Tables[0].Rows)
{
    row["someField"]=somefield.Tostring()
}
</code></pre>

<p>Are you guys doing this? When is this ok to do and when shouldn't you be doing this? What if any would be a better approach to write this if any?</p>

<p>Thanks For the Comments: I guess I should add what if (for this example purposes) I am only using this role comparison once? Is it still a better idea to make a whole new class? Also should I have 1 class called "constants" are multiple classes that that hold specific constants, like "roles" class for example?</p>
