2010/10/15 K. <kotot...@gmail.com> > Hello, > > I'm a developping a Swing GUI in Clojure and follow the MVC patterns. > The view implements a protocol for displaying data,
"Stop!". When I read this, my mind cries "Alert! potential java-in-clojure code here !". clojure promotes a generic approach to data management. Writing a protocol for each piece of data to exchange between parts of the app should warn you something is wrong ... (or will quickly become "as" painful as writing idiomatic java) > and another one to > register Swing listeners. Callbacks registered with the second > protocol only access the UI through the view protocol. > > Each of this protocol has ~50 functions (and it's growing every > day...). > > Even if I do some delegation when implementing these protocols, the > deftype implementation has already ~700 lines. > > Is there a way to split the definition in several files or namespaces, > or more generally, what would be the best way to organize this > architecture? > Is it too late to challenge the architecture ? > > I don't think subdivising the view in several views makes sense, since > from the point of view of the listeners it's really only one entity > (but maybe I'm wrong on this). > To help you, we would have to know more about your problem ... > > Thanks in advance for your suggestions. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en