67 questions
0
votes
0
answers
13
views
Code analysis tool for Monolith java based application migration to SOA
We have a monolithic application and we want to create multiple service based projects(REST APIs). Is there a product available in market which can measure some of the improvements such as
How much ...
1
vote
1
answer
163
views
Best practice to keep code changes maintainable when overriding methods in Odoo
I've been maintaining and extending an Odoo installation.
Often I need to override or monkeypatch certain methods (that can't be inherited) in order to achieve the desired result.
What do you think is ...
1
vote
2
answers
342
views
Making an enum with stored LinkedHashMap values
I'm somewhat of a beginner to java, although I understand the basics. I believed this was the best implementation for my problem, but obviously I may be wrong. This is a mock example I made, and I'm ...
1
vote
0
answers
57
views
Why some package can import a module that does *not* exist in the folder that it means to import from?
When I try to look at the implementation of some numpy functions, I realized a strange thing (description below).
In this python script: /Users/myname/opt/anaconda3/envs/ml/lib/python3.7/site-packages/...
0
votes
1
answer
555
views
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 "...
4
votes
1
answer
99
views
Managing the list of workarounds in a long-lived project
We are creating a big project that will live and be improved for approximately 10 years.
Already in our code base, there is a lot of code for specific browser incompatibilities, workarounds for ...
0
votes
2
answers
83
views
Using a separate class file (model) for Entity Framework queries instead of writing in controller itself
Is it ok to write EF queries in a separate class file inside models folder instead of writing it in controller itself.
Because I've seen in msdn writing all EF queries in controller itself. While at ...
0
votes
1
answer
86
views
Why is it important to write the code in components/modules way?
Recently, I get to know that writing code in the modular or components way is important. But I am not sure why is it so important.
Can someone explain why is it important if you know?
2
votes
2
answers
2k
views
Computational complexity for regular expressions
Regular expressions rapidly become too complex (for me) to understand. Even something so simple as [ab][cd], has several logical branches. My goal is to improve the maintainability of our code base, ...
1
vote
2
answers
287
views
What is a better way to change variable in runtime server?
We maintain our server once a week.
Sometimes, the customer wishes that we change some settings which is already cached in server.
My colleague always write some JSP code to change these settings ...
0
votes
1
answer
963
views
How to send model data to a view through a controller in MVC C#
I have already seen a lot of different MVC architectures. All of them are different.
I would like to know a standard way to send a model data to a view using a controller.
Is it suitable to send the ...
9
votes
3
answers
2k
views
Why are function bodies in C/C++ placed in separate source code files instead of headers?
For instance, when I define a class file in C++ I've always put the function bodies in the class header files (.h) along with the class definition. The source code file (.cpp) is the one with the main(...
0
votes
1
answer
59
views
code management: generate source files with slight variations of various rules
I have a source file in a declarative language (twolc, actually) that I need to write many variations on: a normative version and many non-normative versions, each with one or more variations from the ...
0
votes
0
answers
61
views
Create svn branch for new customer - new code only for this client
We have situation that we sold application for one client and we are constantly making changes to it for this client.
On the other hand we have another client that want similar application. But there ...
11
votes
1
answer
4k
views
MySQL Database design - Storing Images - Single table or multiple tables
I am currently working in a product where different types of images like product images, user profile pictures, logo etc. are there.
I need a database with good query performance.
I got two DB ...
0
votes
0
answers
48
views
How to manage SQL source code that currently stored in a file server
May I have your sharing on how to manage your SQL queries in a file system across all different vendors.
I am a data analyst and I write a lot of different SQL queries everyday. They are all stand ...
2
votes
4
answers
3k
views
(avoid) splitting code to .cpp and .h in C++ and efficient compilation
The common practice in C++ is to separate declarations in .h (or .hpp) and implementation into .cpp.
I know about two main reasons ( maybe there are others ):
Compilations speed ( you do not have to ...
0
votes
1
answer
584
views
Performance and maintainability of making Java calls in "then" of Drools
I'm working on a drools project where every .drl file is created dynamically from velocity template. I've written every calculation and operations to be performed after successfull condition check in ...
0
votes
0
answers
339
views
Can Hiera lookups be done in a module?
I have a service implemented in Java which depends on 3 property files. I have defined 'define' for each of the property file in a common properties module and consuming them from service specific ...
2
votes
1
answer
432
views
When to use Microsoft Reporting Services [closed]
These days I’m having a training in Microsoft Reporting Service. Although it’s a good tool but I can’t find any examples that using it will be useful. To me is always better implementing reports using ...
2
votes
1
answer
2k
views
Is there a way to query Oracle DB server name and use in conditional compilation?
I got bit trying to maintain code packages that run on two different Oracle 11g2 systems when a line of code to be changed slipped by me. We develop on one system with a specific data set and then ...
0
votes
3
answers
605
views
How to exit if and try/catch and branch elsewhere (like a goto) in Java?
Is it possible to improve this Java code by not using labels (and not repeating too much code or creating too many methods)?
void func() {
Object r;
Object s;
if (r == null ) {
...
1
vote
2
answers
1k
views
Adding tombstones in python
EDIT: Apparently what I'm talking about is not called a tombstone. I got that term from this video: https://www.youtube.com/watch?v=29UXzfQWOhQ
I'm working on a complex django webapp, and recently I ...
2
votes
2
answers
407
views
Choosing value in SQL query vs (Java) code
I need to choose one of three values of an integer using the value of a column on a nullable column of a table.
There are at least two approaches: 1) use SQL to do all the work: test null values, and ...
0
votes
2
answers
985
views
How to implement a retry After logic?
I was recently working on an application and have a use case where I return back a set of responses to clients e.g. ALLOW, DENY and PENDING.
Let's say if the response returned by the service is ...