Questions tagged [maintainability]

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.

306 questions
0
votes
1 answer

Reduce complexity, increase maintainability of multiple If-Else statements?

I have a method that I am trying to reduce the complexity and increase the maintainability. It contains multiple if-else statements, all setting different information as below: ClassOne varOne = null; if (condition == null) { varOne =…
pcoul
  • 127
  • 1
  • 1
  • 7
0
votes
1 answer

Show the same set of fields on different pages?

I am working on a set of online forms to be filled out be new clients. The results are stored to DB and can be viewed by the user at a later time or an employee to verify data. Since many of our clients have low technical experience (or are simply…
Kodithic
  • 160
  • 12
0
votes
2 answers

How to decide when to use Ajax vs Javascript for maintainability

During ASP.Net development i am often unsure weather i should be performing some functionality using an ajax request vs handling it all on the client with JavaScript. I often will want to use Jquery ajax functions in order to speed development up…
user2945722
  • 1,293
  • 1
  • 16
  • 35
0
votes
1 answer

What particular practices, designs, languages/features enable very easy to maintain code?

What particular practices, designs, languages/features enable very easy to maintain code?
Igorio
  • 918
  • 1
  • 7
  • 17
0
votes
2 answers

Maintainable serialization method for long-term storage of entities in .NET

I have a complex data model with lots of attributes that I need to store. Since there's no need for searching on the attributes in the database (I'm using Lucene.Net for the search) I don't want to create tables and columns for the details of the…
Iravanchi
  • 5,139
  • 9
  • 40
  • 56
0
votes
1 answer

Java Currency Converter adhering to OO (Object Oriented) principles

A command line currency converter application that prompts for a user input of source currency, source currency code and target currency code e.g. C:\workspace> java CurrencyConverter 100.50 EUR GBP The application returns the value of the source…
0
votes
2 answers

Which approach for maintaining reusable .net components?

My team develops .net components which are used by other development teams within the company. More often than not, these teams need an urgent enhancement and they want it now. To preserve my team's sanity, I would like to make planning more…
rlesias
  • 4,786
  • 3
  • 15
  • 20
0
votes
1 answer

is addon domain right choice for country specific domain hosting?

In our website we want to launch country specific domains. so which one is preferred over another like add-on, parked domains or anything that i don't know. our requirements is quite simple we want to publish country specific domain but the…
hi0001234d
  • 109
  • 3
  • 12
0
votes
0 answers

Android, big listeners, and performance/maintainability

I have a pretty big listener interface for an Android chat app. I also have an adapter for the listener, with empty methods. Here it is: public static interface Listener { public void connectionStarted(Server server); public void…
user2499946
  • 679
  • 1
  • 10
  • 28
0
votes
1 answer

Javascript Code Structure

So I'm making this app about a prison and prisoners etc, and I'm using the Observer Pattern. Ideally I would like to have only 1 global variable named App, and I would like to use the provided Observer Pattern code (in the link above) as a helper…
0
votes
3 answers

Magic numbers for parameters or method overloading?

I need to implement an interface for a class in C++ where I need to ask for events occured related with two kinds of sets, let's say here persons and actions. I need to ask for person identifier and action identifier in all possible combinations…
chorch
  • 163
  • 1
  • 7
0
votes
2 answers

Conditional-compilation vs run-time checks for client-specific customization?

As a vendor, we need to ship applications to many clients, and sometimes we need to customize the application for a specific client, for example by enabling or disabling certain features, or setting appropriate defaults for that client. I've seen…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
1 answer

Which is more conventional function name between "ContainsElement" and "DoesContainElement"?

I'm writing a function to determine whether an element exists in a container. I don't know how to choose the function name between: bool ContainerType::ContainsElement(const ElementType& elem); and bool ContainerType::DoesContainElement(const…
xmllmx
  • 39,765
  • 26
  • 162
  • 323
0
votes
2 answers

What is most important for creating the architecture of a Web Application? Scalability, Maintainability or Perfomance?

I am currently about to redesign a running, special purpose and German language social networking web application. The current version is so messed up that we decided to start from scratch. I don't want to run into all the problems again so I have…
0
votes
3 answers

Is there any more compact way of writing that statement?

I had to write a script that generates some fixture file with increasing fake MAC addresses. To do that, I decided to have some fun and try to make it as compact as I could. I ended up with: def mac_address(i): return ':'.join(['%02x'] * 6) %…
ereOn
  • 53,676
  • 39
  • 161
  • 238