Do everything in Java…

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 5 12:44:17 PST 2014


On 12/5/2014 5:41 AM, H. S. Teoh via Digitalmars-d wrote:
> As for GUI code, I've always been of the opinion that it should be coded
> in such a way as to be fully scriptable. GUI's that can only operate
> when given real user input has failed from the start IMO, because not
> being scriptable also means it's non-automatable (crippled, in my book),
> but more importantly, it's not auto-testable; you have to hire humans to
> sit all day repeating the same sequence of mouse clicks just to make
> sure the latest dev build is still working properly. That's grossly
> inefficient and a waste of money spent hiring the employee.

A complementary approach is to have the UI code call "semantic" routines that 
are in non-UI code, and those semantic routines do all the semantic work. That 
minimizes the UI code, and hence the testing problem.

Most GUI apps I've seen mixed up all that code together.


More information about the Digitalmars-d mailing list