modularity

EventAggregator vs CompositeCommand

喜欢而已 提交于 2019-12-03 11:42:32
问题 I worked my way through the Prism guidance and think I got a grasp of most of their communication vehicles. Commanding is very straightforward, so it is clear that the DelegateCommand will be used just to connect the View with its Model. It is somewhat less clear, when it comes to cross Module Communication, specifically when to use EventAggregation over Composite Commands. The practical effect is the same e.g. You publish an event -> all subscribers receive notice and execute code in

OSGI runtime inside traditional Java EE server

夙愿已清 提交于 2019-12-03 10:53:42
I understand it should probably be other way round (OSGI runtime hosting Java EE servers), as it is apparently already possible with glassfish. However, our clients have extensive experience in administering traditional Java EE servers and significant investment (licenses, training etc.) Our architecture would benefit from OSGI modular architecture, but I can not ask our clients to switch from Java EE servers to OSGI runtimes. Is there a way to install OSGI runtime as war or ear inside traditional Java EE servers, even if they will use no container-managed resources (for example thread or

Extending Java Web Applications with plugins

女生的网名这么多〃 提交于 2019-12-03 08:35:35
I have this web application that has grown to an unmanageable mess. I want to split it into a common "framework" part (that still includes web stuff like pages and images) and several modules that add extra functionality and screens. I want this refactoring to also be useful as a plugin system for third-party extensions. All modules need to be separate unit of deployments, ideally a war or jar file. I tried to just make several regular war files, but Tomcat keeps (according to the servlet spec) these war files completely separate from each-other, so that they cannot share their classes, for

Lua and C++: separation of duties

若如初见. 提交于 2019-12-03 06:02:23
Please help to classify ways of organizing C++/Lua game code and to separate their duties. What are the most convenient ways, which one do you use? For example, Lua can be used for initializing C++ objects only or at every game loop iteration. It can be used for game logic only or for graphics, too. Some game engines provide full control to all subsytems from scripts! I really do not like this approach (no separation at all). Is it a good idea to implement all game objects (npc, locations) as Lua tables without C++ objects? Or it is better to mirror them (Lua tables to control C++ objects)? Or

Community detection in Networkx

本小妞迷上赌 提交于 2019-12-03 05:38:23
I'm studying about detection communities in networks. I'm use igraph and Python For the optimal number of communities in terms of the modularity measure: from igraph import * karate = Nexus.get("karate") cl = karate.community_fastgreedy() cl.as_clustering().membership For supply the desired number of communities: from igraph import * karate = Nexus.get("karate") cl = karate.community_fastgreedy() k=2 cl.as_clustering(k).membership However, I like to do this using networkx. I know get optimal number of communities in terms of the modularity measure: import community # --> http://perso.crans.org

Can OSGi help reduce complexity?

烈酒焚心 提交于 2019-12-03 04:49:59
问题 I saw lots of presentations on OSGi and i think it sounds promising for enforcing better modularization. Apparently "hotdeployment" and "running different versions of x in parallel" are mayor selling points too. I wonder whether what OSGi promises to solve is even an issue...? It reminded me of the early days of OO when similar claims were maid: When OO was new, the big argument was reusability. It was widely claimed that when using OO, one would only have to "write once" and could then "use

ANTLR: call a rule from a different grammar

China☆狼群 提交于 2019-12-03 04:18:35
is it possible to invoke a rule from a different grammar? the purpose is to have two languages in the same file, the second language starting by an (begin ...) where ... is in the second language. the grammar should invoke another grammar to parse that second language. for example: grammar A; start_rule : '(' 'begin' B.program ')' //or something like that ; grammar B; program : something* EOF ; something : ... ; Your question could be interpreted in (at least) two ways: separate rules from a large grammar into separate grammars; parse a separate language inside your "main" language (island

What are the best resources if you wanted to create an application with modularization? [closed]

微笑、不失礼 提交于 2019-12-03 03:51:32
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. In my analysis of the newer web platforms/applications, such as Drupal, Wordpress, and Salesforce, many of them create their software based on the concept of modularization: Where developers can create new extensions and applications without needing to change code in the "core" system maintained by the lead developers. In particular, I know Drupal uses a "hook" system, but I don't know much about the engine or design

Approach to handle javascript on bigger projects?

[亡魂溺海] 提交于 2019-12-03 03:19:54
问题 After discovering jQuery a few years ago, I realized how easy it was to really make interactive and user friendly websites without writing books of code. As the projects increased in size, so did also the time required to carry out any debugging or perhaps implementing a change or new feature. From reading various blogs and staying somewhat updated, I've read about libraries similar to Backbone.js and JavascriptMVC which both sound like good alternatives in order to make the code more modular

How to modularize a (large) Java App?

点点圈 提交于 2019-12-03 02:28:58
问题 I have a rather large (several MLOC) application at hand that I'd like to split up into more maintainable separate parts. Currently the product is comprised of about 40 Eclipse projects, many of them having inter-dependencies. This alone makes a continuous build system unfeasible, because it would have to rebuild very much with each checkin. Is there a "best practice" way of how to identify parts that can immediately be separated document inter-dependencies visually untangle the existing code