Tagged Questions
14
votes
5answers
946 views
Is code ownership a code smell?
This is something I've been thinking about ever since I read this answer in the controversial programming opinions thread. And it has been discussed a bit in other threads, such as this one, but I ...
12
votes
10answers
2k views
About empty line of code
Why do my colleagues hate it when I add an empty line of code?
Sometimes I add a few lines to see when a method ends and another one starts more easily.
12
votes
13answers
1k views
how to find out if spelling mistakes in source code are a serious issue or not?
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
...
8
votes
11answers
3k 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 ...
7
votes
2answers
430 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 ...
4
votes
4answers
264 views
Correct alignment when outcommenting code
Suppose I have some code
void some_block(void)
{
some_statement_1();
some_statement_2();
some_statement_3();
}
Now I wish to out-comment statement #2, but here I never can find a way ...
2
votes
2answers
181 views
Writing/discussions about the aesthetics of code? [closed]
I'm looking for considerations of the questions "Can code be beautiful?" and "What makes code beautiful?"
Examples would include:
This academic paper: Obfuscation, Weird Languages, and Code ...
1
vote
1answer
200 views
How to quantify benefits from a programming training?
I'm conducting a programming training for 3 months. Details in this link - Programming Training Details.
My question is "How do we quantify benefits from such training?".
I think the two important ...
1
vote
2answers
213 views
Prevent code from getting mess
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 ...
0
votes
5answers
331 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 ...
0
votes
2answers
138 views
Does this status show a green signal?
I have done this static code analysis with Code Analyzer. Is it a green signal or should I improve my coding standards?