<p>Let's talk about various programming-related topics in a common "Lounge" thread. Everyone interested in programming is welcome to share ideas and suggest discussion topics. Just not people in AP Java.</p>
<p>Okay fine, AP Java people too. Let's get it going...</p>
<p>Cryptic Programming
What is your opinion on cryptic coding techniques such as</p>
<p>
!x%2
to test if a number is even or
while(<em>t++=</em>s++)
to copy a string? While admittedly more fun and gratifying, I feel that the main purpose is to frustrate novice programmers.</p>
<p>I wouldn’t exactly call the modulus operator or basic pointer operations cryptic. In general, you want to opt towards verbosity so your code documents itself, but for small scripts, it really doesn’t matter- you can be clever. Still, when you or someone else is going to be maintaining the code, or modifying it, or reusing it, getting clever doesn’t do anyone any good. Machine cycles are cheap- unless you’re making a large operation significantly faster, the speed increase from being clever is negligible.</p>
<p>Where are the best undergraduate CS programs located? There really aren’t any rankings so it’s hard to know without actually seeing the curriculum / visiting the school…</p>