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
1
vote
3 answers
Changing history in Github
I'm learning Github and had a problem.
I was finishing up for the day and I pushed code to a repository.
I then realized I had commented out code no longer needed.
I realize this is bad style so deleted it and pushed again.
It looks kind of…

Celeritas
- 14,489
- 36
- 113
- 194
1
vote
1 answer
When an objectA wants to send a message to objectB, where should the method live?
Lets say you create two objects: objectA and objecB. If objectA needs to send a message to objectB should it happen like this:
objectA.theMessage(objectB)
or like this:
objectB.theMessage(objectA)
A more concrete example:
Publisher p;
Subscriber…

MeLikeyCode
- 297
- 4
- 13
1
vote
2 answers
HTML reuse and maintenance with Play! framework
We have been having discussions in our product dev team regarding html maintainability and reuse. To set the context, we started with HTML5/CSS3 front end with plain JS under Play MVC, which in turn uses RESTful backend. Then we thought of adding…

Raaj Ashtaputre
- 51
- 1
- 5
1
vote
2 answers
WinForms MenuStrip Isolation to improve Code Maintainability
In Windows Forms, C#, .NET 3.5, VS2008...
What's a good way to isolate the code for a MenuStrip (or any complex control group), and it's child menu items, from the rest of my form?
For example, when I have a MenuStrip with a number of menus and each…

Adam Kane
- 3,996
- 7
- 44
- 53
1
vote
2 answers
Manageability vs. Maintainability
What is the difference between manageability and maintainability?
I have read a few definitions for maintainability and manageability but they sound pretty similar to me...

Vlad Schnakovszki
- 8,434
- 6
- 80
- 114
1
vote
6 answers
How to synchronize C & C++ libraries with minimal performance penalty?
I have a C library with numerous math routines for dealing with vectors, matrices, quaternions and so on. It needs to remain in C because I often use it for embedded work and as a Lua extension. In addition, I have C++ class wrappers to allow for…

Judge Maygarden
- 26,961
- 9
- 82
- 99
1
vote
1 answer
How to deal with code duplication in puppet modules?
I have implemented two puppet modules to setup and configure two components - A & B. The directory structure of the modules folder looks like below:
modules
modulea
manifests
init.pp
install.pp
…

Anand Patel
- 6,031
- 11
- 48
- 67
1
vote
0 answers
Rails Deleting a Model that has Many Relationships Without Tanking the Server that is Maintainable
I'm using Rails 3.2
I have an issue I'm trying to wrap my head around. I have a model which is kind of at the top of a pyramid of many other models which belong to it, and there are more models that belong to those other models. So just calling…

Wumbo
- 83
- 10
1
vote
4 answers
Which of these is better practice?
You have a sequence of functions to execute. Case A: They do not depend on each other. Which of these is better?
function main() {
a();
b();
c();
}
or
function main() {
a();
}
function a() {
...
b();
}
function b() {
...
…

Fletcher Moore
- 13,558
- 11
- 40
- 58
1
vote
0 answers
Best practices for Django model lookup
I've got a Django models.py which declares a bunch of different classes, including some abstract, and they're related to each other via a variety of ForeignKey, OneToOne, and ManyToMany relationships. Some of the models imply interactions with other…

Sarah Messer
- 3,592
- 1
- 26
- 43
1
vote
0 answers
Correlation between code maintainability and development velocity
Has anyone seen a clear correlation data between the code maintainability and a team's development velocity? Can anyone suggest an own experience, a research paper or any other information sources?
I have often experienced that long-lasting…

taro
- 699
- 1
- 9
- 20
1
vote
2 answers
Optimize Java Regular expression
I have a file with huge if statements like this:
if ((Pattern.compile("string1|String2|String3").matcher(text_str).find())
&& (Pattern.compile("String4|String5").matcher(text_str).find())
&&…

pinpox
- 179
- 2
- 10
1
vote
4 answers
to wrap or not to wrap ESAPI
We have several webapps that needs functionality provided by ESAPI java library. my colleague and I are in a dilemma whether to use ESAPI directly thereby creating a direct dependence on ESAPI or create an interface that abstracts calls to ESAPI.
By…

mzzzzb
- 1,422
- 19
- 38
1
vote
2 answers
Is input validation necessary?
This is a very naive question about input validation in general.
I learned about input validation techniques such as parse and validatestring. In fact, MATLAB built-in functions are full of those validations and parsers. So, I naturally thought this…

Kouichi C. Nakamura
- 850
- 3
- 10
- 25
1
vote
1 answer
XSLT XPath style guide / best practice / coding standard?
Does there exist an XSLT / XPath style guide / coding standard / best practice reference?
In particular I'm maintaining a bunch of XSLT scripts which are demonstrably fragile and unmaintainable.
eg. Adding a single level of nesting to the XML…

John Carter
- 460
- 3
- 10