The term “Context” in programming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. The community reviewed whether to reopen this question 7 months ago and left it closed: Original close reason(s) … Read more

Arguments or parameters? [duplicate]

This question already has answers here: What’s the difference between an argument and a parameter? (36 answers) Closed 9 years ago. I often find myself confused with how the terms ‘arguments’ and ‘parameters’ are used. They seem to be used interchangeably in the programming world. What’s the correct convention for their use? 12 Answers 12

Are there any legitimate use-cases for “goto” in a language that supports loops and functions?

I’ve long been under the impression that goto should never be used if possible. However, while perusing libavcodec (which is written in C) the other day, I was surprised to notice multiple uses of it. Is it ever advantageous to use goto in a language that supports loops and functions? If so, why? Please provide … Read more

Can every recursion be converted into iteration?

A reddit thread brought up an apparently interesting question: Tail recursive functions can trivially be converted into iterative functions. Other ones, can be transformed by using an explicit stack. Can every recursion be transformed into iteration? The (counter?)example in the post is the pair: (define (num-ways x y) (case ((= x 0) 1) ((= y … 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

Real world use cases of bitwise operators [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question What are some real world use cases of the following bitwise operators? AND XOR NOT … Read more

GOTO still considered harmful? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 7 years ago. Improve this question Everyone is aware of Dijkstra’s Letters to the editor: go to statement considered harmful (also here … Read more