Re: Why 'getters' can be bad...

aweston_at_connectfree.co.uk
Date: 01/11/05


Date: 11 Jan 2005 00:14:17 -0800


> I don't understand why he is implementing this in a JLabel control
> either... Didn't he just argue that performing a get one field at a
> time is a bad idea..

MVC says the 'View' ie, the JLabel, should query the 'Model' ie the
server, to get data.

'Getting' one field at a time is a bad idea, agreed, however, the
example doesn't use a 'Get' method to retrieve the data. Instead it
splits the functionality of 'get' into two, the request and response.
By doing this, allows another communications object to efficiently
bundle the request, in with other concurrent requests, before sending
to the server, and so avoid the one field at a time problem.

The other thing I noticed is that UI updates are being
> performed on from the background thread.

You are right, I can't argue with this.

I know you don't like what you see. The architecture is quite different
from the traditional layered client server architecture
(MVC/BUSINESS/PERSISTENT/DATABASE). But, I can only say these methods
are an incredibly quick, and scaleable way of doing things.

If you think you know better, show me a jtable with 250,000 records,
that works as quick as the one in the demo here:
http://imessage400.homeip.net/webstart.html (click on 'incomplete
list').

Understanding the principals of what is shown on the website, is the
first steps to understanding how to create tables such as this one.



Relevant Pages

  • Re: Giving an application a window icon in a sensible way
    ... developing some kind of web app and rather less so in the case of a ... Java Webstart would be a viable way of distributing that application. ... In fact, the choice is to argue here, or to use ... of a server, then some kind of equally unfamiliar client ... ...
    (comp.lang.java.programmer)
  • Re: Giving an application a window icon in a sensible way
    ... it should be fairly obvious that a google search with the query "ant" ... A three letter query with a different, ... server etc ... In fact, the choice is to argue here, or to use ...
    (comp.lang.java.programmer)
  • Re: Select enumeration of intergers
    ... Your request is about manipulation of a ... named "value" of type int, whose elements are every possible int ... Although /maybe/ you could argue the ...
    (comp.databases.theory)
  • Re: No Writing Pad
    ... that covers the entire spectrum of the MS newsgroup server. ... >> binary code, it would NOT handle binary code. ... >> their end with no disrespect, HOW can you argue? ... Irresponsible posting of binaries is nothing more than ...
    (microsoft.public.windowsxp.general)
  • Re: No Writing Pad
    ... that covers the entire spectrum of the MS newsgroup server. ... > binary code, it would NOT handle binary code. ... > their end with no disrespect, HOW can you argue? ... Irresponsible posting of binaries is nothing more than ...
    (microsoft.public.windowsxp.general)