All Questions
Tagged with code-quality source-code
19 questions
2
votes
3
answers
645
views
How to track temporary fixes
Whenever I do temporary fix I want it to really be temporary.
However, there is no way to come back to it later, as the fix might be a part of a bigger issue.
Let's imagine that we have for some ...
1
vote
2
answers
338
views
How to find already existing code | How to arrange code in a way it can be found again [closed]
I'm refactoring the framework of our company, trying to fix the issues we had in the past.
We're a team of 6 developers, and we have various needs and issues in regards to tidying up our framework.
...
-3
votes
1
answer
430
views
Is throwing exceptions in Debug mode a bad idea? [closed]
I am working in an iOS project which have two schemes enabled from configurations,
Release
Debug
As you know Debug scheme is used for developers while developing features and testing etc. However, ...
3
votes
3
answers
791
views
Is there a way to have four possible outcomes without repeating the two conditions? [duplicate]
In a generic sense, my question goes something like this:
if (p) {
if (q) {
a();
} else {
b();
}
} else {
if (q) {
c();
} else {
d();
}
}
There ...
52
votes
9
answers
11k
views
Bad sign if nobody can comprehend one's code? [duplicate]
If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...
0
votes
1
answer
3k
views
How to present code in academic work?
Actually, I'm writing my undergrad thesis, that consists in analysing the BitTorrent algorithm and see its application on Transmission client as an example of implementation.
Reading through its code,...
20
votes
9
answers
3k
views
What exactly makes code "clean"? [duplicate]
I am an intern at a small software company, doing typical grunt work. Many tasks that the actual developers are doing are above my head however I finally got to see some real "action" and write some ...
2
votes
2
answers
1k
views
Prevent code from getting mess [duplicate]
I am a student and a freelance programmer. These days I am developing a software in VB6 which has recently crossed 100KB of source code.
The main problem, I face is, many times I have to refactor my ...
3
votes
1
answer
383
views
Distinguishing repetitive code with the same implementation
Given this sample code
import java.util.ArrayList;
import blackjack.model.items.Card;
public class BlackJackPlayer extends Player {
private double bet;
private Hand hand01 = new Hand();
...
18
votes
11
answers
43k
views
Why is using System.out.println() so bad? [closed]
Of course, it is very good use to use a logging framework for the error messages or warnings. But sometimes I use System.out.println() if I want to try something new in a short time.
Is it really so ...
1
vote
5
answers
1k
views
Does "Property" in C# cost much?
I have a class created in some namespace, like SomeNameSpace.SubNameSpace.StaticClassName
Here is a code snippet from other code file where I want to use this class many more times, so I created a ...
54
votes
7
answers
4k
views
Is there something wrong with how we're doing version control?
I work with a team of programmers as the business analyst. We just released version 2.0 of our product and are working on the next version to be released in 3 months (it's an internal software ...
15
votes
14
answers
5k
views
how to find out if spelling mistakes in source code are a serious issue or not? [closed]
I find very troubling amount of spelling mistakes I see everyday in our codebase, from which I will reproduce a very short but representative example:
ArgumnetCount
Timeount
Gor message from queue
...
5
votes
2
answers
597
views
Are there any opensource APIs that help analyze code?
As an example, let's say that I need to check for a certain usage of C# code and warn the user that that is a bad pratice. There are multiple usages that I want to detect, such as:
Resource not being ...
0
votes
5
answers
202
views
Automatic sorting of class/module members and its possible impact on productivity and code quality [closed]
Recently I saw some possibilities of some IDEs (via plugins) to sort members of their classes/modules based on some criteria, sou you could have everything sorted automaticaly no matter where you ...