Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python Enterprise Application Kit

Name: Anonymous 2007-09-28 6:54 ID:uTAkQTIE

The road less traveled is the way to the top.

http://peak.telecommunity.com/

Name: Anonymous 2007-09-28 9:01 ID:vGk48urQ

>>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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List