Questions tagged [modular]
347 questions
1
vote
5 answers
Recursion using modular arithmetic explain java
Could anyone explain how does this method works.
public static int calculate(int n){
if (n/10 == 0)
return n;
else
return (n % 10 + calculate(n/10));
}
I input n = 15 and it get a 6 but I don't understand how the method works. please help.…

Ace Shafiq
- 27
- 1
- 7
1
vote
0 answers
asp.net forms modular Design
I have a very big Asp.net Application and it should be developed as modules so any client can Purchase the modules he needs.
The idea is to have a host application that will do the authentication and basic functions and we want to drop asp.net…

waleed Al-Ward
- 11
- 1
1
vote
1 answer
Trying turn this jQuery slideShow plugin into a neat and modular "module"
I have made a slideshow jQuery plugin as $.fn.slideShow which works like this :
.slideShow(int transitionDelay, string transtionType, string slideTag)
As you might imagine, the int or string keywords don't exist in javaScript, I have just put…

Mystical
- 2,505
- 2
- 24
- 43
1
vote
1 answer
ANGULAR 1.5 controllers in different .js documents
I have an application with 2 modules 1 controller (for now) and one service.
Ive tried to put the module and configuration in a file like this: user.js
(function() {
'use strict';
var app = angular.module('Users', ['ngRoute']);
…

Welder Marcos
- 129
- 12
1
vote
1 answer
webpack | after bundel creation, $inject on function getting undefined
i have recently started a project and using webpack as build tool.
angular.module('app')
.controller('appController', require('./src/appController'));
and my appcontroller.js looks like
'use strict';
var appController = function($scope){
…

navtej singh
- 277
- 3
- 11
1
vote
3 answers
Modularizing spaghetti code
I'm still a newbie to C++ and I've been trying to modularize some spaghetti code that was given to me. So far (apart from learning how to use git and installing the rarray library to replace the automatic arrays with them) I've been sort of stumped…

kalle
- 425
- 1
- 6
- 17
1
vote
3 answers
Modular programming and compiling a C program in linux
So I have been studying this Modular programming that mainly compiles each file of the program at a time. Say we have FILE.c and OTHER.c that both are in the same program. To compile it, we do this in the prompt
$gcc FILE.c OTHER.c -c
Using the…

user3785612
- 93
- 8
1
vote
1 answer
How do you make jQuery modular in a simple way?
I've read some stuff after asking Dr. Google some okay examples were:
http://www.jacklmoore.com/notes/jquery-modal-tutorial/
https://learn.jquery.com/code-organization/concepts/
But how about you guys? Do you guys know any good tricks or tips to…

Jinwooooo
- 37
- 1
- 3
1
vote
1 answer
passing struct to function C
I have initialised 3 instances of a cache I have defined using typedef. I have done some processing on them in a serious of if statements in the following way :
cache cache1;
cache cache2;
cache cache3;
int a;
void main(...) {
if (a == 0) {
…

Alk
- 5,215
- 8
- 47
- 116
1
vote
2 answers
JUnit data validation - send multiple sets of 'expected' data to a test
I was thinking of sending the expected data into a constructor but then realized it was a silly idea.
I still would rather minimize typing.
I have an extensive xml config file. Some elements inside of it may appear multiple times (ei, multiple…

2778
- 814
- 1
- 11
- 32
1
vote
2 answers
Putting UIView with alpha 1 on top of UIView with alpha 0.5
I'm trying to have a modular uiview that will be placed on top of another view. The modular view has an alpha value of 0.5, and appears in the middle of the main view.
Now, I would like for text to be rendered on that modular UIView. However,…

Dexter
- 5,666
- 6
- 33
- 45
1
vote
0 answers
Model undefined when creating using modular javascript
Here is my code. I am trying to learn javascript modular pattern and implement mvc using that. I am abeginner in javascript. I have a form with fields where i want to write to log on button click. I always get the model undefined when i do this.…

user4868451
- 11
- 1
1
vote
2 answers
Modular programming in C++
Possible Duplicate:
C++ program design
I want to know how modular programs are written in C++ i.e. how they are analysed, designed etc. Also names of reference books will be helpful.

Supriyo
- 97
- 3
- 6
1
vote
1 answer
How do dynamically enable/disable laravel packages from php
I am building a laravel 5 modular application which the administrators will enable/disable functionalities(modules/packages) from backend.People say that I can have modular functionality with packages in laravel.So, I am using laravel packages as…

Nay Lin Aung
- 73
- 3
- 10
1
vote
0 answers
Java modular packaging for specific customers / builds
I'm working with an ERP project. The problem is that we need to modularise the project on specific customer need or specific build basis.
for example I have Java package A , B , C , D
for customer 1 , I want all of the packages,
for customer…

Imtiaz Mirza
- 591
- 1
- 7
- 26