Software quality reflects how well a software conforms to given requirements (functional and non-functional), how much it shows characteristics like reliability, efficiency, security, maintainability.
Questions tagged [software-quality]
233 questions
9
votes
1 answer
When should I use @Component instead of @Service?
I've already read about each Spring annotation in What's the difference between @Component, @Repository & @Service annotations in Spring?
I know that @Component and @Service do almost the same inside the Spring Framework. The difference it's bounded…

R. Karlus
- 2,094
- 3
- 24
- 48
9
votes
4 answers
Java exceptions wrapping: bad practice?
Coming from a PHP world where there's only one way to write exceptions handling.. I found the wrapping of exceptions in Java a bit "ugly":
public void exampleOneException(String input) throws MyBusinessException {
try {
// do something
…

numediaweb
- 16,362
- 12
- 74
- 110
9
votes
4 answers
How to bring coordination between file system and database?
I am working on a online file management project. We are storing references on the database (sql server) and files data on the on file system.
We are facing a problem of coordination between file system and database while we are uploading a file…

Lock up
- 215
- 2
- 9
9
votes
2 answers
FindBugs - "may fail to close stream" when using ObjectOutputStream
I have this piece of code, which is to write an Ojbect to a byte array stream:
static byte[] toBytes(MyTokens tokens) throws IOException {
ByteArrayOutputStream out = null;
ObjectOutput s = null;
try {
out =…

Eugene
- 607
- 3
- 8
- 12
9
votes
3 answers
Is testing constructor too much?
Firstly, I will say that I come from the Java world (this is important, really).
I have been coding PHP for a while, one of the problems that I have encountered is that due to the lack of compilation, sometimes errors that could be easily detected…

Juan Antonio Gomez Moriano
- 13,103
- 10
- 47
- 65
9
votes
14 answers
What is the most convincing way to require formalized unit testing?
This certainly presupposes that unit testing is a good thing. Our projects have some level of unit testing, but it's inconsistent at best.
What are the most convincing ways that you have used or have had used with you to convince everyone that…

not-bob
- 815
- 1
- 8
- 23
8
votes
1 answer
SonarQube - how to specify last successfull analysis as Leak Period
We are using SonarQube 5.5 (latest to date).
Our project contains a lot of legacy code that wouldn't pass our desired Quality Gate, so we decided to ignore technical debt which is already there, but be strict about new changes.
So we are enjoying…

Ivan
- 9,089
- 4
- 61
- 74
8
votes
2 answers
Eslint config file from codacy
I'm using codacy to monitor code quality, but it would be nice to see what codacy will catch before a push. I see that it uses eslint and several other tools to decide what to catch. Is there a way to generate a .eslintrc config file from codacy?…

LBaelish
- 649
- 1
- 8
- 21
8
votes
4 answers
How would you measure code "quality" across a large project
I'm working on a quite large project, a few years in the making, at a pretty large company, and I'm taking on the task of driving toward better overall code quality.
I was wondering what kind of metrics you would use to measure quality and…

askheaves
- 745
- 1
- 5
- 9
7
votes
10 answers
How do you ensure that you as programmer have written quality C code?
I m looking to write some quality C code.
Can someone point me to some articles , websites..whatever
I need something with examples.
I have already seen and read K&R C book.
But times have changed, some one must have more to say on quality C…

linkedlist
- 313
- 4
- 8
7
votes
1 answer
How to simulate 120 concurrent users of a web application with real conditions?
How to you simulate > 120 concurrent users using a Load Test Framework such as JMeter? Real concurrency, as far as I understand, would be possible if I would use 120 servers or 120 CPU cores.
How did/do you test your web application or service…

Thomas
- 8,357
- 15
- 45
- 81
7
votes
7 answers
Embedded Software Defect Rate
What defect rate can I expect in a C++ codebase that is written for an embedded processor (DSP), given that there have been no unit tests, no code reviews, no static code analysis, and that compiling the project generates about 1500 warnings. Is 5…

geschema
- 2,464
- 4
- 30
- 41
7
votes
4 answers
How can a large number of developers write software together without either a cumbersome process or poor quality software?
I work at a company with hundreds of people writing software for essentially the same product. The quality of the software has to be high because so many people depend on it (not least the developers themselves). Because of this every major issue…

Reinstate Monica - Goodbye SE
- 3,528
- 5
- 41
- 64
7
votes
5 answers
How to measure robustness?
I am working on a thesis about meassuring quality of a product. The product in this case is a website. I have identified several quality attributes and meassurement techniques.
One quality attribute is "Robustness". I want to meassure that somehow,…

Stefan Hendriks
- 4,705
- 5
- 34
- 43
7
votes
7 answers
Coding Practice: What are your thoughts on a 1.7 Million LOC project?
I am listening to a panel discussion where a person mentions their 'engine' is not 1.3 but now is 1.7 million lines of code. That frightens me. I can't imagine that number of lines, the amount of modules, etc. I always felt that C++ doesn't handle…
user34537