473,394 Members | 1,770 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,394 software developers and data experts.

Forms or Modules

I am in the practice of including all my code for a specific object inside
the form that accesses it. Is this a bad habit?

I've been reading about object oriented program design, and I'm getting the
impression that I would be better off to make my forms only contain code
that validates the data and then passes it off to an object that is
encapsulated with it's own code. I'm considering changing some apps to
relfect this design paradigm, but it will take some doing. Would there be
any speed benefits? Would it make expansion easier?

Jordan
Nov 21 '05 #1
1 828
Jordan,

There will normally not be any speed benefit when you cut your programs up.
In contrary it will cost probably some time. However we are talking than
about nanoseconds.

The benefit from OOP should result in better maintenance and reusability.

When you do everytime the same checks on a form, it is easier to place
those in one place and use that everytime again. Than with a change you have
only to do it on one place.

This you probably already knows, however this simple sample can be as
complex as you want.

However do not use modules, just classes which you instance to objects.

And do not first look at speed, that is mostly not the most important part
with the common computers. Trustability is a much more important for most
users.

Just my thought,

Cor

"Jordan" <no****@bellsouth.net>
I am in the practice of including all my code for a specific object inside
the form that accesses it. Is this a bad habit?

I've been reading about object oriented program design, and I'm getting
the
impression that I would be better off to make my forms only contain code
that validates the data and then passes it off to an object that is
encapsulated with it's own code. I'm considering changing some apps to
relfect this design paradigm, but it will take some doing. Would there be
any speed benefits? Would it make expansion easier?

Jordan

Nov 21 '05 #2

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

Similar topics

11
by: Christian Wilcox | last post by:
Does anyone know of any existing Python implementations of an XForms viewer? Christian
25
by: Steve Jorgensen | last post by:
Yup, Steve's full of tips, but hey, it makes him feel important, right? Ok, here goes. I've been trying to improve encapsulation by putting code in the same object as the stuff it affects, so I...
14
by: stunter2001 | last post by:
This is concerning Access 2000 and some pretty incomprehensible behavior OK, I hope someone can explain this to me. After spending some 30 hours developing forms and modules for an Access...
0
by: NB | last post by:
I recall that something similar happened to me once too, but only the forms that are currently opened gone, not all of them. What I learned was: With Access, you should always do this when...
4
by: Leon | last post by:
Hi! Is it possibile to get names and types of functions, subs and variables included in modules and forms VB code? The reason - I must to create documentation of application. I would to...
4
by: Jelmer | last post by:
Hi I've been trying to create an addin similar to Find & Replace from Rick Fisher that looks thru your tables / queries / forms / modules etc.. for a reference to a string and optionally let's you...
6
by: Charles Kincaid | last post by:
I have a project that is working fine: Compiles fine, and runs fine. 13 forms and 3 modules, besides Assembly. It is a smart device (Pocket PC) app. Often some of my forms will NOT open in the...
6
by: eric.olstad | last post by:
I'm pullin my hair out here. I've created a login page that uses Forms Authentication. Initially, it loads the types of authentication methods from a database and asks the user to select the auth...
4
by: Mark | last post by:
Good morning. I recently made some changes to my Access project, and I introduced some problems that I could not resolve. So I deleted the forms that I had altered and saved the project. Then I...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
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...

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.