4 ms·
In this impressive document, Prof Astrachan also shows that he has an infinite patience. He explains (with great analogies) a huge pile of concepts along the wa
by espinchi 15y ago
In this impressive document, Prof Astrachan also shows that he has an infinite patience. He explains (with great analogies) a huge pile of concepts along the way, which wouldn't be necessary for a technical audience.
The points 13-16 explain in 400 words that even if
public static int abs(int i) { return i >= 0 ? i : -i; }
and
public static int abs(int a) { return (a < 0) ? -a : a; }
look similar, they are as different as two different implementations of Math.abs can be. Someone that has never seen a line of code could wonder how come they both use the words public, static, etc.
- teach 15y agoProf. Astrachan has written a lot of the material for the high-school Advanced Placement computer science course (which I teach), and I agree that he has a rare gift and we (in the APCS community) are blessed to have his involvement.