Pete's user avatar
Pete's user avatar
Pete's user avatar
Pete
  • Member for 5 years, 6 months
  • Last seen more than a month ago
153 votes

Inside a for-loop, should I move the break condition into the condition field if possible?

70 votes
Accepted

Is constructing objects with null parameters in unit tests OK?

34 votes
Accepted

When to move a common field into a base class?

22 votes

Why is unit testing private methods considered as bad practice?

13 votes

How do you normalize coding style among multiple isolated developers?

7 votes
Accepted

How to resolve tasks completed from the backlog with no work done?

6 votes

How to deal with a not-yet-implemented method that will be done by a co-programmer?

6 votes
Accepted

Using static factory methods to prevent unwanted input

6 votes

How to serialze data that should be changed outside the program

6 votes

Best practices on testing a function based on third party service

5 votes
Accepted

When covariance becomes an issue, how can I restructure my code and still be clean?

5 votes
Accepted

When constructor chaining, which constructor should the others call?

4 votes

Does sending parameters around inside a class suggest that I should refactor to a new class?

3 votes

Should versions be bumped in dev branches or master branch?

3 votes

Where do I store user-defined business rules?

3 votes

If a method in class A needs extra dependency but not every client uses it, should I move it out of A?

3 votes
Accepted

Should I keep my web app front end completely backend agnostic

2 votes

How to keep developers informed about a code library in large organizations?

2 votes

Doing a membership check on a container vs having multiple ifs?

2 votes
Accepted

concept name(s): container of different types which can be used like a type

2 votes

Repeated Instantiation of the Same Class in a Method

2 votes

Is code being constantly rewritten and is it therefore pointless to worry about the quality of the early iterations of rewriting code?

1 vote

Store csv data as rows or columns in view of the needed processing?

1 vote

What abstraction to use for hiearchical sum from ordered list

1 vote

Release branches and trunk versioning

1 vote

Is judicious & plausible selection of class fields a valid refactoring step?

1 vote

Making hundred of cosmetic changes to the code at the last minute

1 vote

About modelling behaviour. More parameters on function, or new function?

0 votes

How to avoid many objects in constructors when many steps are performed by a class

0 votes

Private and Public version of repository with minor difference