Skip to main content
sara's user avatar
sara's user avatar
sara's user avatar
sara
  • Member for 9 years, 1 month
  • Last seen more than 1 year ago
29 votes

Should coding best practices always be used

28 votes
Accepted

Why use a higher level language?

16 votes

Role and importance of static method in OOP

14 votes

Is there any reason to use a Func over a method?

12 votes
Accepted

Should I have code that only exists for testing?

9 votes

How many injections is acceptable in one class when using dependency injection

9 votes

Value of using private methods vs all public in classes for internal software for ease of unit testing

8 votes
Accepted

Creating instances of an interface through a static method

8 votes

A very basic question about whether I should check for null and throw NPE?

8 votes
Accepted

Unit testing / How to validate private fields of a newly created object?

8 votes

Is implementing IEnumerable required to use foreach on collections?

7 votes

C# Design, many properties, complex constructor and equality

5 votes

Is an empty class in some cases correct

3 votes

Single responsibility: how does this code cause problems?

3 votes

Is it a good practice to use smaller data types for variables to save memory?

3 votes

Wouldn't it be beneficial to write tests during code review?

3 votes

Should I use static classes for methods that will do common tasks and would be called through out my application?

3 votes

When to use interfaces (unit testing, IoC?)

2 votes

Best way of writing comments in code

2 votes

How to deal with misconceptions about "premature optimization is the root of all evil"?

2 votes

How to deal with customer specific code

2 votes

Private string constants for map keys

2 votes

Modularity vs Polymorphism (OOD main concepts)

2 votes

Advice: Switching to MVC from Webforms Web designer vs UI designer

2 votes

In C# Is using private constant strings better than using strings directly in the code?

2 votes

Is the algorithm more important than the programming language?

1 vote

Should <= and >= be avoided when using integers, such as in a For loop?

1 vote

Should every object know how to present/draw themselves?

1 vote
Accepted

Returning a variable or a return code from a function

1 vote

Should there be unit tests for complex regular expressions?