Re: Yay for me, found an interpreter bug!

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Tuesday 04 November 2003 10:19 am, I wrote:

> On Monday 03 November 2003 07:12 pm, Aku wrote:
> > How about using links in Linux? I haven't tried it (no linux installed
> > here), but maybe something like this can work:
>
> Aku, you are a genius!

A followup, to which Rob should pay attention:

I am writing a little Personal Info Manager in Euphoria / GTK. 
It uses a notebook with (at present) two pages, page 1 contains a 
daily schedule (a list control), page 2 contains another list control with 
contacts (name, addr, phone...). There will probably be more pages and 
lists later.

The individual include files to manage a list with its associated pop-up 
menus, edit boxes, etc.  each required more than 165 lines of code. 
If there are eventually 5 lists, that means 800-1000 lines of code 
in 5 different files to wade thru when fixing bugs, or adding 
features.

Using Aku's idea, I created a single 'generic' include to manage all the 
lists, 190 lines. So I've already saved a good bit of coding, and when I 
add more lists, I will get them basically for free - there will still be only 
a singe, generic file to edit and test. Each 'instance' of the included code 
maintains its own set of variables (for example, the currently selected row),
each edit window looks different with different text and entry fields, and 
each accesses its own table in the database, even though they all use a 
single, common procedure for each of those tasks. All of this is extremely 
useful.

Please note the operative word: *useful*

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu