68 questions
0 votes
1 answer
30 views
Element gets white gradient transparent during drag-bug behaviour
I’m working on an Angular 15 application that uses PrimeNG v15 and Angular CDK for drag-and-drop functionality. When I drag a row element, the drag preview shows a white gradient overlay, making the ...
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 ...
0 votes
1 answer
59 views
How to manage multiple uses of a model in an application?
I'm currently implementing an application and have for example a Customer model that's used in several different parts of the application. Each part only uses a subset of the properties from the ...
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
0 answers
266 views
How do I ensure that the correct job bookmark is being applied to the correct job when passing different job parameters to the same job in AWS Glue?
I am utilizing AWS Glue jobs and want to utilize the job bookmarking feature. Right now, I checked the 'enable job bookmarking' box within AWS. However, I use the same Glue job when passing different ...
1 vote
2 answers
344 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 ...
0 votes
1 answer
80 views
Should We Centralise the components in ReactJs?
I have a question. I am making a react-application for a major industry, which contains a huge number of components. But I have found that most of my components utilised the same functionalities . For ...
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/...
1 vote
0 answers
51 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 ...
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 "...
1 vote
1 answer
339 views
What is the best way to fix a Oracle Query performance in production? Changing application code? Using plan baseline?
Let's assume there is a C++ application executing a specific SQL query on Oracle database. This query was working fine for last couple of years in production at a customer's environment, but suddenly ...
4 votes
1 answer
102 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 ...
1 vote
1 answer
58 views
Several TextViews or Concatenated Strings?
Approach 1: In an android app there is shown a duration TextView (like: "2 h 45 m") and another TextView with number of Stops (like: "Stops: 15"). Between them is another TextView (" | ") to separate ...
0 votes
2 answers
84 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 ...
4 votes
1 answer
305 views
Does keeping cyclomatic complexity between 5-10 makes unit testing easier?
I'm planning to keep track of cyclomatic complexity for method and classes in between 5-10. Will it be easier to write unit tests if we keep it in that range? Does it help us write effective unit ...