Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Chess Board Single Loopby davido (Cardinal) |
on Oct 03, 2013 at 23:39 UTC ( [id://1056817]=note: print w/replies, xml ) | Need Help?? |
In week one or two of intro to CS at a community college level, students may not have been introduced to the concept of arrays, nested loops, unpack templates, map, and so on. However, anyone with grade-school math in their past understands remainders with integer division (ie, the modulus operator). What's amazing is that such a simple thing, taught in 4th grade, is useful to low-level-language programmers even today when using arithmetic to simulate multi-dimensional structures in flat memory. Dave
In Section
Seekers of Perl Wisdom
|
|