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
3
votes
3 answers
Checking whether any two of ten fields are different (not NULL or equal)
I have a SQL query containing (among others) ten fields, call them v1, ..., v10, which I would like to test. The expected situation is that most are NULL and the remaining values are all equal. The interesting (error?) case I’m searching for is when…

Charles
- 11,269
- 13
- 67
- 105
3
votes
5 answers
What are the drawbacks of using a method which calls a delegate for every row in SqlDataReader?
When I find a new idea, I always stick with it, and am unable to see any weak sides of it. Bad things happen when I start to use the new idea in a large project, and discover some moths later that the idea was extremely bad and I shouldn't use it in…

Arseni Mourzenko
- 50,338
- 35
- 112
- 199
3
votes
2 answers
Static and non-static version of the same function in C#
I have my own implementation of the GetUserId() function made static to be able to retrieve the ID in static context. But I also have many places where I use standard GetUserId() function built into an asp.net UserManager library. My fix for not…

Michał Gacka
- 2,935
- 2
- 29
- 45
3
votes
1 answer
EmberJS Maintainability
I'm making an essay about AngularJS vs EmberJS. In here I compare these two with different questions and at the end a decision is made for which one is better for developing web applications based on the answers of these questions.
One question…

Merv
- 1,039
- 2
- 12
- 22
3
votes
2 answers
How to get rid of strongly typed tableadapters and datatables
In our organization we are maintaining a VS 2005 website that relies heavily on strongly typed tableadapters and datatables. Needless to say that it is a maintainability nightmare for many reasons:
To generate new table adapters we need to connect…

duraid
- 614
- 7
- 16
3
votes
7 answers
Database normalization design - single or multiple tables
Should this be represented in the database as 1 table or 3 tables? I and my friend have different opinions about this so I'd like to see the general views on this. (Maybe it should be a vote for either solution?)
Create Table Order
// Basic fields…

AtliB
- 1,263
- 1
- 18
- 30
3
votes
4 answers
Unit tests and database
This question about unit tests sparked another thing that's been bothering me. I've gone back and forth on three ways to do unit tests when hitting a database.
Create mock objects and plug them in. This has the advantage of not needing a database,…

bryanjonker
- 3,386
- 3
- 24
- 37
3
votes
3 answers
Program structure in long running data processing python script
For my current job I am writing some long-running (think hours to days) scripts that do CPU intensive data-processing. The program flow is very simple - it proceeds into the main loop, completes the main loop, saves output and terminates: The…

fmark
- 57,259
- 27
- 100
- 107
3
votes
2 answers
Usefulness of Toggle functions
Is it better to write functions that explicitly do something (i.e. HideForm/ShowForm etc...)
or is it better to write 'Toggle' type functions (i.e. ToggleVisibility)?
I find Toggle type functions awkard because it's hard to track the state by…
user113476
3
votes
2 answers
Book/tutorial that teaches how to make programs that are easy to maintain and are less coupled?
I'm a PHP programmer and I really want to increase the quality of my code and most importantly I want to be better at programming.
What book, tutorial or article would you guys suggest that I read that teaches how to make programs that are less…

user295284
- 369
- 2
- 4
- 16
3
votes
4 answers
Maintaining releases/branches in an "agile" rhythm?
We have a software product that evolves at the rhythm of clients' needs and of a more general roadmap.
Because we are in a SCRUM project environment, it happens very regurlarly that a new feature makes its way to the product, and then we are…

Bertrand Gorge
- 384
- 1
- 3
- 16
3
votes
1 answer
Use partial views for custom MVC html controls
I have a bunch of button-styled links throughout my web app:
Store Home
Sometimes they get an…
jtheis
- 916
- 3
- 12
- 28
3
votes
1 answer
Visual Studio Maintainability Index has hierarchy only down to main()
I'm the current owner of a legacy C++ codebase. It's got a few dozen source & header files. The project is typically developed, built, and deployed on linux. In linux, the build system is scons/gcc, and the product is a single executable.
I want…

Avi Tevet
- 778
- 1
- 7
- 13
3
votes
6 answers
jQuery Refactoring/Maintaining
I've searched a little bit around SO and haven't found any questions/answers that are helping me. The problem is my jQuery function calls are getting much too large to maintain. I'm wondering if I should be refactoring a lot more or if there is a…

Jordan Messina
- 1,511
- 1
- 16
- 25
3
votes
6 answers
When Refactoring a project to improve maintainability, what are some of the things to target?
I've got a project (about 80K LOC) that I'm working on, and I've got nearly a full month of luxury refactoring and feature adding time prior to release so long as I'm careful not to break anything. With that being said, what can I do to improve…

Firoso
- 6,647
- 10
- 45
- 91