67 questions
0
votes
1
answer
63
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
1
answer
63
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
170
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
287
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
360
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
92
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
64
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
52
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
558
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
356
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
109
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
72
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
88
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
315
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 ...
0
votes
1
answer
89
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?