>>4
Yes, let's see if it's "fucking ugly" or not, Javafag. I've used common Python conventions for a full Pythonic effect.
errors = []
if not LuhnCheck(ccard.number) and ValidateCCNum(ccard.type, ccard.number):
errors += ['Invalid credit card number']
if not ValidExpDate(ccard.date):
errors += ['Invalid expiry date']
return ', '.join(errors)
As for you, lol @ Javafag, lol @ Hungarian, lol @ stupid getters, lol @ unnecessary and completely pointless parens such as the first pair (not sure about the language?), lol @ hackish logic, lol @ readability (or lach thereof), lol @ maintainability (what if you want to add 4 more possible errors?), lol @ ENTERPRISE.