Tagged Questions
16
votes
14answers
3k views
How many mistakes does a good software developer make? [closed]
I am currently in a situation where a lot of people criticized me for making bugs (on my first local try - the first time I run the code for the first locally done test - , not on a committed repo ...
3
votes
2answers
132 views
Checking program robustness using static code analysis
(Building on this question)
If you have a static code analyser such as Checkstyle, is it possible to to relate any of the stuff that it checks for to actual robustness? Some of the things that ...
4
votes
5answers
447 views
What can go wrong with composing a method name out of a string?
I have a piece of code that composes method name to call from a string parameter. I don't feel it's a good thing to do but I'm not sure what can go wrong with this.
Here is a simplified snippet of ...
1
vote
1answer
217 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 ...
19
votes
9answers
1k 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
2answers
353 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 ...
4
votes
1answer
248 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();
...
9
votes
11answers
9k 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 ...
0
votes
5answers
391 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 ...
50
votes
7answers
3k 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 ...
13
votes
14answers
2k 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
...
1
vote
1answer
242 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 ...
7
votes
2answers
516 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 ...
1
vote
5answers
151 views
Automatic sorting of class/module members and its possible impact on productivity and code quality
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 ...
5
votes
5answers
947 views
Example bad code project to motivate refactoring / good design [closed]
This is sort of the opposite of Is there an open-source project that can be an example of well-written code?.
I am teaching software engineering to undergraduates and I would like a blob of object ...
13
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.
0
votes
1answer
1k views
C++ IDE and tools with Clang integration [closed]
Recently I've read this blog about Google integrating Clang parser into their code analysis tools
This is something in which C++ is at least a decade behind other languages like Java, but now that ...
21
votes
5answers
2k 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:
Your job is to put yourself out of work.
When you're writing ...
0
votes
2answers
142 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?
2
votes
2answers
305 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 ...
4
votes
4answers
314 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 ...