Top "Language-agnostic" questions

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

Signed versus Unsigned Integers

Am I correct to say the difference between a signed and unsigned integer is: Unsigned can hold a larger positive …

language-agnostic integer unsigned signed
What are the lesser known but useful data structures?

There are some data structures around that are really useful but are unknown to most programmers. Which ones are they? …

language-agnostic data-structures computer-science
Is floating point math broken?

Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?

math language-agnostic floating-point floating-accuracy
Prefer composition over inheritance?

Why prefer composition over inheritance? What trade-offs are there for each approach? When should you choose inheritance over composition?

language-agnostic oop inheritance composition aggregation
How many bytes does one Unicode character take?

I am a bit confused about encodings. As far as I know old ASCII characters took one byte per character. …

string language-agnostic unicode encoding
What is the difference between a framework and a library?

What is the difference between a framework and a library? I always thought of a library as a set of …

frameworks language-agnostic libraries terminology
How Does Modulus Divison Work

I don't really understand how modulus division works. I was calculating 27 % 16 and wound up with 11 and I don't understand why. …

language-agnostic math modulo division
"Parameter" vs "Argument"

I got parameter and argument kind of mixed up and did not really pay attention to when to use one …

function parameters language-agnostic arguments terminology
Runtime vs. Compile time

What is the difference between run-time and compile-time?

language-agnostic runtime compile-time