[ale] [OT] Defensive Code matters

mrmthorntonlinux at gmail.com mrmthorntonlinux at gmail.com
Sat May 6 12:07:46 EDT 2017


Yes.  I've learned to test for impossible conditions. They occur more 
than I expect.


On 03/23/2017 08:47 AM, leam hall wrote:
> I paid an invoice early this morning with PayPal. Unfortunately I 
> typo'd the zip code and the form reset saying I needed to re-enter. 
> That's fine, I typed slowly and got it right the second time.
>
> However, the application encumbered the full amount both times, 
> signficantly reducing my PayPal balance. I've contacted the invoice 
> company and the vendor, so that's not as much of a problem yet.
>
> When you code, do so defensively. In this sort of case gas stations 
> will often debit USD 1 to ensure the transaction is possible, and then 
> do the rest of it later. Right now the invoice processor has given me 
> a bad feel for their coding capabilities. They may be smart, but are 
> they thinking?
>
> Leam
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20170506/96f15562/attachment.html>


More information about the Ale mailing list