Aaron B. wrote:
I should have more appropriately said that languages
like Java are _better_ suited for frameworks because
of their OO-ness and "object discovery" capabilities
(thinking of things like annotations, instanceof,etc).

Well, if you're framework consists of UI widgets and you'd like add them to the
palette of a WYSISYG designer, then I get your point about "object discovery".
I understand that a lot of people are interested in that type of framework. I
prefer the HTML template paradigm, where the WYSIWYG designer is a tool like
Dreamweaver.

I think I just need to reformulate that into RPG speak and see
how I could retain state of RPG "objects" (say instances of named
data) across requests...

Barbara Morris shared a technique with me about 7 years ago that has been most
helpful. I have to admit that there's one component in my toolkit that
dynamically renders itself as HTML - a combo list. It's kind-of object
oriented. Here's an RPG code sample:

// return an new instance of combo box named "cars"
cboCars = cboNew("cars");

// dynamically add entries to the instance
cboAddItem("Chevy":"1");
cboAddItem("Ford":"2");
cboAddItem("Toyota":"3");

...

// perhaps later set the current instance to one in memory

cboSetInst(cboCars);


// render it as HTML
cboToHTML();

...

// perhaps when a session ends destroy the instance (free the memory)
cboDestroy();

...

Just an idea.

you can simply turn on/off a switch and take a web app and
turn it into a desktop app and vice versa.

My reaction after reading about it at the Microsoft Web site was "What were
they thinking?"

Nathan.







As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.