143 questions
11
votes
7
answers
1k
views
Modular JavaScript - are there any approaches apart CommonJS and AMD to consider?
I'm currently preparing an evaluation JavaScript modularization approaches for my corp. We are in process of defining "JavaScript Best Practices" for our projects, modularization is one of the central ...
3
votes
2
answers
12k
views
C Mulitple definition/first defined here error
I'm trying to write a bookstore program, and I'm getting an error saying "multiple definition" in my source code file at my function implementation.
Here is my Book.c file:
#include "Book.h"
void ...
10
votes
3
answers
7k
views
angular.js - best practice for defining a utility library
I'm giving my first steps with angular, and I need to define a utility helper library, with a couple of function methods, something like
dataHelper.parse, dataHelper.sanitize, etc
What would be the ...
0
votes
1
answer
328
views
interface between two modules zend Framework
is there a way to create interfaces between 2 modules so that they can interact with one another?
im working on zend framework2.
Many thanks.
2
votes
0
answers
102
views
A JavaScript Concatenator library to achieve data hiding under modularization
JavaScript Concatenator
I'm considering writing a JavaScript library to achieve Data Hiding under Modularization. I hope to get some inputs on whether this will be useful and what are the potential ...
0
votes
1
answer
57
views
A JavaScript concatenator to help data hiding under modularization?
I previously run into the problems of data hiding under modularization in JavaScript. Please see the links below:
Module pattern- How to split the code for one module into different js files?
...
1
vote
2
answers
1k
views
Kendo UI with Javascript Modular Pattern
I'm in the process of creating a big business application using kendo ui. Since application is big. we have started to follow modular patter in javascript code.
When using modular pattern wtih kendo ...
1
vote
1
answer
125
views
Is it a must for an OSGi bundle to have an activator class?
I have an osgi bundle, which includes only a .jsp file. Shall I create an activator class for it? If yes, what should it do?
16
votes
2
answers
3k
views
How to modularize AngularJS applications / plugins
I have a couple of (software-)architecture questions regarding a migration from Grails (REST-API, parts of AngularJS, MongoDB, Tomcat, Spock, several plugins) to Node.js + Angular.js.
I probably have ...
2
votes
1
answer
141
views
Retrievable logging in modular programing in C++ [closed]
My task basically was to build a specific module for an existing system. The module works properly, but now I should place log entries inside the code. Since this is only a module of the final system ...
1
vote
0
answers
128
views
Module Loader loading the same Library multiple times
I'd like to separate my page into two independent "decoupled" areas.
Now let's assume that both need the same dependency with the same version.
Is requireJS or any other library capable of managing ...
0
votes
1
answer
883
views
CodeIgniter Modular Extensions & the i18n library
I have been using the CodeIgniter i18n library by Jérôme Jaglale (http://maestric.com/en/doc/php/codeigniter_i18n), which works great for my project.
But since I need to write separate modules, I ...
2
votes
1
answer
1k
views
Modular Java Web Application
We have a rich web application based in Java & Spring framework which have many functionalities and classes. recently something sparked in my mind that why not we provide modularity to make it ...
1
vote
1
answer
415
views
What should I use for a WCF modular design?
Our application is an enterprise application deployed in a distributed environment.
It's an ASP.NET MVC 2.0 project connected to a WCF project on another server.
What we need is to make our business ...
2
votes
1
answer
103
views
Regarding Module Pattern in JavaScript
i just read a small article on code project for Module Pattern in Java Script. after reading javascript code few area was not very clear the way code has been written. i wrote javascript but i am not ...
0
votes
2
answers
666
views
AngularJS modularization
So I am trying to modularize my angular JS application, as it is getting quite large, and it's already easy to get lost, with multiple controllers in a single file.
Here is my folder structure at the ...
2
votes
1
answer
95
views
Can OSGi easily be used to manage package dependencies?
I understand that OSGi can be used to manage service dependencies, that is sharing POJO instances between bundles. But say I have a library B.jar with compile-time dependencies on classes in my other ...
0
votes
1
answer
99
views
API modularization in Restlet
I have developed a web application based on Restlet API. As I am adding more features over time, I need sometimes to reuse similar group of REST API under different endpoints, which provides slightly ...
0
votes
4
answers
117
views
Error: misuse of undefined type 'struct IntArray'
I want to write this program where I have this in one file named intarray.c:
#include <stdio.h>
#include <stdlib.h>
#include "intarray.h"
struct IntArray
{
int length;
int *array;...
0
votes
2
answers
178
views
Exposing WCF data type to external modules
Im doing a client server application. The server part is implemented with a WCF service. The WCF service exposes data types via service contract. The client is modularized and uses MEF for DI. In the ...
2
votes
3
answers
152
views
refactoring modular structures in D
Here's how I usually develop an application:
I start with having all the code in a single source file.
When it grows enough to be modularised, I break the code into several modules.
When the modules ...
0
votes
2
answers
222
views
Design of a general-purpose handler class with swappable handler code?
I want to write a general-purpose handling class for files. This class is to load a specific handler instance depending on the type of file that's passed to it.
One of the methods inside would work ...
3
votes
4
answers
388
views
Can I store a logical comparison in a string?
I am trying to modularise a lengthy if..else function.
$condition = "$a < $b";
if($condition)
{
$c++;
}
Is there any way of translating the literal string into a logical expression?
0
votes
2
answers
546
views
Modularization & reuse of code written using Ext JS
I need clarity into being able to modularize my JavaScript code that leverages Ext JS. My objective is to create custom classes that extend Ext JS widgets, distribute code among several JavaScript ...
11
votes
3
answers
3k
views
The best approach to modular programming in Delphi [closed]
this is a continuation of the discussion I started here. I would like to find the best way to modularize Delphi source code as I'm not experienced on this field. I will be gratefull for all your ...
11
votes
5
answers
2k
views
How do can I implement Modularization in a Rails App?
Breaking a large rails app into smaller apps?
Modularizing Rails applications
Best practice for structuring a 'large' Rails app
I have a quick question on modularization in a large Ruby on ...
1
vote
3
answers
1k
views
An OSGi use case - am I right or not?
I am just familiar with OSGi technology - never used but heard of it so many times. I've read several articles "for dummies" but I think I still fail to understand its use case completely. Maybe some ...
0
votes
1
answer
375
views
Is MVC a good design pattern for a GAE app?
my GAE app is currently setup with the following filenames
main.py (2 main models and logic for creating and updating the models)
i18n.py (user interface logic how to view objects with i18n)
reports....
2
votes
1
answer
472
views
How to programmatic render JSP files?
Currently, I'm using Velocity instead of JSP, for its flexibility. For some reasons, I need to distribute my web modules in jar archive, rather than war archive`.
I have read the servlet ...
1
vote
4
answers
843
views
Modulation of adding new Strings -> Method calls
If I have a program that does the following:
if(input=='abc'){do x}
if(input=='def'){do y}
In the future, I may want to add another piece of code like so:
if(input=='ghy'){do x}
As you can see, I am ...
0
votes
2
answers
534
views
Embedding PHP include statements within a string that gets echoed
I've been trying to clean up my site by defining my site structure as php string variables and then echoing those variables out. This condenses all of my site structure down to five lines with an ...
1
vote
4
answers
505
views
Javascript modularising large objects
I've got an object defined as a function, and it's got a lot of methods and properties in it, what are some ways to modularise this to make it more manageable? It is possible to put functions inside ...
6
votes
4
answers
617
views
Learning to write organized and modular programs
I'm a computer science student, and I'm just starting to write relatively larger programs for my coursework (between 750 - 1500 lines). Up until now, it's been possible to get by with any reasonable ...
8
votes
7
answers
6k
views
C++ modularization framework (like OSGi) ?
I found one SOF http://www.codeproject.com/KB/library/SOF_.aspx ,
Are there anyother stable frameworks for modularization in C++ ?
26
votes
5
answers
9k
views
How to modularize a JSF/Facelets/Spring application with OSGi?
I'm working with very large JSF/Facelets applications which use Spring for DI/bean management.
My applications have modular structure and I'm currently looking for approaches to standardize the ...
6
votes
8
answers
2k
views
When is abstraction and modularization a bad practice in programming?
just saw this comment in a "what JS lib do you use" poll
"@Xanti - yes, yes, modularization and abstraction in programming is a terrible practice. Functions that call other functions? Wasteful."
...
0
votes
1
answer
136
views
Validating XHTML elements with XML children
G'day guys,
I've tried reading the XML Modularization recommendation which promises to allow custom XHTML extensions but can't make heads nor tails from it. I need an XML document containing a mix of ...
3
votes
2
answers
278
views
How does hiding information help in modularization?
How does information hiding help to decouple the modules that comprise a system?
1
vote
1
answer
3k
views
ASP.net MVC views in class library
I'm developing a framework application, and I want individual implementations to have the possibility to add new functionality simply. For controllers this is easy, just compile it and drop it in the ...
9
votes
5
answers
6k
views
How important is modularization of software projects
Modularization is obviously important in software projects, but I want to know people's opinions on how important and for what reasons it is important. I've obviously got my own ideas since I'm asking ...
7
votes
3
answers
1k
views
OSGi bundle's package structure
I've been thinking some about "good practice" regarding package structure within osgi bundles. Currently, on average, we have like 8-12 classes per bundle. One of my initiative/proposal has been to ...
2
votes
4
answers
813
views
Modularising a C# Compact Framework 2.0 Application
We're currently developing a new piece of hand-held software. I cant discuss the nature of the application, so I'll use an example instead.
We're designing hand-held software for managing a school. ...
3
votes
1
answer
3k
views
How can we share individual rules between .drl files in JBoss Rules?
We are using JBoss Rules (a.k.a. Drools) and have several .drl files that each contain several rules. Is there a way to avoid duplication between files, so that we can define common rules that are ...