Visual Studio 2005 is the most powerful developer’s tool in existence today, bar none. (the same was true for Visual Studio 2003 in its time)
It is designed with a single goal: to increase developer productivity. Period. How do I know this? Because, you know a tree by its fruit.
So when developers misuse it by handwriting code that VS generates automatically they are wasting their time and money.
For instance, take the XML Schema designer. The Schema Designer, as well as the Data Designer, allows you to visually create a schema and see the relationships between elements as well as attribute and element types. The Designer automatically generates code when you save the schema.
This code is well written, well tested, and efficient.
So why would someone hand code routines to read an XML file? Even worse, why would someone use concatenated strings to save an XML schema in the code?
The usual excuse is: “We want to keep the schema hidden from <insert criminal/customer group>.” This is no excuse. VS will not only automatically generate schema serialization code, but that code will give no impression of the underlying schema it is serializing. In fact, the generated code allows you to ship the software without including the schema file that it’s based on. Furthermore, if the schema must change it is changed in the designer, visually, where any developer can change it without having to study and understand complex serialization code. And he can do it two years from now, when everyone has forgotten how that particular piece of code works.
Hand writing code that VS generates is one of the best ways to waste Visual Studio.
Recent Comments