On Mar 12, 11:13 pm, "Leigh Johnston"<le...@i42.co.uk> wrote:
"Ian Collins"<ian-n...@hotmail.com> wrote in message
[...]
Actually I think embedded software is one of the exceptions
where a higher degree of defensiveness is required
(especially where safety is a concern) and a reboot is
usually the best outcome for unexpected state. On the
other hand I have worked in the mobile phone industry and
from what I can recall we didn't use release mode asserts
much.
I think it depends on where your program is situated. If
it's in the phone itself, I can see not using asserts much,
except maybe in a very few of the critical parts. A mobile
phone, today, is pretty much the same thing as a games
console:-). But the software I've seen on the server side
definitely makes extensive use of asserts; if anything goes
wrong, you want to fail brutally, so that the backup systems
can detect the failure and take over.
fixed line) networks. The device in question can shut down