Matt Scilipoti's WebLog

.NET et al

February 2003 - Posts

The Code Model

Here's some info about the .net code module.

Chapter 12: The Code Model

The idea is simple—define a single API that captures the essence of the most common programming constructs, and have each of the languages in Visual Studio .NET implement that API in its native tongue. The result is a single set of objects—the code model—that a programmer can use to read or write code in any of the languages in Visual Studio .NET.

Strange Error: in ASP.
Strange Error. Happened with Literal too. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The base class includes the field 'ConstructIDLabel', but its type (System.Web.UI.WebControls.Label) is not compatible with the type of control (System.Web.UI.WebControls.TextBox). Source Error:
Line 14: <table>
Line 15: 	<tr>
Line 16: 		<td><asp:TextBox id="ConstructIDLabel" runat="server"></asp:TextBox></td>
Line 17: 		<td><asp:TextBox id="ConstructIDTextBox" runat="server" Text='<%# DataBinder.Eval(DataView1, "[0].ConstructID") %>'></asp:TextBox></td>
Line 18: 	</tr>
Proc-Blaster Code Generator

Proc-Blaster Code Generator

The key feature of Proc-Blaster is Template based code generation that allow users to configure custom code patterns automated with the scripting language of your choice, VBScript or JScript.

Marketing info looks good.  Lots of SQL support too.

Posted: Feb 25 2003, 09:55 AM by mmscili | with no comments
Filed under:
EntityBroker from Thona Consulting

EntityBroker

The EntityBroker is a framework for automatically mapping your business objects into database tables. Reading and writing the data contained in the objects is done automatically - as a developer, you just add some lines of attributes to the code of your business object, and you get transparent persistence. The Framework is not only handling simple object persistence, but also handling relations, data binding and complex queries.
If you are more interested in this technology, have a look at our brief product description.

UnitTesting internals... again. rubot: smack mmscili

I am building an app to help me journal my time.  It is similar to a blog (eventually may feed a blog).  After creating JournalEntry and JournalEntryCollecition.  I wanted to persist the collection. 

My initial testing thoughts were:

  1. Serialization is simplest way.
  2. How to test serialize works?
    1. Make sure file isn't there.
    2. Add Entry (should serialize automatically)
    3. Test for file existence.

This lead to:

    1. How do I know file name? Don't know
    2. Should I send it in? or should object publish it?
    3. Let's base it on a guid (.xml).
    4. Added guid to JournalEntry.
    5. Duh. We are serializing the collection into a file, not individual items to each file.
    6. Add guid to Collection?  Wait, let's think again.
    7. Eureka.  Forget all this complicated crap.

Final test:

    1. Create Collection, add item, kill collection.  Create new collection, hydrate, test item.

There was no need to test internals.  For now, I assume the collection always has all the entries.

Only issue: I am actually testing the save and load at the same time. Hmm.

Update XML Schema from DataBase

 Update XML Schema from DataBase

Author: Tim Heap 
Need to update a schema file from a sql server 2000 db ? Don't want the hassle of using the XML objects and appending elements or atttributes ? Use my cunning program, with a few changes and re-generate your schema file every time your database changes (you can fire it using a trigger, or call it from a vb program when you click on cmd_submit...


Visit my guru profile

Words to remember.

From Tony Hoare's Turing Award lecture

"I have regarded it as the highest goal of programming language design to enable good ideas to be elegantly expressed."

"There are two ways to design systems: make them simple enough to be obviously right, or make them complex enough not to be obviously wrong."

When? 1980.

Design By Contract in C#, and more.

 

eXtensible C# (XC#) is a complement to C# and Visual Studio. With XC#, you can specify ,analyze ,verify and protect your C# source code.

Specify your code with declarative assertions

Code Quality metrics

Is there a tool like this for .NET?

JDepend traverses Java class and source file directories and generates design quality metrics for each Java package. JDepend allows you to automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to effectively manage and control package dependencies.

A few reasons to use (more on website):

Foster Parallel, Extreme Programming

Packages that are stable should be the centerpieces of a loosely coupled application so the speed of the development team is not adversely affected by the propagation of software changes. Stable packages form design-by-contract facades to other subsystems, allowing teams to develop in parallel at an extreme pace. Moreover, by measuring the software design quality, the overall impact of proposed software changes can be accurately estimated. JDepend allows teams to identify and use desirable dependencies in the system and avoid those dependencies that cause changes to ripple throughout the system.

Isolate Third-Party Package Dependencies

 

International Word List

This appendix contains translations of the English word list that appears on the following pages. The intent of this list is to provide, for each of the following languages, a comprehensive set of words and phrases that either appear in the Microsoft Windows user interface or are used in describing key concepts of the operating system to users.

More Posts