Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pet Peeves with .NET
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00830196
Message ID:
00831244
Views:
19
There are a lot of things in .Net that are very inconsistent from naming conventions to property names in different areas of the framework itself. I th9ink a lot of the ASP.Net decisions where based on matching the Windows Forms and Web Forms as much as possible... Of course in a lot of places (especially databinding) this is also not the case where it certainly could have been...

Consistency across such a large framework is difficult to achieve especially given the time frame in which .Net was cooked up. Overall though there's plenty of consistency because a ton of objects are consistently reused over and over again...

+++ Rick ---



>>I have one pet peeve with .NET (so far). I have a business object class library that contains an "entity" class for a SQL Server table named "Event". I went through a moderate amount of trouble to automate creation of the entity class definitions for an entire database, and one of the first issues was enclosing all class names and property names in brackets [ ] so I wouldn't run into problems with keywords that happen to match class or property names. Everything was rosy until I added a Web Reference to a Web Service that contained the class definition. It seems that the Reference.vb generator does not include the brackets, which causes a compilation error after I update the Web Reference.
>>
>>Does anyone else have any pet peeves that they would like to share?
>
>Keith;
>
>I have my share and here is a simple one: In HTML you use the input tag and the property “value”, while using .NET “Value” is called “Text”.
>
>Changing the terms keeps you on your toes if that is where you like to be! :)
>
>One nice thing about these differences is that you get burned once and that is all it takes to remember! :)
>
>Tom
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform