If You Want To
by in Coded Smorgasbord on 2015-07-30We pick on date handling code a lot here, simply because there are so many ways to mess up date related code (because dates are hard). In a way, it’s almost like we’re cheating. Even smart programmers could mess that up. What about basic conditional logic? How hard could that be to mess up?
Well Jan L. came across this solution to a simple boundary check- if telegramType
is between 100 and 199, it is a payment type telegram.