Re: Why 'getters' can be bad...
aweston_at_connectfree.co.uk
Date: 01/11/05
- Next message: Anthony Williams: "Re: how many bugs do you find and correct during TDD?"
- Previous message: Jimmy Cerra: "Re: OT: Re: Avoiding the second historic mistake"
- In reply to: kurbylogic_at_hotmail.com: "Re: Why 'getters' can be bad..."
- Next in thread: H. S. Lahman: "Re: Why 'getters' can be bad..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Anthony Williams: "Re: how many bugs do you find and correct during TDD?"
- Previous message: Jimmy Cerra: "Re: OT: Re: Avoiding the second historic mistake"
- In reply to: kurbylogic_at_hotmail.com: "Re: Why 'getters' can be bad..."
- Next in thread: H. S. Lahman: "Re: Why 'getters' can be bad..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|