473,657 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1290
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
1566
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 server for data retreival. Its the first time i am getting in touch with .Net development, so what's the difference between C# and Visual Basic.Net and which one of them should i use? And by the way, which way is better, a two tier architecture...
6
1860
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: Unable to start debugging on the web server. Access is denied." The only thing I've done recently was installing all the latest Microsoft
4
1892
by: Satish | last post by:
HI I want to know the ASP.NET Architechture. Can anyone help me in getting that. Regards Satish
3
254
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 bit. Anyway, I'm developing an application to track the progress of tax audits. Originally, I thought I would write objects something like this:
13
1397
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 in a few hours to query a database, display a grid/table, and not have much to worry about. Doing the same tasks in ASP.NET 2.0 seems almost trivial, but is it really real-world? I have a classic ASP app that I wrote a few years back that took...
2
6948
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 attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
17
3334
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 programmer and a System Analyst? Thanks for your help !
0
3659
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 delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. · When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.