I recently had to lay off a couple of people in my department (part of a larger cut overall) and it is honestly the hardest thing I've ever been through in my professional career.
The only saving grace is that, as developers, they could (and did) go right out and get another job immediately. Such is the way of the software industry.