Top "Language-agnostic" questions

Use this tag for PROGRAMMING QUESTIONS that are independent of any particular programming language.

What is a lambda (function)?

For a person without a comp-sci background, what is a lambda in the world of Computer Science?

lambda language-agnostic computer-science terminology theory
Difference between pre-increment and post-increment in a loop?

Is there a difference in ++i and i++ in a for loop? Is it simply a syntax thing?

for-loop language-agnostic post-increment pre-increment
What's your most controversial programming opinion?

This is definitely subjective, but I'd like to try to avoid it becoming argumentative. I think it could be an …

language-agnostic
Equation for testing if a point is inside a circle

If you have a circle with center (center_x, center_y) and radius radius, how do you test if a …

algorithm language-agnostic geometry
What is a magic number, and why is it bad?

What is a magic number? Why should it be avoided? Are there cases where it's appropriate?

language-agnostic terminology magic-numbers
Should a function have only one return statement?

Are there good reasons why it's a better practice to have only one return statement in a function? Or is …

language-agnostic coding-style
What's the difference between an argument and a parameter?

When verbally talking about methods, I'm never sure whether to use the word argument or parameter or something else. Either …

parameters language-agnostic arguments terminology
Shortest distance between a point and a line segment

I need a basic function to find the shortest distance between a point and a line segment. Feel free to …

language-agnostic geometry distance line-segment
What is an NP-complete in computer science?

What is an NP-complete problem? Why is it such an important topic in computer science?

algorithm language-agnostic mathematical-optimization theory np-complete