Madhawa Learns To Blog

.net, c#, sql, OOAD and more mad memory dumps...

Monday, January 30, 2006

Business Rules Engine (BRE)

When resaerching on distributed architecture, I found good white paper on business Rule Engines.

Business Rules Engine (BRE) is one of the most critical components of a Business Process Management Solution. It plays a significant role in the creation of agile business processes, implementation of the business logic involved in a process and enforcement of business rules and regulation. It helps in capturing changes within a process easily, thereby reducing the downtime for implementing the changes to the business logic.

Download the white paper...

Saturday, January 28, 2006

Researching on .net 2.0

Well… I’m kinda busy in these days. Researching on .net 2.0 :)
Boy… I love researching.

My areas are…

Using new features of .net 2.0 for creating robust type safes middle tiers and n-tier applications

Using Base classes and Factories of Ado.net 2.0 for creating robust data access layers

How we can get use of VS Team System diagramming tools, code management and Version management (VSS) features to do better management of code within the team? (this is the hard and extended part I think : ) )

New features of dot.net 2.0, C# 2.0 and Ado.net 2.0 should be covered.

As you can see I got a lot of ground to cover. We are going to start to develop our first .net 2.0 application soon. It will be an n-tier enterprise application which will be ported from an existing vb6 application. I’ll get an acting part of designing the architecture of the application.

Tuesday, January 24, 2006

Enterprise Library for .NET Framework 2.0

Enterprise Library for .NET Framework 2.0 has released.

Download it from here...

Tuesday, January 17, 2006

China map lays claim to Americas

A map due to be unveiled in Beijing and London next week may lend weight to a theory a Chinese admiral discovered America before Christopher Columbus.
The map, which shows North and South America, apparently states that it is a 1763 copy of another map made in 1418.

If true, it could imply Chinese mariners discovered and mapped America decades before Columbus' 1492 arrival. ...

[Buddhima gave this news early in the morning]

Thursday, January 12, 2006

How to insert values to identity column explicitly

How many times happened to you that break the relationships apart to truncate the tables just for reset the identity columns? Nevertheless it has happened to me so many times.
But yesterday I got to know there are smarter ways to do that.

One is setting IDENTITY_INSERT property to ON. It’s so easy and effective.

Syntax is
SET IDENTITY_INSERT [ database. [ owner. ] ] { table } { ON OFF }

Example
SET IDENTITY_INSERT employees ON

Arguments are
Database - Is the name of the database in which the specified table resides.
owner - Is the name of the table owner.
table - Is the name of a table with an identity column.

Keep on mind that at any time, only one table in a session can have IDENTITY_INSERT property set to ON. Otherwise if you try to set for another table SQL server returns an error.

Tuesday, January 10, 2006

Looking back to last year and next…

mmm… another year is gone… that was my 3rd year surviving in software development world and 2nd year in .net. Well… have I achieved my targets last year? Were there any targets?

Most importantly I was doing my 2nd year in a one company. I used to jump from one company to another staying not more than 6 months in a one place. What makes me to stay there? There were lot of reasons but primarily there are good peoples.

Last year lot of things happened to me in carrier wise. Continuously I hit the top in developer tests in the company and got rewarded. I got a designation I planned to achieve in couple of years later. Well now I have to work very hard to fit into that. Last year I learned lot but I couldn’t satisfy whether I got enough.

Finally I brought a car. There were lot of humors went in the office on that lol…
Ok, I got lot of plans this year on the car. Have to install good audio system and may be some modifications… will see…

I achieved to MCAD and this year has to continue that into MCSD as well as look for new .net certifications.

My brother who is a SL naval officer came back from India after 1 year special training at Indian navy. My home got filled with joy since he was at home after one year and we a are very bounded to each other. But that joy doesn’t seem to last long as the war is like to start again. In the first day when he is returning home from Trinco a terrorist attack kills 15 SL naval personals. That convoy was the same that my brother transported but on its second trip.
Couple of days ago brother called me and told another tragedy happened to them. Tigers had attacked one of their Dvora’s that was patrolling in the sea. That also killed 13 naval personals including his 2 fellow officers. You have to have someone in security forces if you want to feel how tension it is.

Thinking about friends it’s a wonderful year. I got couple of good new friends. Ludmal, AJ and Gogula. (hay Lud we got to know last year or before that???) Those three are really good guys anyone should have. Anyway Ludmal is not working with us anymore. That’s sad. Hay we miss your company pal… we miss your songs and guitar but also a great relief to all … just kidding man… I remember we cried when you were singing songs and playing the guitar (he always dreaming like that)
To Dinesh last year was very special. …now he is a father of two children’s. Hay be more responsible man… you are older now… just kidding…. Hay this man is very good in bearing responsibilities.

From the first day in the Logical Systems this guy gave me a very big hand to improve my programming skills since I was a newbie to the field. Still I could remember in the first day he teaches me how to use collections instead of datasets. Sometimes we had little arguments also. But… boy in most cases he was right. (I think he can remember I had used select * in sql queries ha ha…) His sql skills were awesome. If I have achieved sth in these 2 years this man has to be responsible for that. (Good or bad …lol…)

And Dinesh was awarded as MVP which is the most important thing happened to my friends. His great contribution to the software community not only SL finally awarded. Well done man keep it up. We are proud of you.

Thinking about drawbacks of last year, I can remember I paid fees for some exams but didn’t do. That’s wont happened in this year. :) And I got full membership of a gym and half membership of another but didn’t workout in either. Have to go back to gym this year…

So what will or should be my future targets?.... No matter what I’ll doing but have to do it right… good or bad… that’s it…I don’t think I’ll do any bad things right… :)

Friday, January 06, 2006

When should not Design Patterns be used?

mmm... my previous post's title should be "When should not Design Patterns be used?".
My mistake. :)

Thx Mahasen for correcting me.

Wednesday, January 04, 2006

When should Design Patterns be used?

1. When the application being built today will not change, the code accurately captures all requirements, and there are no planned enhancements or features. The application you are building will be the first and last release.

2. Your application’s code requirements are unique. No software engineer has ever built anything like it. The program does not deal with any of these routing issues like object creation and event notification.

3. There is plenty of time to prototype all of your new design ideas. Alternatively, you are so confident of your ideas that they do not require any proof-of-concept testing.

4. Everyone on your team has worked together for twenty or so years. If you ask Bill to try the “thing-a-ma-jig” trick, he knows exactly what to do. The team already processes a common design vocabulary, so you don’t need to learn someone else’s.



Well… I read this in a book called Professional C# Design Patterns Applied. Anyway I can’t agree with all by 100%. What do you think?