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
2 answers

Maintenance testing on websites

So, I Have been asked to do some maintenance testing on websites. This is the first time I will be conducting this kind of testing. I just want to know, to what extent must the testing be done? what are the main things to look at during these tests?…
0
votes
3 answers

Is it better to have one setter method or multiple for objects with a fixed number of fields?

I have a class with a member variable of type object. This object has a fixed number of fields. I'm trying to decide if I should use one setter function or multiple to mutate these fields. To make the question more concrete, I've written the…
Legend123
  • 348
  • 4
  • 16
0
votes
3 answers

Best practices: a Property, a Function or ToString?

I am trying to determine a best practice when writing code to get the string representation of a custom class. Imagine we have the following: public class DoubleParameter { public double Value { get; set; } public string Description { get;…
0
votes
1 answer

Django - Where should I place calculation method to design a proper and maintainable project?

I have some classes like these; class RawMaterial(models.Model): name = models.CharField(max_length=100) class Product(models.Model): name = models.CharField(max_length=100) amount = models.IntegerField() raw_materials =…
adnan kaya
  • 531
  • 3
  • 13
0
votes
2 answers

Add an attribute or create a new level in the XML hierarchy?

I am currently working on an XML document that was written for an XML hierarchy with only 2 levels. Right now, I want to add a one-to-many categorization to it that would break most of the code that works with that file. I could either add that…
chustar
  • 12,225
  • 24
  • 81
  • 119
0
votes
1 answer

Entity component architecture : want to split big entity -> hard to refactor

In the first step of development, I design Car and AI as 1 entity. It works nice (pseudo code):- for(every entity that is "racing car"){ //^ know type by using flag // or iterate special component (e.g. "RacingCarComponent") Entity…
0
votes
3 answers

Best CSS generator language?

Reusing values in CSS (particularly colors) has always been a problem for me when it comes to maintaining that CSS. What are the best tools for creating variables, or generally improving maintainability with CSS?
cssFrustrations
0
votes
1 answer

1 Service end-point vs 3 individual end-points for Create/Update/Delete in CRUD | Architecture

I am having this question about having CRUD services built, I should be able to create, update, delete and get the records from the DB. For easy understanding. I will use an example of a Company to which I should be writing services to perform the…
0
votes
2 answers

How should I organize my actionType with Redux to be maintainable over time and dev?

I am using redux for a project. I take the "increment/decrement a counter" basic tutorial as an example. I wonder how I should organize my action type in order to be able to maintain and scale my app in real life. First option : As in the tutorial,…
Stefdelec
  • 2,711
  • 3
  • 33
  • 40
0
votes
2 answers

How can I access sibling packages in a maintainable and readable way?

I often end up in a situation where one package needs to use a sibling package. I want to clarify that I'm not asking about how Python allows you to import sibling packages, which has been asked many times. Instead, my question is about a best…
danijar
  • 32,406
  • 45
  • 166
  • 297
0
votes
1 answer

How to translate a risk matrix into a data structure?

I'm writing a simple application that takes in the likelihood of a risk occurring, and the severity of its outcome, and translates that into a rating of how bad the risk is based on a risk matrix. My current solution is to translate the likelihood…
Jesse Bell
  • 23
  • 3
0
votes
1 answer

How can this notification system be improved?

I'm looking to improve a piece of code I did. I have a notification system in place, it's working well, the problem is that's it's not DRY at all, and to maintain it's just a nightmare... I was looking for some help to get this done in a proper way…
0
votes
1 answer

Does JBehave based negative-scenarios grow exponentially?

In behavior based testing, it looks like the number of error scenarios grow exponentially. As per Aslak Hellesøy, BDD was created to combine automated acceptance tests, functional requirements and software documentation. In 2003 I became part of a…
lkamal
  • 3,788
  • 1
  • 20
  • 34
0
votes
2 answers

Reorder Umbraco to have Articles/Year/Month/Article map structure

I have a website that's been running for over a year. The overview is getting lost in the Articles doctype and I've been asked to change the file structure from Articles/Article to Articles/Year/Month/Article. In short, the admin opens Umbraco and…
0
votes
1 answer

Does an append-only event store result in an append-only codebase?

When implementing an application with event sourcing, the persistence engine at work is an event store. That is, an append-only log of events, in past tense, in the order or occurrence. By simply replaying the events through the application, the…