PC Pro (Digital)

PC Pro (Digital)

1 Issue, February 2021

Also available on
Zinio Unlimited logo
1-month free trial

Get unlimited access to this article, this issue, + back issues & 5,000+ other magazines.

Renews at just $8.99/month after trial.

Cancel anytime.
Learn more

“There was some date-checking going on–presumably to stop you entering a year during the Black Death”

Jon’s patience is tried by Covid-testing code, before he decides to replace his trusty all-in-one iMac with something small but perfectly formed
“There was some date-checking going on–presumably to stop you entering a year during the Black Death”
Writing good code is hard. As the old joke goes: if it were easy, everyone would be doing it. Part of writing good code is defining the use cases, the allowable input data and the expected output ranges. At the lab, we’re heavy users of conditional cell formats in Excel: define an acceptable range for a result and highlight it if it goes out of range. It may not be perfect, but it can make it obvious that something is wrong, either due to a typo or an unexpected but correct input. Indeed, I’d go so far as to say that any sort of numerical handling in an app or spreadsheet should be liberally smothered with appropriate handling and highlighting. It should be part of the basic techniques that we learn…
You're reading a preview of
PC Pro (Digital) - 1 Issue, February 2021

DiscountMags is a licensed distributor (not a publisher) of the above content and Publication through Zinio LLC. Accordingly, we have no editorial control over the Publications. Any opinions, advice, statements, services, offers or other information or content expressed or made available by third parties, including those made in Publications offered on our website, are those of the respective author(s) or publisher(s) and not of DiscountMags. DiscountMags does not guarantee the accuracy, completeness, truthfulness, or usefulness of all or any portion of any publication or any services or offers made by third parties, nor will we be liable for any loss or damage caused by your reliance on information contained in any Publication, or your use of services offered, or your acceptance of any offers made through the Service or the Publications. For content removal requests, please contact Zinio.

© 1999 – 2025 DiscountMags.com All rights reserved.