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
Which is the best exception to use? Or: how to deal with a misconfigured Activity?
This is a bit of an academic question, but I'm curious to get your input.
I have an Activity which is loosely parameterized by a type string. When creating the Activity, I will always pass in the proper type via Intent's putExtra(). But I only want…

QED
- 9,803
- 7
- 50
- 87
0
votes
3 answers
Is there any easy way to develop easily maintainable code where XML parameters must have the same name as class variables in C#?
Let's say that my code has a class defined as so:
class test{
bool var;
public test(){}
}
In my main function, I create an object of the sort, and set var to true.
After that I parse some XML files that contain the following:

user874143
- 3
- 1
0
votes
2 answers
Better way to program in matrix style selections in plsql?
By matrix style, I mean having n variables, each with some number of inputs, and having to handle all possible values. The simplest case of this is multiple boolean values and having to handle every combination of true/false. This is easy if the…

Lawtonfogle
- 974
- 4
- 17
- 32
0
votes
1 answer
returning from multiple points in a function
This is more or less a readability, maintainability and/or best practice type question.
I wanted to get the SO opinion on something. Is it bad practice to return from multiple points in a function? For example.

au_stan
- 4,011
- 2
- 19
- 24
0
votes
2 answers
jQuery - Improving code and eliminating repetition
I have a series of calls to various jQuery methods and I was just wondering if there was a way to clean this code up, turn it into a function that I pass the selectors into, or anything else that could make the the code more manageable/maintainable.…

noclist
- 1,659
- 2
- 25
- 66
0
votes
1 answer
Adjust colors in vimrc or rather in the color scheme itself
In my case I do use the solarized color scheme. Until now I used to override certain color properties in my vimrc. But the number of adjustments seems to grow over time. Especially I tend to adjust colors used for UI elements, e.g. line numbers,…

Saucier
- 4,200
- 1
- 25
- 46
0
votes
3 answers
CSS - styles for unused elements?
Should I include 'default' styles in my stylesheet for elements, that aren't even used on my page?
For example, when I only use h1, h2, h3 and h4, do I really need to add styles for h5and h6? Or when I don't use tables on my webpage, do I need to…

Sven
- 12,997
- 27
- 90
- 148
0
votes
3 answers
Drupal: updating with Drush doesn't change update status
I've updated my drupal installation and drupal modules, but admin/reports/updates says that Drupal version is still 6.12.
To update drupal I ran
- drush updatecode
- drush updatedb
(this updated only modules and said code still needs to be updated…

AlexA
- 4,028
- 8
- 51
- 84
0
votes
2 answers
Store Redundant Info vs. Repeated Conversions
Is it preferable to store redundant information, (which can be otherwise generated from existing data,) or to instead convert the existing data each time you need access?
I've simplified my specific problem as best as I can below, hoping that the…

4444
- 3,541
- 10
- 32
- 43
0
votes
1 answer
How should I structure this data in my database?
So I've got this feature I'm building to allow users to save profile's to a list. Kind of along the lines of a playlist with a name of the list, the user's id and the unique profile data as an array with both the profile id and the state's…

Kevin Beal
- 10,500
- 12
- 66
- 92
0
votes
4 answers
store data in asp.net pages (Not Sessions)
I am creating 4 asp.net pages. first three pages have 'CONTINUE' button and last page has 'SUBMIT' button. I am not allowed to use Sessions to store first three pages data. and i need to use 'BACK' button on last three pages. when i click 'BACK'…

ARB
- 285
- 1
- 6
- 17
-1
votes
1 answer
How to maintain enums (and adding new values) in a very large codebase
In a very large and old codebase, suppose we're using a database column status with enum values as NEW, IN_PROGRESS, COMPLETED, REJECTED.
Now this status is used in multiple conditions in code like
if (status == `NEW` || status == `IN_PROGRESS`) {
…

gaganshera
- 2,629
- 1
- 14
- 21
-1
votes
1 answer
Recommendations to learn Refactoring
I have learned clean code and some people advise me to learn refactoring. So what are the best resources to learn refactoring and code smells in practical way? I tried to learn from Martin Fowler book Refactoring improving the design of legacy code…
-1
votes
1 answer
What better way to design the built-in stats function of a sentence generator?
Context : a random sentence generator
the function generateSentence() generates random sentences
returned as strings (works fine)
the function calculateStats() outputs the number of unique
strings the above function can theoretically generate…

Romain Valeri
- 19,645
- 3
- 36
- 61
-1
votes
1 answer
Risks of maintaining/sustaining two code sets, one for CPU one for GPU, that need to perform very similar functions
This is a bad title, but hopefully my description is clearer. I am managing a modeling and simulation application that is decades old. For the longest time we have been interested in writing some of the code to run on GPUs because we believe it…

C.S. Wannabe
- 3
- 2