I and my team starting new project with asp.net mvc (before write in c++) and i want to use best code style practice for asp.net mvc because its very important thing for long project. You guys who have good experience in asp.net mvc can recommend me good code styling rules? Thanks a lot
This question is too broad to be answered here. I would recommend you start with some tutorials and also there's the excellent Pro ASP.NET MVC Framework book from Steven Sanderson you might take a look at.
Also here's an excellent guide you should definitely checkout. It is based on a couple of golden rules that should be respected if you want to follow good practices.
Here are some links describing good practices for coding ASP.NET MVC:
ASP.NET MVC Best Practices (Part 1)
ASP.NET MVC Best Practices (Part 2)
http://www.slideshare.net/simonech/aspnet-mvc-best-practices
But the best option is to read some ASP.NET MVC book like "PRO ASP.NET MVC 2 Framework" or "ASP.NET MVC in Action"
If its real coding style that you are looking for, I really recommend Resharper, that tool gives you tons of good advice while your are typing. It helps you respect the naming convention standard set by Microsoft which you can consult here.
There's just too much to say about ASP.NET MVC..
I'd suggest you to buy and read a book if t is a very important long project, Wrox and Manning books are 2 good choices
精彩评论