[PATCH] shrink last_char_is function even more

dietmar.schindler at manrolandgoss.com dietmar.schindler at manrolandgoss.com
Wed Sep 2 12:23:16 UTC 2020


> -----Original Message-----
> From: busybox <busybox-bounces at busybox.net> On Behalf Of Tito
> Sent: Monday, July 20, 2020 1:58 PM
> To: busybox at busybox.net
>
>> I for myself decided for being defensive and this until today
> payed off for my little personal codebase.

How have you been able to determine that this "payed off"?

> >  Checking for NULL "just in case" is defensive programming, which is
> > very bad. It means the programmer does not know exactly what the
> > function contracts are: it would be better named "sloppy programming".
> > Please don't do this.
> >
> > --
> >  Laurent

--
Regards,
Dietmar Schindler
________________________________
manroland Goss web systems GmbH | Managing Director: Franz Kriechbaum
Registered Office: Augsburg | Trade Register: AG Augsburg | HRB-No.: 32609 | VAT: DE815764857

Confidentiality note:
This message and any attached documents may contain confidential or proprietary information of manroland|Goss. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please immediately notify the sender and delete the message from your system. All liability for viruses is excluded to the fullest extent permitted by law.
________________________________


More information about the busybox mailing list