First off, I love EXT. I was using FlashMX (just before flex came around) and used to think the V2 Components in Flash were hot. EXT is way hoter (graphically) and has a more flexible API.
My question today is not EXT Specifc, its an application design question.
My application is kinda like the form builder app. It has a canvas where users can design a layout by dragging and dropping 'elements' from their pallete and creating new elements. There could be over 200-300 elements. Each element needs to store its x/yposition and also all of its properties which vary from object to object. RDF Training:: Thank you for your question. I have found you several schools that teach RDF in their to object-oriented, client/server, and Web/Internet technologies. http://answers.google.com/answers/threadview/id/63528.htmlHOME | Supplying .NET plug in - Where to start?:: I also do know a little about OOP so should be a good project. Thanks for all of the information you have supplied. You have certainly answered my question http://answers.google.com/answers/threadview/id/196819.htmlHOME |
My options are to use the factory pattern to generate an instance for each element when the editor loads. This could mean 200-300 objects instantiated. Most of the methods would be shared and on the objects prototype, and I beleive that would keep memory usage down rigth?
My alternative is to use the flyweight pattern and have one master class storing an array of objects (not actual class objects, but data describing the elements properties). FOR EIFFEL-GA - What is the Eiffel Programming :: Eiffel is a stronly-typed, statically-typed procedural object-oriented Eiffel pioneered the concept of "Design by Contract" - the idea that you can http://answers.google.com/answers/threadview/id/760352.htmlHOME |
Personally I am leaning towards having a class instance for each object as opposed to the flyweight pattern, but I am wondering if this is going to be to memory intensive or if it is overkill.
I am new to design patterns and OOP, if I hadn't already made that obvious :)
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|