Questions tagged [modular]

347 questions
4
votes
3 answers

NodeJS local modules for complex application structures

I'm currently part of team building a Windows 8 application using JavaScript. We are using npm and browserify to manage dependencies and convert our modules to AMD browser friendly format. One issue we are running into is crazy require paths. This…
pbo
  • 537
  • 4
  • 13
4
votes
2 answers

JAXB export to modular xml files with xi:include

I have two XML files tree.xml fruit.xml ... I…
marbletravis
  • 135
  • 1
  • 8
4
votes
4 answers

understanding a modular javascript pattern

I'm trying to write 'better' javascript. Below is one pattern I've found, and am trying to adopt. However, I'm slightly confused about its use. Say, for example, I've got a page called "Jobs". Any JS functionality on that page would be encapsulated…
Wintermute
  • 2,973
  • 4
  • 32
  • 52
4
votes
3 answers

How to manage event-based input in a modular user interface?

User interfaces often consist of different input devices like buttons, input fields, dialog boxes, sliders and others. The event order generally determines the expected behavior, and this behavior often is not easy to catch in a simple rule. Is…
Carlo Roosen
  • 1,025
  • 9
  • 15
3
votes
1 answer

In a microservice architecture, what is the good way of sharing the request and response contracts among the internal clients of one service

I have 4 services as given below - Notes-service -- takes NotesRequest and produces NotesResponse Reminder-service -- takes ReminderRequest and produces ReminderResponse Todo-service -- takes TodoRequest and produces TodoResponse Personal-assistant…
Yogesh Sharma
  • 280
  • 1
  • 13
3
votes
3 answers

Working with multilanguage routers in Zend

I'm developing a multilanguage Zend application with two modules (admin and public), I wanna pass the language code in the url so, in my bootstrap I have: protected function _initAutoload() { $this->bootstrap('frontController'); …
José Carlos
  • 1,005
  • 16
  • 29
3
votes
0 answers

Determine the number of different substrings in a string in c++ and using hashing

int count_unique_substrings(string const& s) { int n = s.size(); const int p = 31; const int m = 1e9 + 9; vector p_pow(n); p_pow[0] = 1; for (int i = 1; i < n; i++) p_pow[i] = (p_pow[i-1] * p) % m; …
3
votes
2 answers

Can you conditionally import files in react native?

Situation: I'm working on a react native project with different versions for the same app. To do this I'm using app flavors for android and for iOS I will be using build targets. I've already made a native android module that can return the android…
user3512797
  • 303
  • 4
  • 7
3
votes
1 answer

JS Modular Pattern - public function not executing

$( document ).ready(function() { var feature = (function() { var items = $( "#myFeature li" ); var showItem = function() { currentItem = $( this ); // more code goes here; }; var showItemByIndex =…
Dev8055
  • 33
  • 6
3
votes
4 answers

Can i have multiple layouts in Zend Framework?

I have a flashy page with image rotators in the front end for the clients. For back-end I want to have different layout. Can i have multiple layout? A little hint would be appreciable
S L
  • 14,262
  • 17
  • 77
  • 116
3
votes
1 answer

How to receive back the data via ajax call in my modular js structure?

Its a very basic java-script with modular structure, basically what I'm trying to do is , requesting a random quote via an API, printing them on the HTML page via Mustache.js. Earlier without using the modular structure way, I managed to accomplish…
3
votes
1 answer

Modular system architecture

I'm trying to implement modularity in my POS system to allow 3rd parties to do some kind of modules/plugins/add ons. I have started implementing a SPI and an API, my question is: the access to the data on database has to be by this way or I need to…
ZooMMX
  • 838
  • 9
  • 14
3
votes
2 answers

Numpy Modular arithmetic

How can I define in numpy a matrix that uses operations modulo 2? For example: 0 0 1 0 1 0 1 1 + 0 1 = 1 0 Thanks!
yassin
  • 6,529
  • 7
  • 34
  • 39
3
votes
2 answers

Android Modular Programming

My Problem might not be valid. And the points I mention here might be little incorrect as I am neither perfect nor expert. I have a shopping application and I want to start building a modular application. Like I want to add Affiliate User( the…
Shubham AgaRwal
  • 4,355
  • 8
  • 41
  • 62
3
votes
1 answer

Java modular programing

Im new to Java and this site. Im trying to develop a a game as modular as possible. So I have a GameEngine class and a GUI clase, which are completely independent. And an other class that is the Interface of both. The problem is that I can't get the…
McMoss
  • 31
  • 1
1 2
3
23 24