• Post Reply Bookmark Topic Watch Topic
  • New Topic

Suitability for Production Environment People (Hot Seats)

 
Gopal Mariyappan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you followed any new way in helping the readers to grasp, remember and apply the things learned, in practical environment ?
 
Cay Horstmann
author
Ranch Hand
Posts: 172
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am not sure I understand your question. I don't know if I've come up with any new way of explaining Java, but I always try to keep my books practical by imitating something that I learned from the classic C book by Kernighan and Ritchie. In that book, every code snippet looks like it could have come from actual code. For a practitioner, this implicit context makes it very easy to grasp the point that the authors are making.

In contrast, quite a few books and blog article use what I call "gibberish code", with variables foo and bar, or fruit and vegetable classes, and the like. That code is really difficult to decipher because it has no context, and you tediously have to look at each statement in turn.

As an analogy, I heard that expert chess players can have one glance at a chessboard and remember the position of all the pieces *provided they came from an actual game*. With randomly positioned pieces, they can't remember a thing.

So, that's what I always try to do--come up with a context that you would have in a real application. For example, when explaining lambda expressions, I use comparators, event handlers, runnables. Not animals that bark or meow.

Does that help? If not, please ask again.

Cheers,

Cay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!