[Irc4j-developers] Re: Some basic thoughts...
Status: Planning
Brought to you by:
maartenc
From: <car...@we...> - 2001-12-20 14:00:34
|
On Thu, Dec 20, 2001 at 01:54:33PM +0100, Maarten Coene wrote: > There is a very usefull > pattern which can be used for this problem: the Observer pattern (also > sometimes called: EventManager, EventMechanism, ...). Basically, the Thread > you're talking about will throw an event everytime it gets something from > the server. Every listener (= an object which is interested in this event) > will receive the event and can do something usefull with it (for example: > print the text in a JTextArea, write it to a log file, ...) Yes, that sounds good. I'll take a look at it soon. I thougth about a event-driven listener, too, but I didn't know how to realize it. Maybe this is exactly the solution I wanted. :-) > I think that in a good design the user interface should be seperated from > the core classes (like IrcConnection, IrcChannel, ...). These core channel > shouldn't know anything about the user interface classes. Of course, those 'backend' classes should be seperated from the interface. That's why I skipped my first version of a GUI. It was programmed too bad. ;-) I was thinking about the future (actually, I was dreaming...) and suddenly I recognized, that everyone had to use MY GUI. That doesn't seems right, so I deleted all of it. Ok, something else now: The project pages at sourceforge are looking like they could need a maintainer. I've done some work for another project hosted on SF so I'm familiar with the services hosted on sf like MLs, ftp, http. Maybe I can set up this pages? So my sf ID is "schwarzer_peter". I think, my last mail to Maarten with the ID was killed somewhere in my weird system configuration... :-/ As said before, I'm creating some HTML pages with my code (in HTML & pure Java), some UML diagrams and stuff. When I'm done, I'll give you the URL to go over it. Maybe they can be used as a project homepage. Carsten Ringe -- car...@we... http://australien.home.pages.de/ |