Skip to main content
Adrian McCarthy's user avatar
Adrian McCarthy's user avatar
Adrian McCarthy's user avatar
Adrian McCarthy
  • Member for 13 years, 7 months
  • Last seen more than a week ago
29 votes

Are single-character constants better than literals?

13 votes

What is the point of unit tests?

9 votes

How does this switch statement do "multiple things"?

7 votes

How do you safely delete a piece of code that looks like it's never entered?

4 votes
Accepted

Why use multi-purpose getters that take an enum value, rather than separate getters?

4 votes

Never make public members virtual/abstract - really?

4 votes

Is it possible to build a system to generate UUIDs where every UUID is guaranteed unique?

3 votes

What data structure could a word processor use to map the user's caret position/text selection to its internal representation of the document?

3 votes

Should I choose repeated code in unit test or test logic? Can I avoid both?

3 votes

Should the solution be as generic as possible or as specific as possible?

2 votes

What to do when code submitted for code review appears to be too complicated?

2 votes

I never use pointers in my C++ code. Am I coding C++ wrong?

2 votes

Is there a name for the hierarchy of "trustworthiness" many engineers use while debugging?

1 vote

How to track C++ class traits?

1 vote

C/C++: Which conversion warnings make sense in practice?

1 vote

How to write correct loops?

1 vote

Calling full functionality private functions from public functions

1 vote

How can I efficiently write a complex if or switch condition that depends on a combination of two (or more) variables?

0 votes

How to avoid comments about one line of code for cleanliness

-1 votes

When to write a custom exception handler?