|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Coding StyleIs there a software that will scan my code for proper style?
I have seen that software, but I forgot what it is called. -- Arne Garvander (I program VB.Net for fun and C# to get paid.) Arne Garvander wrote:
> Is there a software that will scan my code for proper style? FxCop will check .NET code for many style/usage guidelines. If you're > I have seen that software, but I forgot what it is called. talking about physical style - consistency of indent, and so on, then you're looking for something else. -cd FxCop can do some of that. See http://www.gotdotnet.com/team/fxcop/.
Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx Show quote > Is there a software that will scan my code for proper style? I have > seen that software, but I forgot what it is called. 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. Show quote "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message news:7BAED167-EAF4-473E-955B-28407921B863@microsoft.com... > 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 Garvander > (I program VB.Net for fun and C# to get paid.) 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. -- Show quoteArne Garvander (I program VB.Net for fun and C# to get paid.) "Rob R. Ainscough" wrote: > 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. > > "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message > news:7BAED167-EAF4-473E-955B-28407921B863@microsoft.com... > > 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 Garvander > > (I program VB.Net for fun and C# to get paid.) > > > 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. Show quote "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message news:DF3FF24B-F139-4088-85CE-4EF3E10CD468@microsoft.com... > 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" wrote: > >> Are you serious? >> 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 Nietzsche 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. Show quote "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message news:7BAED167-EAF4-473E-955B-28407921B863@microsoft.com... > 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 Garvander > (I program VB.Net for fun and C# to get paid.) |
|||||||||||||||||||||||