
Book: Doing objects in Visual Basic
Quote:
>BUT I hate it when authors give supposedly re-useable code and put in
>a little disclaimer something like this "of course a responsible
>programmer would implement error handling in the above example".
I agree completely with your sentiment.
That said, I find Deborah Kurata's book to be quite good in this
respect. The examples are big enough to have some relevance to the
real world. The MSoft courses, OTOH, are so trivialised that it's
difficult to extend them into anything useful. I often find that
students on an MSoft course will ask me to extend an example to solve
a problem they've brought with them, and we often can't do it. The
approach that MSoft have taken is so simplistic that it's incapable of
being more than a basic syntax example.
I'm teaching this week, and working on some code examples right now.
I'm using cut-down "live code" and it's quite difficult to use this
stuff _because_ it has full error handling. The code is so bloated by
the need to deal with the one-in-a-million chances that it's difficult
to see just what the crucial section is. This is particularly the case
when you're dealing with people who are really new to VB.
Quote:
>Must be nice to be an author and not have to deal with the reality of
>error handling!
They have other problems to worry about. At least this book points out
what is missing, many just ignore the question.
--
"Cut the second act and the child's throat"
- Noel Coward, on seeing the young Bonnie Langford on stage