Skip to main content

Cay Horstmann

Cay Horstmann is author of Core Java (Sun Microsystems Press 1996-2009), Enterprise Java for Elvis (Sun Microsystems Press, to appear), and co-author of Core JSF (Sun Microsystems Press 2004-2009) Cay is professor of computer science at San Jose State University. He is a computer science series editor at Prentice-Hall and a frequent speaker at computer industry conferences. For four years, Cay was VP and CTO of an Internet startup that went from 3 people in a tiny office to a public company.

 

cayhorstmann's blog

The Next Big JVM Language

Posted by cayhorstmann on September 24, 2010 at 6:47 AM PDT

Stephen Colebourne has a very interesting article on the Next Big JVM Language (NBJL). The comments are good too. (I was going to add this as a comment to his blog, but it was rejected as spam. Maybe jroller is onto something...)

PrimeFaces works great with JSF 2.0/NetBeans 6.9

Posted by cayhorstmann on September 13, 2010 at 12:15 AM PDT

In 2002, JSF was introduced at Java One as “Swing for the Web”. The vision was that you would compose professionally designed components into web pages, add a bit of Java glue code, and presto, you would have a web app without having to worry about HTTP or the DOM.

A puny Java 7 isn't the end of the world

Posted by cayhorstmann on September 9, 2010 at 3:54 AM PDT

Mark Reinhold just published a blog stating what has been painfully obvious to everyone following the JDK 7 development: There is no way that it will ship 2010. He thinks that mid-2012 would be realistic.

Scala, JSF 2, and NetBeans

Posted by cayhorstmann on September 4, 2010 at 1:08 AM PDT

I am working on a web site that will help students practice their Scala programming skills.

Independence Day for Java?

Posted by cayhorstmann on September 1, 2010 at 7:11 PM PDT

I am on sabbatical in Vietnam right now, and today the country celebrates independence day. (On September 2, 1945, Ho Chi Minh gave his declaration of independence speech.)

The Horstmann Brace Style

Posted by cayhorstmann on June 28, 2010 at 3:31 PM PDT

Now here's a topic on which everybody has an opinion—brace styles. One common style is named after Kernighan and Ritchie:

if (x < 0) {
   printf("Negative\n");
   x = -x;
}

Another one is named after Eric Allman:

JSF and Power Windows

Posted by cayhorstmann on June 27, 2010 at 6:22 AM PDT

My dad is visiting, and he just picked up his rental car. He proudly announced that he got a good deal on a compact car without power windows.

What's wrong with power windows? Nothing, of course, until they break. Then it becomes expensive to diagnose and fix the problem.

Another Java Web Start Pitfall

Posted by cayhorstmann on May 28, 2010 at 12:45 PM PDT

Yesterday, I installed shiny new Ubuntu Lucid Lynx on a shiny new laptop. This morning, I launched a Web Start application, and I got the following screen:

Look at the weird font. And the double checkbox.

Transforming an XML Tree with Scala Partial Functions

Posted by cayhorstmann on May 16, 2010 at 8:29 PM PDT

In my last blog, I outlined how I found the Scala XML library a pleasant solution for unpleasant XML format conversion jobs. In those jobs, I had to completely transform the document from one grammar to another.

XML Processing with Scala

Posted by cayhorstmann on May 16, 2010 at 8:31 AM PDT

A few months ago, I had one of those unpleasant format conversion jobs. I had about 1,000 multiple choice questions in RTF format and needed to import them into Moodle.