Source code limit of 30k (OpenInsight 32-bit Specific)
At 03 JUL 2003 06:06:54AM Colin Rule wrote:
Now that I have switched to OI32 I am a little shocked to find that there is still a 30,000 byte restriction on the size of the program source code for each event.
Not even 64k which would be OK.
Are there plans to resolve this?
At 03 JUL 2003 08:55AM Peter Lynch wrote:
I hope not. Any program that long hides a whole lot of reuseable gems.
At 03 JUL 2003 09:25AM Colin Rule wrote:
No, Afraid not.
All sorts of resuable gems are in there already.
Just some very complex code, and a lot of it.
I could put it in a stored procedure I suppose, but as it is all event code I would prefer not to.
Hey… besides the point…. 32 bit is supposed to be ] 64k and NOT < 30k.
At 03 JUL 2003 11:17AM Mike Ruane wrote:
Colin-
What type of workstation are you using?
At 03 JUL 2003 11:18AM Peter Lynch wrote:
Complex code offers the best re-use. Invariably i find that when i break down a large program into smaller modules, i find that i have new and very useful modules available for re-use. Restricting the source code size encourages encapsulation as opposed to "cut-and-paste" mentality (I am not suggesting that you are a cutandpaster).
In fact, there is nothing wrong with a very large program. If you are the sort of person whose natural ability is to dump huge volumes of coherent logic in lightning storms of inspiration, by all means go for it.
A very large program only becomes a problem when it is often changed. The most troublesome systems i have worked on have had at their core a gigantic program written in a brilliant flash of inspiration by one of the early developers. The commonly used Pick manufacturing systems were classic examples. After a few years of ad-hoc maintenance by a succession of experts, they had become un-manageable, no longer modifiable.
If you can afford the staff, i believe that you would benefit from passing the monolith to a demonolither, somebody who would want to break it up and fully test it before releasing it.
At 07 JUL 2003 06:15AM Colin Rule wrote:
Mike
I am using Windows XP workstation from a NT server, with NTS running.
Colin
At 07 JUL 2003 06:21AM Colin Rule wrote:
Peter
I agree wholehartedly in code re-use.
I have many stored procedures being used for all sorts of things around the place, it is just that some programs are monsters, and are totally self-contained beasties. Out of some 150 screens in my application, there are only about 3 or 4 which are like this.
Also, the main reason is that I have all code in the Form Omnievent and called by Quick-event.
This has many enormous benefits such as
- being able to call other subroutines instead of event calls
- you dont have to look about to know what else may be in some hidden event somewhere
- maintenance is simplified
- RDK patches are easy as all you have to select is the form and omni
- and may I dare say, it then is much more like the VB interface
In addition, I beleive the code runs faster too as once the event psuedo code is compiled and loaded into memory, it is there for the remainer of the forms existence, so less disk reads for other events and the like. I could be proven wrong though on this.
Colin
Colin