Web development with Python 3.1

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Oct 28 10:38:44 CET 2009


Dotan Cohen a écrit :
>> Well, yes- but it's also DRY, and while DRTW (like the acronym, btw)
>> helps to prevent your code from being unreadable to someone else,
>> DRY helps to ensure that when you have to change something you
>> don't have to worry about changing it in 37 and a half other places
>> at the same time. Especially given how notoriously difficult it is to
>> do automated testing for web development, that's essential.
>>
> 
> That's what classes are for, no? Reuse code.

Nope. "classes" are an artifact of one possible approach of OOP, period.

> I fail to see how using a
> framework would reduce the need to use classes,

Why should it ?



More information about the Python-list mailing list