Coding Style

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a software that will scan my code for proper style?
I have seen that software, but I forgot what it is called.
 
Arne said:
Is there a software that will scan my code for proper style?
I have seen that software, but I forgot what it is called.

FxCop will check .NET code for many style/usage guidelines. If you're
talking about physical style - consistency of indent, and so on, then you're
looking for something else.

-cd
 
Are you serious?

If someone is complaining they can't read/maintain someone else's code
because of "style" under .NET, then tell that someone to find a real job as
they clearly have WAY TOO MUCH time on their hands -- seriously who wants
someone that can't be flexible? Especially with .NET where your code pretty
much flows to a relatively standard implementation of syntax formatting -- I
mean hell, you don't really need to identify the type or scope anymore with
the tooltips on.

But with your signature "I program VB.Net for fun and C# to get paid", I can
see you appear to be a little fixated on the syntax, personally I wouldn't
pay anyone anything with irrelevant statements like that.
 
If your not concerned with style, why don't your write your memos in Chinese,
so I can't have to read them?
I think VB.Net is a little but more helpful to the coder. C# requires a
small amount of extra care to get it right.
No, you don't have to worry about hiring an old fart like me.
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)


Rob R. Ainscough said:
Are you serious?

If someone is complaining they can't read/maintain someone else's code
because of "style" under .NET, then tell that someone to find a real job as
they clearly have WAY TOO MUCH time on their hands -- seriously who wants
someone that can't be flexible? Especially with .NET where your code pretty
much flows to a relatively standard implementation of syntax formatting -- I
mean hell, you don't really need to identify the type or scope anymore with
the tooltips on.

But with your signature "I program VB.Net for fun and C# to get paid", I can
see you appear to be a little fixated on the syntax, personally I wouldn't
pay anyone anything with irrelevant statements like that.
 
Hello Arne,

Besides FxCop, as was recomended, there is a nice tool from parasoft ".Test"
I recomend you to look on it

AG> Is there a software that will scan my code for proper style? I have
AG> seen that software, but I forgot what it is called.
AG>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Yes of course style matters, since some style issues are a critical part of
consistency. That's not to say there's a right or wrong style, but many
matters of personal opinion become more dogmatic within the larger goal of
consistency.
 
Arne,
As several people have already recommended FxCop, I'll add in that if
your looking for formatting style (i.e. Do I put the curly brace at the end
of the statement or on a new line? ) VS.Net 2005 has a decent formatter in
it already. Once you set your options it easy to invoke on a file
(CTRL-E-D), or automate using VS macros. ReSharper from jetbrains takes it a
few steps farther with more options but the same ease of use.

I currently use both tools to keep my repositories clean.
 
Back
Top