473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

New to VB.Net; Struggling with Architecture...

Hi,

I'm relaively new to programming languages in general, and brand
new to VB.NET. I use/used VBA in MS Access previously to do what
I needed. I want to learn VB.NET to stretch my boundaries a bit.

Anyway, I'm developing an application to track the progress of
tax audits. Originally, I thought I would write objects something
like this:

Public MustInherit Class Document...
<<<abstract class for all document types>>>
Public Class IDR
inherits Document
<<<an IDR document>>>

etc.

All docs inherit from a single base class. Docs expose properties
like Number, Description, etc. Methods are Add, Update, Delete.
There would be a non-default constructor exposed to instantiate a
document that already exists in the datasource, something like...

Public Sub New(Byval value as Integer)

where value is the key used in a search of the table for the doc.

These were my original thoughts. Now that I know alot more about
strongly typed datasets, I wonder if it's even worth the effort to
manually create these objects (especially give the ability to bind
forms to data adapters) Or, as a compromise, should the
object expose a dataset/adapter itself as a property? At that
point, the ojbect is really just an advanced controller for the
exposed dataset I think.

I think I'm mixing concepts here, but I have not read enough to
understand where I'm screwing up. Does anyone understand my delimma?

Thanks,
Johnny

Jul 21 '05 #1
3 1267
Johnny,

See inline
I'm relaively new to programming languages in general, and brand
new to VB.NET. I use/used VBA in MS Access previously to do what
I needed. I want to learn VB.NET to stretch my boundaries a bit.
Keep in mint that using VBNet is different from VBA and don't try to make
them equal.
The benefit is that you know some general behaviour from VB as the way you
do an "If" and the operators.

Anyway, I'm developing an application to track the progress of
tax audits. Originally, I thought I would write objects something
like this:

Public MustInherit Class Document...
<<<abstract class for all document types>>>
Public Class IDR
inherits Document
<<<an IDR document>>>

The documents are the hardest classes to do, so I would certainly not begin
with those.
These were my original thoughts. Now that I know alot more about
strongly typed datasets, I wonder if it's even worth the effort to
manually create these objects (especially give the ability to bind
forms to data adapters) Or, as a compromise, should the
object expose a dataset/adapter itself as a property? At that
point, the ojbect is really just an advanced controller for the
exposed dataset I think.

I think I'm mixing concepts here, but I have not read enough to
understand where I'm screwing up. Does anyone understand my delimma?


Just start with the way it is documented. Problem is that it is one time
with a strongly typed dataset using the designer and than in an other
situation with direct the objects instanced from system.data.

Keep in mind that the use of classes and the good documentation of that is
as well related from the organisation where you are making programs in. When
you are alone it needs a complete different approach than when you are
developing with more than 3 person on one application.

Just my thought,

Cor
Jul 21 '05 #2
I cant answer your specific question, but in terms of architecture in general,
I really found using reference applications very helpful.

In particular is the CommunityForums source code from telligent systems.
Its a really solid application that actually works really well, is well programmed
and is pretty - something that most other reference applications are missing.

Also the Windows Forms reference application from Infragistics to show off
their controls was really good, especially given the ebook that you can download
discussing the architecture.

Then you've got the reference applications at www.asp.net. - Bear in mind
that the logic layers from asp.net applications are often very similar to
those of Windows Forms applications. The same is true of the data access
layer in most cases.

The other general piece of advice I would give is to not try and make the
perfect design. I remember spending ages trying to find where I could use
inheritance and in all actuallity there are relatively few places where it
should be used. There are often better ways of approaching a problem than
inheritance anyway.

I really would recommend looking at the Community Forums application though.
If you leave the UI project to one side you really should be able to get
some ideas that you like.

The reason I say "that you like" is because really thats what it comes down
to. I looked at just about every reference application in the hope that I
would find "The" architecture - the fact of the matter is, there is no one
application that comes close to getting it all perfect - but then again thats
just my opinion. Just don't make my mistake and think that you can't mix
and match approaches from different applications and samples.

Thanks

Simo

Jul 21 '05 #3
SimonH,

Thank you very much for the insights. It's nice to know that someone
else out there has
experienced the same thing I have. I just have one more question for
you/all: what do you
think about the idea of exposing a dataset and/or adapter as a
property? Have you ever
done this? Is it stable? Do you use databound forms and controls?

Thanks,
Johnny

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Philip Germanos | last post by:
Hello. I have a project which consists of developing an application for pocket pc's. Briefly the client application which is a medical application for pharmacists will have to access a database...
6
by: Peter Afonin | last post by:
Hello: I'm running Windows server 2003. I've never had any problems with debugging, but now I cannot debug ANY of my projects. I'm getting this error: "Error while trying to run project:...
4
by: Satish | last post by:
HI I want to know the ASP.NET Architechture. Can anyone help me in getting that. Regards Satish
3
by: Johnny Meredith | last post by:
Hi, I'm relaively new to programming languages in general, and brand new to VB.NET. I use/used VBA in MS Access previously to do what I needed. I want to learn VB.NET to stretch my boundaries a...
13
by: dm1608 | last post by:
I know all the hype right now from Microsoft is how much easier, faster, and less code ASP.NET 2.0 provides over previous versions. I'm puzzled by this as I could turn out an classic ASP webpage...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
17
by: Big Charles | last post by:
Hello, Recently, a friend of mine has told me that he is a .NET System Architect. What is a .NET System Architect? What are their functions? What is the difference between an Architect and a...
0
by: shamirza | last post by:
When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.