Whenever people don’t use exceptions they either (a) neglect error handling completely or (b) double or triple their LoC to (usually) implement what exceptions would have done or (c) some hybrid of the first two were error handling is partially implemented but the LoC doesn’t get bloated as much.
“Exceptions suck” is one of those widely held bad opinions that claims to be contrarian in software dev right up there with “OO sux”. Sure exceptions suck in C++ but that’s basically “C++ sux” and the cost of the stack traces is worse that I wish it was but one the defining traumas of my career was typing in a C program from Byte magazine and noticing how the clear logic was defaced by error handling code and how I felt like I’d come home when I started coding in Java and I was no longer 3x my code but rather it was more like 1x + constant.
PaulHoule•1d ago
“Exceptions suck” is one of those widely held bad opinions that claims to be contrarian in software dev right up there with “OO sux”. Sure exceptions suck in C++ but that’s basically “C++ sux” and the cost of the stack traces is worse that I wish it was but one the defining traumas of my career was typing in a C program from Byte magazine and noticing how the clear logic was defaced by error handling code and how I felt like I’d come home when I started coding in Java and I was no longer 3x my code but rather it was more like 1x + constant.