Safety-critical software. I've done some work on air traffic control systems and medical equipment and enjoyed it.
What languages do those industries use?
I think a lot can be learned from that industry.
1. Write defect free software from the get-go
2. Take your time
There's some really good tools out there to help meet DO-178B and beyond. In particular I'm a fan of the Spark toolset, recently GPL'ed.