Is there a programming language that is combination of Python andBasic?

Hendrik van Rooyen mail at microcorp.co.za
Sat Apr 18 05:44:41 EDT 2009


"baykus" <b...rki at gmail.com> wrote:


> I guess I did not articulate myself well enough. I was just looking
> for a toy to play around. I never suggested that Python+Basic would be
> better than Python and everyone should use it. Python is Python and
> Basic is Basic. I am not comparing them at all. I understand the
> merits of Python but that does not mean I can play with ideas?

Apparently this is not allowed by the CS thought police.

The reasoning is based on an Argument from Authority,
namely the Dijkstra link.

Now it looks to me when I read that article, that the jump
is deprecated because it leads to code that is difficult to
understand, which was based on the difficulty that Dijkstra 
had to construct a "co-ordinate system" for storing the state
of a program at any given line of code.  This was done 
without giving any reason as to why this should be important,
or even desirable, except towards the end where he wanted to
define instances in time when a count could conceivably be
off by one, and he asserted without proof that having jumps 
in the code makes this more difficult.  Even if this assertion
were to be provably true, it does not really follow that jumps
should be banned, but merely that one runs such a risk if one
were to use them.  Now to some minds, this "difficulty" may
not be a difficulty at all: 

Processors and interrupt service routines are storing the state
of multiple programmes at arbitrary points in the code, even 
as I type - and every one of those programmes include jumps.
It is a non - issue.

Mensanator had the same complaint based on difficulty 
earlier in this thread, when he described how he struggled
to untangle some spaghetti code.  He did not mention if
the spaghetti was actually doing it's job, bug free, which
IMO is the only rational test for the quality of a piece
of code, because it is the reason for its existence.  
The aesthetics are, like all aesthetics, a matter of opinion.

I do not agree with the reasoning that effectively says:
"If it is difficult to comprehend, it must be wrong"

If this were to be a tenet, then using the pickle module 
should be forbidden too, as it is a complex piece of 
code that (to me at least) is not easily understood on a 
first read-through.

So does that mean I must stop using pickles?

All Strength to Arnaud for his goto code!
I am looking forward to the gosub and return.
:-)

- Hendrik





More information about the Python-list mailing list