[Tutor] What style do you call Python programming?
Dave Angel
d at davea.name
Sat Dec 10 03:20:10 CET 2011
On 12/09/2011 08:58 PM, Cranky Frankie wrote:
> I appreciate all the comments in this thread so far, but what I'm
> really looking for is what to call the style of programming where you
> have no direct branching via line numbers, statement names, and gotos.
> I'm finding that lacking these things that I've been familiar with in
> other languages is good, in that it forces you to really think through
> the best way to organize the logic.
>
> It seems to me that this is such a big departure from traditional
> procedural styled programming there ought to be a name for it, other
> than structured programming, since you can code that way even with
> line numbers, etc.
>
> I'd also be interested in reading the Python history file.
>
>
It was called structured programming long ago.
I don't understand your reluctance to use the name that has applied for
at least 35 years. Just because some of those non-structured languages
have survived, doesn't take anything away from the term procedural. You
can write object oriented code in hex if you really want, it doesn't
make raw machine language object oriented.
I think it was Djikstra that said that a programmer that has learned
BASIC has been ruined for life. And that statement was probably made
about 30 years ago.
And what has this got to do with Python? Pascal, C, and probably a
thousand other languages have at least encouraged structured
programming, long before Python came out. Python has lots more to offer
than the mere absence of a feature that has been obsolete for so long.
--
DaveA
More information about the Tutor
mailing list