Maintainability refers to the nature, methods, theory and art of maximizing the ease with which an asset may be sustained, modified or enhanced throughout the duration of its expected useful life.
Questions tagged [maintainability]
306 questions
0
votes
1 answer
Can I make a long fish array easier to read and maintain?
I am writing a simple script in fish. I need to pass in an array as follows:
set PACKAGES nginx supervisor rabbitmq-server
apt install $PACKAGES
But as the array gets longer it gets harder to read and maintain...
set PACKAGES nginx supervisor…

lofidevops
- 15,528
- 14
- 79
- 119
0
votes
1 answer
How can I separate out dependencies from requirements.txt?
I am maintaining a requirements.txt file for my Python project, including version numbers and hashes for each package. (This is so I can install with pip install --no-deps --require-hashes.)
Some packages in the list are my actual requirements (for…

lofidevops
- 15,528
- 14
- 79
- 119
0
votes
1 answer
What is the most efficient to run certain lines of code only when a boolean is true?
If I had code that looked like the following:
if (bool1) {
statement1
statement2
} else if (bool2) {
statement3
statement4
}
and I only want to run statement 2 and 4 given another boolean (say bool3) is true, what is the best way to…

Superheroguy89
- 13
- 1
- 1
- 7
0
votes
2 answers
How to hot update applications professionally
I wonder how big aplications (with several appliacation servers and loadbalancers) are hot update to actual version without takeing offline for users. Skipping database shema here - only application layer.
For example there is several glassfish…
user334596
0
votes
3 answers
How to write maintainable merge() method?
Let's say we have the Person entity:
class Person {
/*
once the id is assigned, then must not be modified!
assume that the id will be assigned by the ORM framework
*/
int id;
String givenName;
String…

uanacau
- 63
- 2
- 9
0
votes
1 answer
code management: generate source files with slight variations of various rules
I have a source file in a declarative language (twolc, actually) that I need to write many variations on: a normative version and many non-normative versions, each with one or more variations from the norm. For example, say the normative file has…

reynoldsnlp
- 1,072
- 1
- 18
- 45
0
votes
1 answer
How can I maintain an iOS Framework initially installed via CocoaPods but modified manually later on?
I'm currently working on a iOS (Swift) app for which I installed a few Frameworks via Cocoapods.
I have been facing a few issues with one of the frameworks and decided to tweak its code manually to run some tests and see if I could make things…

Edouard Barbier
- 1,815
- 2
- 19
- 32
0
votes
0 answers
What is the specilized index of a given class diagram
What is the specialized index SIX of a given class diagram,I need a good and clear definition.
What is the range of values that considered as low value of SIX, what is the range of values that considered as high value of SIX and what is the range…

reem
- 11
- 5
0
votes
0 answers
R: pass entire dataframe as argument to custom function, or just needed columns?
I want to know what is better from usability/efficiency point of view: passing a dataframe to a function, alongside with the required column names, or just the data columns. Should there be a difference if the result vector must be added to the…

ledermauss
- 307
- 1
- 2
- 13
0
votes
0 answers
Make object keep pointer to other objects - but not add code to the object directly (decoupling)
I have an entity-based-component system.
A GameObject (entity) keeps all pointers to all related GameComponents.
All GameComponent keep a pointer to the GameObject.
If I know that I have to query one component from another component often…

javaLover
- 6,347
- 2
- 22
- 67
0
votes
0 answers
Add reminder/tooltip/comment to show logical connection between 2 or more chunks of code
I have 2 functions (sometimes, in different classes or even different files).
A part of them have to work consistent with each other (#A and #B).
void generateBox(BoxStruct& boxStruct){
Vector3 coor=boxStruct.getWorldCoor(); //#A
//... some…

javaLover
- 6,347
- 2
- 22
- 67
0
votes
2 answers
Generalizing work orders
Hello stackoverflowians,
I am working on designing tables for work orders.
The problem:
There is different work order models (from now on called WOM)
The WOMs share some attributes (Num, Date, Description, ... etc)
The WOMs have details such…

Ismail
- 190
- 11
0
votes
2 answers
Prototype Pattern causes code repetition between "actual object" and "prototype"
After adopting Prototype Pattern into a game, it pleasantly improved maintainability of my code.
However, I have started to fear that when the actual object become more detail-customized,
I tend to code the corresponding prototype to become more…

javaLover
- 6,347
- 2
- 22
- 67
0
votes
1 answer
Force classes to implement one of a set of methods
Let's say I need a group of classes to implement all of methods X, Y and Z to work properly. In that case, I can let them implement a common interface to force that.
Now, my case is a bit different - my classes need to implement at least one of X, Y…

Martin Grey
- 744
- 2
- 12
- 26
0
votes
1 answer
What influence the maintainability result for Sonarqube?
I'm confronted to a huge "spaghetti code" with known lack of documentation, lack of test covering, high complexity, lack of design rules to be follow, etc. I let the code be analysed by a default sonar-scan, and surprisingly for me, the maintability…

Loic Mouchard
- 1,121
- 7
- 22