What is an ORM, how does it work, and how should I use one? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Closed 2 years ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Someone suggested I use an ORM for a project that I’m … Read more

Why are floating point numbers inaccurate?

Why do some numbers lose accuracy when stored as floating point numbers? For example, the decimal number 9.2 can be expressed exactly as a ratio of two decimal integers (92/10), both of which can be expressed exactly in binary (0b1011100/0b1010). However, the same ratio stored as a floating point number is never exactly equal to … Read more

What’s the best name for a non-mutating “add” method on an immutable collection? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Closed last month. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Sorry for the waffly title – if I could come up with a concise title, … Read more

What does ‘foo’ really mean? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Closed 1 year ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. I hope this qualifies as a programming question, as in any programming tutorial, you … Read more

When should I use Debug.Assert()?

I’ve been a professional software engineer for about a year now, having graduated with a CS degree. I’ve known about assertions for a while in C++ and C, but had no idea they existed in C# and .NET at all until recently. Our production code contains no asserts whatsoever and my question is this… Should … Read more