Thread: Perfect Python
View Single Post
Old Nov 16th, 2006, 6:27 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I know you have that interest, Arevos. I think you might agree that some of the forms of some of the abstractions (generators, etc.) approach obscurity without resulting in leaner code or clearer thought. I'm not criticizing Python specifically. There was a phase in the lifetime of C, for instance, that did the same thing. That's why I mention a peak, because there's an inevitable tradeoff. Rapid development, in these times, is often more valuable than machine/performance resources, but if one has to strain to develop thought habits, whether upwards or downwards, one may not reap the benefits in a timely and cost effective manner. A cursory perusal of some of the examples in this forum will show a tendency to reduced text without a real result in either enhanced performance or enhanced production (presuming one ignores the few additional typing strokes).

There is little question, however, that pushing these envelopes, even without commercial gain, will often result in enhanced methods down the road. Those WILL (perhaps I should say MAY), eventually, result in gains. Meanwhile, the present day coder has to strike a balance.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote