473,788 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need help on refactoring/design dilenma

GS
I am still a novice in vb .net 2. actually in vb.net period. please bear
with me.

Problem:
I often found myself refereeing to common utility like setStatus and logs on
the form, and the application title in some messages.
Question. how should I best avoid that ?
my kludge is using fully qualified name My.Forms.myform name.whatever

also, I found myself with some rather large sub(procedure) dealing with
specific spreadsheet. When I tried breaking it down I found myself faced
with either
- passing row and column numbers, and the performance hit of creating /
releasing extra com objects to deal with excel objects or
-used non cls compliant parameter passing
Your input will be much appreciated
Background Info :

I am dealing with an application that has a main form with a few tab pages.
I am trying to partition the code so I can have more manageable smaller
modules or classes.

I expect there will be in excess of 10,000 lines of the code in the version
1. in version 2 probably 20,000..

for the full blown version, I expect around 40,000. the application is
basically a tracking, analysis, and reporting system that also interfaces
with a number of external web No they are not soap based. some are heavily
dependent on jscript for formatting html. worse, the application also have
to load saved html pages, historical spreadsheets for extraction

The application is to extract information from a number of external
website, store result in database and format spreadsheets, charts for
reporting.

Ideally I would like classes or modules dealing with different object

..


Jun 25 '07 #1
1 1028
GS,

If I understand you well, than is my advice, make classes and instance
objects from it for your data.

Than you have only to pass that object through all the methods.

If you want follow up, than tell that, I am sure I am not the only one who
can help you with this. (As most things).

Cor
"GS" <gs************ **********@msne ws.Nomail.comsc hreef in bericht
news:uB******** ******@TK2MSFTN GP03.phx.gbl...
I am still a novice in vb .net 2. actually in vb.net period. please bear
with me.

Problem:
I often found myself refereeing to common utility like setStatus and logs
on
the form, and the application title in some messages.
Question. how should I best avoid that ?
my kludge is using fully qualified name My.Forms.myform name.whatever

also, I found myself with some rather large sub(procedure) dealing with
specific spreadsheet. When I tried breaking it down I found myself faced
with either
- passing row and column numbers, and the performance hit of creating /
releasing extra com objects to deal with excel objects or
-used non cls compliant parameter passing
Your input will be much appreciated
Background Info :

I am dealing with an application that has a main form with a few tab
pages.
I am trying to partition the code so I can have more manageable smaller
modules or classes.

I expect there will be in excess of 10,000 lines of the code in the
version
1. in version 2 probably 20,000..

for the full blown version, I expect around 40,000. the application is
basically a tracking, analysis, and reporting system that also interfaces
with a number of external web No they are not soap based. some are
heavily
dependent on jscript for formatting html. worse, the application also
have
to load saved html pages, historical spreadsheets for extraction

The application is to extract information from a number of external
website, store result in database and format spreadsheets, charts for
reporting.

Ideally I would like classes or modules dealing with different object

.


Jun 25 '07 #2

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

Similar topics

1
1978
by: Burkhard Perkens-Golomb | last post by:
I'm looking for refactoring tools for C#. Any experiences and tips? TIA, Burkhard -- Burkhard Perkens-Golomb mailto: burkhard.perkens-golomb@sdm.de sd&m AG http://www.sdm.de
4
1607
by: | last post by:
Hi, Refactoring a winform causes problems if moving this form to a subdirectory in the same project. What is the workaround for this and will this be fixed in future? Thanks /BOB
55
3949
by: Alex | last post by:
Hello people, The following is not a troll but a serious request. I found myself in a position where I have to present a Pro/Con list to management and architects in our company with regard to developing new products (specifically - desktop products) in C#/.NET instead of the usual C++/COM that we do. Since I am not an experienced .NET developer by any definition, I don't have a good grip on the "Pro" part. The argument that I hear...
11
3277
by: Master of C++ | last post by:
Hi, I am writing a simulation package in C++, and so far I've written about 8000 lines of code and have about 30 classes. I haven't used C++ exceptions so far (for various reasons). The only two "resources" I use are memory and file I/O and whenever there is a memory allocation failure or file I/O failure I just simply call a custom assert-type function to check, print a error message and abort. This seems to be OK for now (for the...
6
3358
by: Dean Ware | last post by:
Hi, I am part way through developing a C++ application. I am developing it on my own and using VC++ 6.0. I am now at the stage where I wish to start tidying up my code. I have lots of superfluous code that is hard to be sure about removing. For example, I have classes that are ONLY used in methods that are never
8
2016
by: Frank Rizzo | last post by:
I keep hearing this term thrown around. What does it mean in the context of code? Can someone provide a definition and example using concrete code? Thanks.
4
1405
by: loulou384 | last post by:
Refactoring by C. Keith Ray Software development on your project has slowed to a crawl. Instead of adding new features, you and your fellow programmers want to rewrite the existing code to make it easy to work with again, which of course frightens product marketing and your boss. How do we get into these messes? What can we do about it? Many books and courses teach principles, rules, and guidelines of good
15
4414
by: Simon Cooke | last post by:
Does anyone know of any tools for refactoring header files? We're using a third party codebase at work, and pretty much every file includes a 50Mb precompiled header file. I'm looking for a tool that will let us figure out which header files are actually needed by each .cpp, and allow us to break this up so that we're not including the world in each one. Ideally, the same tool would also recognize where #includes can be replaced with...
4
1635
by: shuisheng | last post by:
Dear All, I have a code developed by former employees. I extract some part of it as below: // definition of class CWNPrimitiveFace, it represent a face class CWNPrimitiveFace : public CWN3DObjBase { friend ofstream& operator<<( ofstream& f, CWNPrimitiveFace& obj ); friend ifstream& operator>>( ifstream& f, CWNPrimitiveFace& obj );
3
4643
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration process before jumping into it". One site even recommends that this training process should take at least 2-3 weeks. I'm not sure how you can train for such a process...but maybe I'll find something while I'm researching. I was wondering if anyone...
0
10364
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
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
10110
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
9967
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
8993
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
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.