.net code readability and maintainability
Posted
by george9170
on Stack Overflow
See other posts from Stack Overflow
or by george9170
Published on 2010-04-06T14:43:06Z
Indexed on
2010/04/06
14:53 UTC
Read the original article
Hit count: 473
There Currently is a local debate as to which code is more readability
We have one programmer who comes from a c background and when that programmer codes it looks like
string foo = "bar";
if (foo[foo.Length - 1] == 'r')
{
}
We have another programmer that doesn't like this methodology and would rather use
if (foo.EndsWith("r"))
{
}
which way of doing these types of operations is better?
© Stack Overflow or respective owner