Skip to main content

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.

maintainability
-1 votes
0 answers
9 views

One common document table vs separate tables for multiple entities: scalability, optimization, and maintainability

I have three tables: inspections, accidents, and claims. Each of these tables has a one-to-many relationship with a documents table, where users can upload documents specific to each record. The ...
Samra Almas's user avatar
1 vote
8 answers
307 views

Avoid repetition of strings in SQL query

I have a SQL query where the list of strings is repeated twice: ('foo', 'bar', 'baz', 'bletch'). What is the most maintainable method to avoid such repetition and make this code more DRY? I am not ...
Timur Shtatland's user avatar
-1 votes
1 answer
62 views

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 ...
gaganshera's user avatar
  • 2,639
3 votes
1 answer
448 views

Angular How to easier maintain build in i18n translations

We use the build in i18n module for angular. I successfully generated source file for my original lang (en). Then I copied the source file and created another file with (es) translation. It is easy to ...
simply good's user avatar
  • 1,081
8 votes
3 answers
419 views

Python: Should I save PyPi packages offline as a backup?

My Python projects heavily depends on PyPi packages. I want to make sure that: in any time in the future: the packages required by my apps will always be available online on PyPi. For example:- I ...
ibrahem's user avatar
  • 510
1 vote
1 answer
182 views

Is calling an API from inside an initializer in Python bad?

I have a Python class that requires some data in order to be initialized. This data is usually obtained using a function from another module, which makes calls to an API. One of the parameters my ...
dieortin's user avatar
  • 513
2 votes
1 answer
113 views

Invoke overridden virtual methods of a derived class without exposing them

I would like to write a function f which invokes two overridden virtual methods, op_1 and op_2, of a derived class in a particular order, without exposing those methods beyond f and the methods' ...
Manningham's user avatar
0 votes
1 answer
129 views

How we can achieve writing reusable and modular code

How we can achieve writing reusable and modular code in an Enterprise code. What are the basics to get started
VIKRAM SINGH CHOUHAN's user avatar
0 votes
1 answer
102 views

How to maintain Composite Pattern efficiency with increasing components?

I am currently writing some code in C# and have decided, at one point, that for my specific case a composite pattern will be useful. However, there is clearly a performance problem in my code once I ...
Giacomo Nassif Jack's user avatar
2 votes
1 answer
208 views

Refactoring instanceof

On my current project, I need to convert values between types that are only known at runtime: the input type is the JSON type of the input, and the output type is defined in a configuration file ...
CidTori's user avatar
  • 399
1 vote
0 answers
41 views

Should I declare a number as constant if it is passed as a parameter to a meaningful named function?

Suppose we a validation code similar to the following: Rule(account => account.CompanyName).MaxLength(50) Or Rule(account => account.Balance).MustBeGreaterThan(0) Do we still call the numbers ...
Kush Grover's user avatar
0 votes
1 answer
75 views

Prevent improper use of a User Defined Data Structure and Making DS resuable

Objective: Define a Priority Queue Implemented with a Max Heap Provide as much type safety as possible and provide an implementation that is flexible/reusable (even though python is dynamic and only ...
MPC's user avatar
  • 13
-1 votes
1 answer
321 views

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 ...
Mahmoud Abd El-Razik's user avatar
0 votes
1 answer
87 views

Multi language apps into one - best strategy

I created a mobile game for kids several years ago. I did 10 language versions. Each exists as a different app in Apple and Google Play. Now Apple rejects one of the upgrades - they say it is spam. OK,...
Artur's user avatar
  • 1
0 votes
0 answers
72 views

Best practices for creating a customized report based on user form input?

My Question What are the best practices for creating a customized report based on a user form input? Specifically, how do I create an easy to maintain system which takes user input which is collected ...
AzJ's user avatar
  • 199

15 30 50 per page
1
2 3 4 5
21