3 ms·
I haven't read through all of the author's content yet, but there is a certain benefit to using magic numbers in introductory material. Numbers impose very litt
by john_b 13y ago
I haven't read through all of the author's content yet, but there is a certain benefit to using magic numbers in introductory material. Numbers impose very little conceptual overhead on people, especially "familiar" numbers like 2048 or other common buffer sizes. This allows the reader to save their precious meatspace memory for storing the novel concepts the author introduces.
But it depends how the code is presented. "Here's an example of..." is different than "Here's how you should do..."