Re: Creating a simple visual user interface



Lew wrote:
Arne Vajhøj wrote:
JK wrote:
If you need to generate code, the INPUT to the code-generation
process is the source code. And the source code is what humans
should deal with and keep under version control. Any modification
of the generated code is going to lead to headaches, because it
breaks the relationship between the high-level source and the
generated product.

> The problem with most GUI builders is that the input to the code
> generation process is human activity -- drag-and-drop, point-and-click
> -- that *can't* be placed under version control, or even stored in
> any meaningful way at all. So that's my principled objection to
> GUI generator tools.

I really can't follow that argument.

If you use a GUI builder you do certain drop and drag
and store the resulting files in source control. You
do not store the drop and drags.

If you don't use a GUI builder you type code and
store the resulting files in source control. You do
not store the typing.

Especially with todays IDE's that generate constructors,
getters/setters, interface implementation method stubs
etc. then I can't see a big difference.

The .java source file is the portable artifact, the .form file is not. Store the .java in version control. That way people who do not have an IDE that supports the .form file will still be able to check out and build the project.

I believe that the GUI builder should only use the Java code - not extra
files.

Arne
.



Relevant Pages

  • Re: Creating a simple visual user interface
    ... And the source code is what humans ... should deal with and keep under version control. ... If you use a GUI builder you do certain drop and drag ... and store the resulting files in source control. ...
    (comp.lang.java.programmer)
  • Re: Creating a simple visual user interface
    ... And the source code is what humans ... should deal with and keep under version control. ... If you use a GUI builder you do certain drop and drag ... and store the resulting files in source control. ...
    (comp.lang.java.programmer)
  • Re: Caution SONY Music CDs have trojan Malware
    ... Programmers invariably keep their source code going ... employer; no shoes, no shirt; quantities are limited while supplies last; if ... ventilation; avoid extreme temperatures and store in a cool, ... away from open flames, naked flames and old flames; avoid inhaling fumes; ...
    (alt.computer.security)
  • defining non-specific field names in a table
    ... transaction and the peripherals are different from store to store. ... control where i use dlookup with the criteria that > the previous id ... Dim holdPlace As Integer ... For Each currControl In Me.Controls ...
    (microsoft.public.access.tablesdbdesign)
  • Re: OT: A Shopping Story
    ... "No, got it under control". ... Now, imagine if you will, the mom in the store had been dealing ... I also believe that those parents probably have ... a poor set of limits for themselves - but just my opinion. ...
    (sci.med.transcription)