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
Where domain logic should go when there is no aggregate?
Short question.
From DDD perspective (or just maintainable architecture and common sense), where should I put a layer of business logic that has no domain objects to operate with but does some "smart" data preparation and orchestrate a bunch of…

shumantt
- 23
- 5
0
votes
1 answer
Excel VBA Code - Global Module/Sub OOP friendly?
I've been working on some Excel VBA code with the hope of making it expandable, maintainable and easy to read. Some variables in the code require unique hardcoded ranges while others store common/repeated information. I moved the common/repeat code…

Jeremy
- 3
- 4
0
votes
0 answers
Will it be correct if I call instance method from the singleton's static method?
I have example code on C++ that describes my solution:
#include
class Singleton {
private:
static Singleton* instance;
Singleton() {
std::cout << "Instance created" << std::endl;
}
Singleton(const Singleton&);
…

Yehor Bublyk
- 13
- 4
0
votes
1 answer
What is a clean way to have a Python function execute in different modes bases on string input
I have a function that applies different data preprocessing based on a string argument and am confused on how that is usually done in python because of the lack of switch statements and want to avoid long elif chains.
One solution I found and used…

Typ
- 13
- 5
0
votes
3 answers
Ignoring null parameter in where clause linq to sql
I need to ignore null parameters in the where clause so that i can fetch the appropriate data with the applied filters from the user side. Inorder to acheive this, I am currently using the if..else nested approach which grows in size as the number…

Thameem
- 700
- 1
- 13
- 38
0
votes
2 answers
Should I worry about the upgrade path for LINQ (the query language)
I'm starting to use LINQ as a true query language in code to help improve readability. Until recently I was afraid to touch LINQ because of the LINQ to SQL team move under the Entity Framework team (trying to ignore that conversation here) -- will…

Toran Billups
- 27,111
- 40
- 155
- 268
0
votes
1 answer
Quartz scheduler maintenance and performance overheads
We are currently evaluating quartz-scheduler to use in our project. For our use case, we need only one time trigger to be fired at some point in future, it need not to be a repeatable or cron trigger.
So in my POC, I'm creating a new simple one time…

Anoop Deshpande
- 514
- 1
- 6
- 23
0
votes
1 answer
Maintaining a service required by two different apps
I have two node apps running on my server, each performing different tasks.
However, I now need to create a service that is going to be used by both of them. Obviously I don't want to create it in both of the apps, hence creating two codes to…

jonyB
- 9,257
- 2
- 8
- 11
0
votes
3 answers
Does django create a clean database?
I am building a web interface for a database at my school. The database will hold our school's versions of academic standards.
When you build a site using django, does it create a clean database? For example, wysiwyg website builders like…

japhyr
- 1,710
- 2
- 18
- 24
0
votes
1 answer
Changing edit screen according to selected item in recycler view
I have flow like below
recyclerview --- click on item ---> detail screen --- click on edit
option menu item ---> edit screen
Here fields show in edit screen changes based on the recyclerview item user clicked.
I am using databinding in my…

user158
- 12,852
- 7
- 62
- 94
0
votes
0 answers
Need a brilliant idea for moving onCreateViewHolder() decision making into the ViewHolders themselves
Currently for multi-ViewHolder implementations of RecyclerView everyone suggests to have a when/switch case in onCreateViewHolder()
e.g. here: How to create RecyclerView with multiple view type?
or here:…

David Aleksanyan
- 2,953
- 4
- 29
- 39
0
votes
1 answer
How do I share identical code snippets between various classes without using an intermediate class nor Shared?
I have 2 classes A and B, which share 2 functions S1 and S2 consisting of absolutely identical code in both classes:
Public Class A
Private Coll as New Collection
Public Sub A1()
End Sub
Public Function A2() As String
End…
user1889116
0
votes
2 answers
How to measure performance and maintainability of the system in UML class diagram?
I am now doing a UML test section, I understand what does performance and maintainability mean in general, but I don't understand how to rate them with UML class diagram.
The test question is:
Consider the model depicted with the UML class diagram…

Roman
- 15
- 3
0
votes
1 answer
OOP and GUI: what to implement where?
About six months ago I put on a full-stack developer hat at my job and started working on a tool comprised of a GUI and a database. The client has requested that the tool be written in Python, so I've been working with the company PyQt license to…

Or Bairey-Sehayek
- 193
- 1
- 1
- 8
0
votes
0 answers
Any good idea/ best practice for maintaining local patches for open source repo?
we have a repo for our customers and using some open source software (50+ repos), and for the long time development and maintenance, there being many local modifications that are so customised and could not go to the upstream (those repo also needed…

butter
- 355
- 1
- 4
- 12