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
2
votes
5 answers
Alternatives of Google App Engine + Java
If I develop my web application on GAE using Java, in future would I have easy migration opportunities, or will I stuck to GAE?
What can be other alternatives of Google App Engine + Java?
Not:

metdos
- 13,411
- 17
- 77
- 120
2
votes
4 answers
How to declare different functions in different conditions?
Additionally, function declarations should never appear inside of
block statements. For example, this code won’t behave as expected:
// Bad
if (condition) {
function doSomething() {
alert("Hi!");
}
} else {
function doSomething() {
…

Lying_cat
- 1,288
- 2
- 12
- 16
2
votes
2 answers
static function as class template parameter - cause maintainability issue
After I learned how to pass static function (HashFunction) as a class (Collection) template parameter, I am very addicted to it.
I use it in many places ... now I just realize that if I want to change HashFunction's signature, I…

javaLover
- 6,347
- 2
- 22
- 67
2
votes
1 answer
C++ std::move assignment from scratch - low maintainability
I like the new std::move but afraid that it reduces my program maintainability.
To my knowledge, if I create move constructor or move assignment operator=(), I have to write it from scratch. That is where the problem begins.
Code version…

javaLover
- 6,347
- 2
- 22
- 67
2
votes
3 answers
Best practice on how to organize methods?
Is there a standard practice or convention on where to declare methods which are used(or called) only inside another methods? To demonstrate this assume the following:
public class MyClass{
methodA();
methodB();
methodC();
public…

Addis
- 2,480
- 2
- 13
- 21
2
votes
1 answer
condition checking on signatures of template of a class (Ex. HashSet + HashMap)
Is it possible to make return type of a function depends on some condition about type in template of a class?
Example
I have a custom hash map, named MyHashMap.
It has a proper begin(), and end() function that return iterator.
template

javaLover
- 6,347
- 2
- 22
- 67
2
votes
2 answers
Tracking Maintainability index (MI) in Java
I need a good fast, reliable (open source would be a plus) tool for Java for tracking Maintainability index and simliar code metrics to show the customer the progress of working on refactoring issues.
What would be your suggestion to apply?
user240401
2
votes
7 answers
Which framework should I use to ensure better longterm upgrade / maintainability, CakePHP or CodeIgniter?
I am deciding on a framework to try out for PHP. I have narrowed it down to CakePHP and CodeIgniter. I have a couple of questions for any of you who have used or are familiar with both:
I like the fact that CakePHP keeps most of the code outside of…

Eli
- 97,462
- 20
- 76
- 81
2
votes
3 answers
Should the default case of switch statment have a break?
Example from Oracle
public class SwitchDemo {
public static void main(String[] args) {
int month = 8;
String monthString;
switch (month) {
case 1: monthString = "January";
break;
…

Celeritas
- 14,489
- 36
- 113
- 194
2
votes
2 answers
PHP late static bound referencing
Situation
In this web app I am building there is a "bootstrap" sequence that defines (through constants) and initiates an extended controller. Currently, the controller keeps track of assets (script files, css, etc.) that will be deployed at the…

Simon
- 816
- 2
- 7
- 16
2
votes
1 answer
Load bundles from a separate SVN repository
I am working on a project where code will be shared across multiple projects. Right now, I maintain the shared code in a single sf2 application that are in the same SVN repository. What is the recommended/right way to pull out the shared bundles…

Steffen Brem
- 1,738
- 18
- 29
2
votes
1 answer
Maintaining two versions of the same framework and application
We have a framework created in .NET which controls hardware devices.
The entire framework uses MEF so it relies heavily on interfaces.
For reasons beyond our control we had to change the hardware and that
required some breaking changes to some of…

TimothyP
- 21,178
- 26
- 94
- 142
2
votes
2 answers
Choosing value in SQL query vs (Java) code
I need to choose one of three values of an integer using the value of a column on a nullable column of a table.
There are at least two approaches: 1) use SQL to do all the work: test null values, and choose between the other values, or 2) read the…

ArturoTena
- 713
- 5
- 15
2
votes
2 answers
How applicable is the command pattern in this attempt to decouple layers?
In past projects I've noticed that many maintainability problems arise from the wide spread mixup of data access and business logic, and high dependancy of logic on entities. I'm not attempting to design a hypothetical system that avoids all of…

Korijn
- 1,383
- 9
- 27
2
votes
0 answers
Is switching within a log wrapper evil?
This is one of those questions that really wouldn't be worth anyone's time under normal circumstances but...
The built in Android logging framework uses seperate methods for log messages of different debug levels. So you have a method…

clockpenalty
- 133
- 1
- 6