In ASP.NET, I’ve started to use a standard way to structure my ASP.NET Server Control attribute that I have found to be very useful. It is amazing how something so simple helps a lot with readability and consistency.
Basically, what I do is sequence the attributes in alphabetical order after ID and runat respectively as follows:
It makes it very easy to identify missing attributes or any additional processing rules that may need to be applied. I find this particularly useful when doing code reviews with the team and we have adopted this convention with relative ease.
So what conventions do you use that you have found useful?