I used to be told that "linear" refers to things that follow the concept of a "line" but recently I have been introduced to concepts that use the term "linear" in ways that aren't as easily comprehensible such as "linear generator" or "linear predictor".
I'm not looking for the specific meaning of those terms but what intuiton can you share regarding how you treat something when its described to be "linear", say you didn't know what linear code meant but I approached you about linear code what sort of image would you start with?
Thank you.
Your question reminds me of a very good electrical circuits professor, far back in the eighties of the 20th century. The first day we met him, he started by describing how we should study a scientific topic (and I'd have followed more scrupulously his advices) and then explained us the various hypotheses which lay at the basis of basic circuit theory. Talking of linearity, He said:
A formal description
Definition 1 (Newcomb [1], §1.1, p.7). A system is a binary relation (in the set-theoretical sense) between two sets of variables $X$ and $Y$, i.e. it is a subset of their cartesian product $X\times Y$.
Thus a system $\mathscr{S}$ generally has the following structure $$ \mathscr{S}=\big\{ (x, y)\in X\times Y: x\mathscr{R} y\big\} $$ It is customary to write $x \mathscr{R} y$ in the equivalent form $(x,y)\in \mathscr{S}$. Now, in order to define what a superposition principle means we require that both $X$ and $Y$ are vector spaces (defined on the same field $\mathbb{K}$ in order to simplify the exposition) in order to formalize the intuitive fact that "causes" and "effects" can be "added" and "multiplied by constants". Now we are ready to define what the superposition principle is:
Definition 2. A system $\mathscr{S}$ satisfies the superposition principle if
Now, if we look at the second one of the above relations and remember the meaning of the relation $(x,y)\in \mathscr{S}$ we may guess because systems for which the superposition principle holds are called linear: precisely we see that a relation $\mathscr{S}$ for which the superposition principle holds contains each line passing through each of its point $(x,y)$ and thus in this sense is "linear". This is very explicitly seen in the simplest case where $\dim X=\dim Y=1$ and $\Bbb{K}=\Bbb{R}$, depicted here:
Final note
$X$ and $Y$ may be any vector space of physical quantities and the system may be time-(or any other parameter) variant, it may present hysteresis or any other "wild" behavior: therefore it is reasonable to suppose that definition 2 may possibly cover the core content of the linearity concept.
References
[1] Newcomb, Robert W., Linear multiport synthesis, New York: McGraw-Hill, 1966, pp. 397, (see its citation classic review).