problem about modularity-Collection of common programming errors


  • Shekhar
    java configuration-management modularity
    hello i am working on a product suite which has 4 products. Right now, all the configuration data is either in the xml or properties files.This approach is not maintainable as we have to have to manage different configuration file for different environment(production,development etc).So, what is the best way to handle configuration data?Thanks for the replies but any idea how can we modularize this into a separate module and all the products use this module. We dont want to use the property file

  • Matt
    java spring maven osgi modularity
    I mainly develop a big Web project with Java, Maven, and Spring. However, there are different flavors of the Web project that are created for specific customer needs. For instance, if one customer wants a Twitter page, but another does not, I need to be able to build a flavor of that Web project with or without that Twitter page.I have been looking into Maven overlays and OSGi as two options. Maven overlays tend to take a long time to build when copying resources from the base overlay. I was

  • Tom van der Woerdt
    c++ objective-c c modularity
    I’m working on a small hobby project of mine where I have a big structure that takes care of all core tasks. This core won’t do much by itself, it needs a dozen subsystems that actually do the hard work. I’ve currently written only one subsystem so it’s still easy to change things.I have a lot of code locations where the core interfaces with the subsystems, and I don’t want to have to change the core every time I add a new subsystem. My idea was to make it modular.A long time I saw something sim

  • raoulsson
    java design osgi complexity-theory modularity
    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 eve

  • chacham15
    c module modularity static-linking
    I have an interface with which I want to be able to statically link modules. For example, I want to be able to call all functions (albeit in seperate files) called FOO or that match a certain prototype, ultimately make a call into a function in the file without a header in the other files. Dont say that it is impossible since I found a hack that can do it, but I want a non hacked method. (The hack is to use nm to get functions and their prototypes then I can dynamically call the function). Also,

  • Oszkar
    silverlight mef modularity
    I’m working on a modular Silverlight application and in one of the modules I’d like to display an image on a view. I’ve added the image file under the module project in the /Resources/Images directory. And than I’ve changed the image file’s Build Action property to Content. I think it’s nicer not to embed the image into the dll file. The xap file after build contains the image.In the View xaml I’ve inserted the image <Image Source=”/Resources/Images/Yoda.jpg” /> and design time it displays

  • Chris McCall
    c# javascript modularity
    As the title states, I’m looking for a way to organize code with various customer “settings” that control program logic and sometimes display logic without introducing a nest of if/else branches in both the client (javascript) and the server (C#).What mechanisms do I have to choose from for making a series of modules used for validation, field visibility, processing rules and such that can be loaded dynamically based on, say, a username or other bit of customer data? I am aware of IOC, I need so

  • Balint Pato
    design frameworks enterprise modularity
    When designing a new J2EE based enterprise framework, do I have to prepare for the situation where separate business modules have to use different databases and have to run on different application server instances? From another point of view: has anyone ever experienced a real life requirement for different databases & servers per module? If yes, what was the size of that enterprise? Because (as far as I can see) this makes things a lot more complicated, and with the previous version of thi

  • Noich
    prism mef modularity
    My question may sound a bit stupid, but I can’t work it out and still haven’t found an online solution: I have a DataAccess module and an EmployeesModule which needs it. The DataAccess module is loaded when available and the EmployeesModule is loaded on demand. How can I use methods provided by the DataAccess module in my EmployeesModule? I’m currently trying to use ServiceLocator but get the following exception: Activation error occured while trying to get instance of type IDataAccess, key “”

  • Arjan Tijms
    java-ee ejb osgi modularity
    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

  • Jimmy
    c# wpf modularity
    Our application is modulraized (Group of modules doing specific things). The modules have event handlers. These events could be fired from other modules or the application menu. Situation:Module A(which have UI) recieves an event “deleteitem”. The event arguments should contain the item name to be deleted. But in this case it is null. Somewhere, somebody messed with something.Question(s):Should the Module throw? Rememeber, the module would be throwing inside an event handler and could crash the

  • Ghost9
    actionscript-3 function modularity
    you know any reason why a function won’t accept any number higher than 4?This is all I’m doing. Works for 0-4, but once I hit 5 or higher, I get “A term is undefined and has no properties.” But if I just put the number 5 in there, it all works just fine, so it’s not an issue with the xml.. for some reason the function just won’t accept anything higher than 4. weirding me out….. I can’t see an explanation for it.loadEpSynopsis(5);function loadCharSynopsis(charNumber:Number):void { synopsisBox.t

  • orb
    javascript oop interpreter modularity prototypal-inheritance
    I am trying to write a javaScript application that is of sufficient size that modularity is probably a good idea. I am using the famous inherit function to enable objects to inherit from constructors that have parameters. The problem is I get an error that the parent being passed into the inherit function is undefined. This is because, well, the parent constructor hasn’t been defined when inherit is called.I have come up with a few ugly solutions to this problem:Declare all child constructors af

Web site is in building