I've been working with OpenLaszlo off and on for a few months.  Overall
I like it, but I've never been happy with the way my code is organized. 
I'm used to working in Java where I can easily refactor code off into
classes or break long code up into multiple methods.  My IDE helps me
find and focus on just the piece of code that I want to work on.  With
my Laszlo applications, I feel that I'm writing giant blobs of code
although when I stop and look at it, I'm not sure that breaking it up is
reasonable.  

I think some of this has to do with the verbosity of XML and when you
mix XML with JavaScript code things can get pretty ugly, particularly
since IDE support (in my opinion) is a bit week.  I'm also sure that
some of this also has to do with the fact that I haven't really figured
out a good way to work with Laszlo code.  I'm wondering if other people
have felt the same way and have come up with good ways to reorganized
their code?

For example, I've got a 'dialog' which visually consists of a view
containing two tabs.  Each tab contains a list (or two) of items derived
from a dataset.  The list items themselves have several parts (checkbox,
text, editable text, etc.)  There is also some behavior which is
associated with these objects.  Things need to happen when items are
selected, buttons are pushed, etc.  Right now all of this resides in one
LZX file.  I've looked at breaking things up, creating classes for some
of the pieces, but for the most part the things I would group together
are only used once.  What I would end up with is a bunch of files with
basically the same code I have now and I'm not sure it would be any
easier to work with.

Anyway I'm just wondering how other people are structuring their code to
avoid creating overly dense program files.

Thanks!
-- 
  James Howe
  [EMAIL PROTECTED]


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to