WebVize's WebLog

An independent C# Developer in the Netherlands

February 2004 - Posts

Got the ASP.NET DataObject compilation running

Hmm.. Step by step I am coming to a definitive solution for my dynamic framework.
Now I can define the objects with fields, fieldtypes and editortype.  These object definition is stored serialized in the database. These definied objects are then parsed through a CodeSmith script. The final sourcecode is then parsed through the CodeDom.Compiler. The references the final dll should have are defined along with the script for CodeSmith in a webform with a winform control in front.

Now I can define, generate and compile the objects with references to the framework. DataAccess is done by deklarit components so the data of the objects will be stored in xml serialized format (this so that indexing services can stilll do it's job).

Or should I use a runtime O/R mapper in between? This is something I will persue at a later stage. Now I am gonna concentrate on reusing the generated components in socalled Modules. Just a CodeSmith script with HTML presentation and calling the loading of the objects and restoring it's data to become presentable in the next stage. The Page template, nothing more than a collection of modules and perhaps 1 or 2 dataobjects.

Hmm things I still need to think about:
Runtime O/R Mapping to generate the database to store data.
Personalisation of the content, modules and pages.
A poll and last but not least a survey module. This last one can still be tricky as I want to lay out the questions based on the given answers. offcourse analysis of the given answers is needed and possibly needed to be reused in the profile of the customer. I am thinking of a desktop app to do the definitition of this complex questionaires, this so we can draw lines from an answer to the next question ..

It all seemed to be a simple site.. 

Moving from m3rlin to Codesmith

I now have the winform control up and running. Now after looking at CodeSmith I decided to give it a go due to the very nice IDE CodeSmith comes with. Now I have codesmith running from within ASP.NET referencing the asp.net application it can generate my dataobjects. Now I need to create the build process for the component. I decided that I will put all datacomponents in 1 single assembly. This is much easier referencing them from the scripttemplates for the modules. I have asked Eric about the license(s) required to do this. All the company needs is a new pro license for CodeSmith. At $79.95 I guess this is a bargain instead of trying to figure this out all by myself.

Anyone having a webform generator I can use that a content manager can build up? On this point I need to do some thinking because a website is not only presenting but also some input elements are required.

Any comments are very welcome!

 

Darm.. damnn leasecar

As I had a leasecar with my previous employer I had to take it with me when I quited that job. I think this is the same in all the rest of the world. Damn.. what slow companies you have out there. Right from December I try to get the cost of the car down.. by lenthening the leaseterm and lowering the Km's.. 3 Months and all I have right now is a request for a bankgarantee ( not telling how high?).

As a newbron minicompany I like to have speed, feel pressure of the client breathing in the back of your neck when it can be finished. But it all is the other way around outside my humble development company. (just me :-)).

 

R&D Phase. Syntax hightlighted editing in IE

As I want to make a complete new framework for the Kids Community and I got the complete free hand in it. (Although it needs to be finished the end of June, and this is not my only project).

I didn't like the textbox for script and object generation templates I started to look at how SharpDeveloper had the syntax highlighting in their editor. I noticed that this is a independent dll so I opened up the source code for it and added a new user control :-)

 

This usercontrol holds the SharpDeveloper control with some settings. It seemed not possible to set them through some java script. Now I indeed can incorporate the control inside IE. Editing and saving the text. The text is put inside a hidden field on form submit and loaded on form load. I needed to make some adjustments in the property Text to keep the line breaks and other stuff so that the java script doesn't break.

 

It really looks cool but I must keep in mind that I am building an internet application and that only a few very specific functionalities should be build in this manner. Darn.. I like this too much. Why couldn't we program a web app as we would do a win form.

 

Please any hints and tips are welcome!

Towed Paragliding
Today I did some towing with the paraglider. Went up to about 600 meters. The wind was ok but it picked up strength along the afternoon. At around 16:00 all who got towed up had to stay in front of the landingspot as you still flew with 24 km forward but from the ground perspective you flew 2 km backward.

At least some fun in the Dutch east. Although I like soaring and mountain flying a lot more I guess this is oke for keeping the feeling..
New laptop

Hmm .. After quiting my job on 31-12-2003 I had a Dell m50 laptop. And I must say 1600X1400 on a 15' display is fabulous. I had the option to take it over for a reasonable price. Last wednesday I heard the price.. Ahum 1.500 euro's for a seconf hand laptop is way too much. Certainly when you consider I started my own business on 1-1-2004.
As I need a laptop to may an income I needed to buy a new one. First on my mind was the Dell company.  Top Product at a top price (if you have the time) the delivery would be 2 weeks after receiving payment and due to a shortage on tft desplays a couple of days would be added.

Guess I can close business if I wait that long. Eventually went to a store nearby and bought mysel an Acer Travelmate 660. Nice machine nice keyboard. At the same price I now have a real fancy machine. 1.7  centrino chip and a dvd+/-RW writer onboard.

Now I need to deduct it from the taxes. ( hopefully in 1 year as I live from this notebook !?!)

Build a new kids community

I have the challenge of building a new framework for a large kids community here in the Netherlands.
Right now I am playing with the idea that a Content Manager should have as much freedom as needed to build up the site.

As I am in the R&D phase of this project I can try all sorts of paths.
What I am thinking of right now is the following:
A website consists of pages -> a page consists of a general design and Modules -> an individual module has design and an dataobject-> objects contain properties with data.
I like to define as much as possible without having fixed rules in codeblocks.

Starting from the back I can define a dataobject.
This object then needs to be generated to a binary object so that it can work in a template engine. As data from a dataobject is stored in a serialized manner we thus create serializable objects for this
With reflecting and custom attributes we can present a Content Management pane.

As a module consists of design and a dataobject we need some aspx style template engine to get it running.
Running this all to the hights element the page we see a nice hierarchy of objects running.

This seems to be possible with the right kind of caching strategy so I am in the process of building this. Although stuck on the codegeneration right now. I use m3rlin as my basis for aspx style code templating. (thanks goes to Joseph Cooney for this fabulous piece of software)

Please respond if  you have idea's, comments, tips, ect..



 

Who is WebVize?

As this is my first entry in the blog. I'll introduce myself.

My name is Michael Hensen, 33 years of age. Having already 9 years of experience in developement they call me a Senior Software Engingeer. I can back this up with an MCSD certificate :-) 
I live in the Netherlands (Almere)and hold my own company WebVize, being the owner and the only employee.

Hobby:
For a hobby I like to go out and do some paragliding in France and hopefully in May I will be in Marocco.

Activities:
I have build many internet applications in C# so guess ASP.NET is core technology I use.

Current activity:
Right now I am building a new Kids Community framework in the Netherlands.
I will rant about this in my blogs and hopefully I send and recieve some suggestions in handling this
Besides this I start a new Customer Service web application for one of my clients..

As English is not my native there will be quite some syntax errors and typos ! Just as warning :-)
Are there more guess like me having a company and also is the only employee?

More Posts