[Tutor] Simplicity vs. Speed

steve lonetwin@yahoo.com
Tue, 15 May 2001 15:03:55 +0530


Greetings Phil,
 As I read thru' ur mail, I realised exactly what u must be thinking/feel=
ing=20
right now after doing all that work....I've felt it scroes of times b'for=
e,=20
although through my experience as a progarmmer (not too much of it BTW) I=
've=20
learnt to keep the frequency with which these event occur few and so I=20
thought I might just share it with every.....click del all ye who art alr=
eady=20
bored :)...

ok, firstly, when I choose to program in a particular language I choose t=
he=20
language not only b'cos I know how to program in it, or b'cos that's y=20
progamming languages are for - to slove probles....but b'cos the language=
=20
lends itself towards solving the problem, what I mean is it offers featur=
es=20
that help me express the problem and it's solution clearly and elegantly=20
=2E..now what the heck does THAT ^^^^^^^ sh** mean...well lets take an=20
example...U R problem...it isn't quite clear (to me at least !! I'm slow =
;))
from u r mail, what exactly u r trying to achive but whatever it is ....s=
ince=20
u r using python...wud one particular feature of python ( dictionaries )=20
which is not available a the programmer of other languages (general comme=
nt=20
=2E.think C/C++..da..de..dum) be helpful in u r design ??
sumtin' like...
 dict =3D { 'Week1' : game1to10,
=09  'Week2' : .....
        }
 think in those terms....in terms of what the language offers...
I think I'm still not clear, so I'll say it as tho' u were sitting here i=
n=20
front of me...
<wildly gesturing>
 A programming language, is a proogramming language, is a progamming=20
language....variables, conditionals, iterators/loops, branching, classes=20
=2E.that's all.....what makes python different from perl=20
?<sincker>readability</snicker> python different from shell <thoughtful> =
data=20
structures ?? object orientation ? enhanced re's, tons if libs=20
</thoughtful>....stuff like that..
</wildly gesturing>

 N E WAYS first point is : Look at the language features

secondly, ram into u r head, the most simple/elegant/clean way to do sumt=
in'=20
is also ^^Always^^ the fastest way to do it .....if and only if, u design=
=20
well....don't ask me to justify that.....the only justification I can off=
er=20
is that, that's the case with me always...the cleanest turns out to be th=
e=20
fastest.....conversely, the fastest is bound to be elegant....if it ain't=
=20
then u designed wrong....<--------------------------------------\
                                                                |
I cud go on....tell u all that I learned....but I guess at this point
I'm way past n e 1's patience levels....so I'll bid u good luck and shut =
the=20
$%^# up right here
               |
Peace          |
Steve <--------|
--=20
||||||||||||||||||||||
|||||||||#####||||||||
||||||||#######|||||||
||||||||# O O #|||||||
||||||||#\ ~ /#|||||||
||||||##||\_/||##|||||
|||||#||||||||||##||||
||||#||||||||||||##|||
||||#|||||||||||||##||=09
|||/\##|||||||||##/\||=09
|/    \#########/    \=09
|\     \#######/     /=09
||\____/#######\____/|=09
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=09
"Unfortunately, those people who have nothing better to do than post on t=
he
Internet all day long are rarely the ones who have the most insights."

=2E...now did this mail seem sumtin' like that??
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D