View previous topic :: View next topic |
Author |
Message |
drneau Site Admin
Joined: 13 Feb 2005 Posts: 2385 Location: Woodbury, MN
|
Posted: Wed Nov 08, 2006 5:39 pm Post subject: What's been going on |
|
|
I've been putting a lot of work into redesigning the way consoles are managed in the app.
In v2, consoles worked okay. However, a good Object-Oriented person would look at the way I did and realize a few things:
- Jeff, you've really overloaded the purpose of the "Console" class. It extends JComponent, manages the layout of the components, knows how to paint itself, manages its own attributes and rules, knows how to persist itself and parse XML. That's really dumb.
- Jeff, you've done the same for each of the components in the console.
A good Java guy would also look at it and say:
- Dude, you can't display the same component in two places at once. Obviously, you realize that, which is why you are cloning your consoles a lot...especially over the network...and that leads to potential memory issues...which in turn can lead to performance issues.
- Dude, each and every one of the components could be a lot smart about the way they are painting themselves on the screen. You're recalculating things needlessly each and every time you paint!
I realized all that myself, which is why I've been working on fixing it. The end result will be a smaller memory footprint and a much smarter console when it comes to painting (which will improve any scrolling substantially).
For those who care, I've split the v2 "ConsoleLayout" class into:
- ConsoleDef: The definition of the console. Can be saved and cloned cheaply.
- Console: Knows how to paint what is in the ConsoleDef.
A "ConsoleLayout" used to consist of "ConsoleComponents". Those have now been split apart:
- ConsoleComponentDef: The definition of an individual console component.
- ConsoleComponent: Knows how to paint what is in the ConsoleDef.
In doing this, I've discovered a LOT of places for optimization that should make v3 much more robust and responsive. _________________ --
Dr. Neau (not a real doctor)
http://drneau.com
http://home.comcast.net/~jneau |
|
Back to top |
|
|
Dix "Royal Flush - No Hat"
Joined: 17 Jun 2005 Posts: 246 Location: W.Poland Maine - USA
|
Posted: Wed Nov 08, 2006 7:24 pm Post subject: |
|
|
Well..... I care.... and I like the sound of all that.
I come at this more from a hardware than software standpoint... but I have noticed that TM was rather resource hoggish.
Sounds like v3 will be a lot more efficient & streamlined.... hence faster and easier on the resources..... always a good thing _________________ - Dix |
|
Back to top |
|
|
MaxPower Founding Father
Joined: 13 Feb 2005 Posts: 390 Location: Funky Cold Medina - Ohio
|
Posted: Thu Nov 09, 2006 7:59 am Post subject: Re: What's been going on |
|
|
What Doc Said:
drneau wrote: | For those who care, I've split the v2 "ConsoleLayout" class into:
- ConsoleDef: The definition of the console. Can be saved and cloned cheaply.
- Console: Knows how to paint what is in the ConsoleDef.
A "ConsoleLayout" used to consist of "ConsoleComponents". Those have now been split apart:
- ConsoleComponentDef: The definition of an individual console component.
- ConsoleComponent: Knows how to paint what is in the ConsoleDef.
|
What Max Heard:
MaxPower wrote: | Blah blah, nerd speak. Blah blah, code speak. Words words words, BETTER TM COMING SOON! |
In otherwords, keep supporting the Good Doctor - he's not selling snake-oil!
Max
Sorry, but I've got to ask... Are we there yet? _________________ Oh, Yeah! Check out the all new TheMiddleClassBlog.com for all of us that aren't exactly "High Rollers"!
Last edited by MaxPower on Fri Nov 10, 2006 7:49 am; edited 1 time in total |
|
Back to top |
|
|
ledge "Cowboys"
Joined: 06 Sep 2005 Posts: 31 Location: Canada
|
Posted: Thu Nov 09, 2006 7:04 pm Post subject: |
|
|
Doc:
I care too! I've been using your app for a while now and it has impressed a great many of my friends and colleagues. I'm not a Java guy or a programming dude by any stretch, but I now good work when I see it. Many others are using the TD app and have many issues with it, yours is not the case.
Keep up the good work man! I can't wait for you to release ver 3, because I know that you poured your heart and soul into it.
Ledge |
|
Back to top |
|
|
rumackay "A Set of Mop Squeezers"
Joined: 15 Oct 2005 Posts: 60 Location: Queensland, Australia
|
|
Back to top |
|
|
rastapete Founding Father
Joined: 13 Feb 2005 Posts: 401 Location: 'Ipsa' this, you pissy little bitch!
|
Posted: Fri Nov 10, 2006 7:10 am Post subject: |
|
|
Doc,
Why do Object-Oriented guys call you "Jeff", but Java guys call you "Dude"? |
|
Back to top |
|
|
i8dbear Founding Father
Joined: 22 Feb 2005 Posts: 181 Location: Los Angeles
|
Posted: Mon Nov 13, 2006 5:30 pm Post subject: |
|
|
the "Jeff" guys are just objectifying him.
.n |
|
Back to top |
|
|
|