Skip to main content
gnasher729's user avatar
gnasher729's user avatar
gnasher729's user avatar
gnasher729
  • Member for 10 years, 3 months
  • Last seen this week
127 votes

Term (or "pattern"?) for "Do something if it's not already done"

111 votes

Why do so many standards for JSON API response formats contain a "success" property in the response body instead of just using HTTP status codes?

76 votes
Accepted

Is passing arguments as const references premature optimization?

76 votes

Would unit tests have helped Citigroup to avoid this expensive mistake?

72 votes

Why are reproduction steps helpful for fixing software bugs?

68 votes
Accepted

Is it common practice to validate responses from 3rd party APIs?

58 votes

What factors should influence how I determine when to abandon a small project with a friend?

48 votes
Accepted

Sufficient conditions for refactoring

43 votes
Accepted

How can I prevent header hell?

42 votes

Should I raise an exception/error when an optional argument is used but is not necessary?

41 votes

Is putting general-use functions in a "helpers" file an anti-pattern or code smell?

39 votes

Should I check if something exists in the db and fail fast or wait for db exception

38 votes

Code review from domain non expert

37 votes
Accepted

How to represent a set in JSON?

37 votes

Why is "diamond problem" a problem? Why doesn't the child simply call both parent's methods sequentially? Why is a thing with solutions a problem?

36 votes

Developer insists if statements shouldn't have negated conditions, and should always have an else block

36 votes

Recommended HTTP status code for "plan limit exceeded" response

35 votes

Will a computer attempt to divide by zero?

32 votes
Accepted

Is it bad practice to compare string representation on an object instead of its properties during unit tests?

29 votes

New developer can't keep up with branch merges

29 votes

I changed one method signature and now have over 25,000 errors. What now?

27 votes

Rationale to prefer local variables over instance variables?

27 votes

Is it better to check `c >= '0'` or `c >= 48`?

25 votes

Should generated documentation be stored in a Git repository?

25 votes

Should I record a bug that I discovered and patched?

24 votes

My boss asks me to stop writing small functions and do everything in the same loop

24 votes

Is it the correct practice to keep more than 10 years old spaghetti legacy code untouched without refactoring at all in big product development?

22 votes

Do seasoned developers still have to deal with merge conflicts?

22 votes

"Write an Assembler in C." Why writing a machine code translator for a low level language in a higher level language?

22 votes
Accepted

Is it bad practice to use hyphens in JSON keys?

1
2 3 4 5
59