Saturday, September 24, 2005

Unix for Mac OS X Tiger - book released

My book "Unix for Mac OS X" is now out in a new edition, completely revised for OS X 10.4 (Tiger).

This book is a very complete beginner's guide to Unix. The book assumes no prior Unix experience and yet provides more detail than any other beginning Unix book of which I am aware. In my not-so-humble-opinion the book is probably the best beginners guide to Unix on the market.

The book is over 500 pages and provide great detail on the Unix layer of (aka Darwin.)

The book teaches you how to get to the command line, to edit files using a command line editor, to deal with Unix permissions (an entire chapter on that), and so on. I'll post a table of contents in a later posting.

Buying it:

Saturday, September 17, 2005

Unit Testing in Perl

I've been using the Test::Unit module for creating unit tests and I like it.

The most common module for creating Unit Tests is probably Test::More. For me, there are two important advantages to Test::Unit

1. In Test::Unit each test is actually a subroutine, so the variables etc. you create for one test are isolated from those created for other tests.

2. Test::Unit automatically runs a method called setup() before each test,a nd teardown() after each test, which is useful for things like populating a test database, etc.