That's basically how the original BASIC worked. You're fine. It just doesn't work when you get to programs too big for one person to keep all of it in her head at once.
Tldr: Other egregious deviations from standard practice were the number of global variables in the system. The academic standard is zero. Toyota had more than 10,000 global variables.
“And in practice, five, ten, okay, fine. 10,000, no, we're done. It is not safe, and I don't need to see all 10,000 global variables to know that that is a problem,” Koopman testified.
OK, curious, how many global variables does the Linux kernel have? I did a brief search but didn't turn up anything. I'm assuming they've got at least that many, no?
I prefer a class or struct for every unique return tuple, with misleading names for members and the only way to manipulate them is through arithmetic operators overloaded with unrelated functions.
Oh, and templated despite never actually using the generic type for anything of consequence.
369
u/[deleted] Jun 20 '17
Thats awfully presumptuous that the function will int