All Questions
5 questions
9
votes
4
answers
1k
views
Warn about 3rd party methods that are forbidden
Note: This question refers to code written in Java or C#.
I am managing a couple of large projects where we have discovered issues (not necessarily bugs) with some 3rd party/SDK methods and have ...
6
votes
3
answers
1k
views
Is it bad idea to use flag variable to search MAX element in array?
Over my programming career I formed a habit to introduce a flag variable that indicates that the first comparison has occured, just like Msft does in its linq Max() extension method implementation
...
2
votes
2
answers
649
views
How to set up something like an integration server that measures the quality of code and reject the code if the score is below a certain number?
Even if I don't like enforcing people to do things (and I believe that it may decline the productivity and cause anger), I really want to enforce good coding style.
Is there a way to set up ...
1
vote
3
answers
397
views
Using prefix/postfix increment operator for simple incremental array access rather than actual index numbers
I cannot decide which method is better with consideration of both readability and fault-tolerance.
Method #1:
Object[] objects = getArrayOfKnownLength();
int i = -1;
someMethod(objects[++i], objects[...
1
vote
3
answers
668
views
What arguments are there to use a coding style for each distinct language? [duplicate]
I recently had a discussion about our coding style for C# projects. Two things in particular were very hard to agree upon.
Method Naming
C# has the de-facto standard of naming (at least public, not ...