Skip to main content

Blog Archive for cayhorstmann during November 2010

I have students running Windows, Linux, and Mac OS X, and I like to encourage students to choose whatever platform makes them most productive. But I also like to be able to give out one set of instructions, grading scripts, etc. to everyone. Fortunately, bash is available everywhere, even on Windows, in the form of Cygwin. Of course, some students groan because Cygwin can be a pain, with the DOS...
When the time comes for my graduate students to write their project reports, I give them a long checklist of do's and don'ts. One of the more vexing issues is the code font. I am astonished how many people who have been programming for years are unaware that computer code is usually presented in a monospaced font, like this. Of course, they soon discover that their word processor has a Courier (...
When Oracle, in its Android lawsuit, accused Google of copyright violation, I didn't think this was going to stick. I was pretty surprised when the PolicyNodeImpl comparison made its rounds a couple of weeks ago. The complete “Exhibit J” is here. There was a flurry of idle speculation, much of which could have been avoided by a bit of research. It was pretty obvious that the Google...
I ran into this blog about making a pretty drawing in C# and F#. The task is to draw all lines between n evenly spaced points on a circle. The solution in C# is surprisingly hard to read because it intermixes control flow with the details of the graphics processing. The author's attempt at a “functional” version just translated the iterations to recursion, and it wasn't really any...