MLUG: Re: [MLUG] good intro to programming for a teenager?
Re: [MLUG] good intro to programming for a teenager?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ah.. no ()'s
That does look a little weird.

That's kinda like looking at a QBASIC source (*.BAS)

My Coding morals came from CACC, When i was learning pascal.
i still use the coding morals for C, PHP, Perl and...
even HTML tags inside PHP code (Indenting HTML tags in the PHP indented
script).

I dont think its too bad,
I would just imitate the sample Source codes.

On Mon, 8 Aug 2005, Michael wrote:

I'd say Python is one of the easiest languages to learn and use. The bitch is unlearning all your bad habits programming in other languages taught you. It's a lot less painful though if you've already learned other non-C-like languages like LISP or Prolog. Otherwise learning Python will make learning those languages a little bit easier.

The real biggest hurdles are learning to use whitespace instead of braces and that you can't assign variables inside of an evaluation.

ie

if ( i = i - 1 ) {
print i;
}

becomes:

i = i - 1
if i:
print i


An extra line of code but it makes debugging and maintaining your programs MUCH easier. That lil kind of thing is what bugs most experienced programmers new to Python. It just doesn't allow you enough rope to hang yourself with. Of course all of us have our own lil complaints. I'm still fighting with them to add a switch statement and a ternary operator. :)


I've heard that python can be a Bitch to learn.



-- Michael <EMAIL:PROTECTED> http://kavlon.org


_______________________________________________ members mailing list EMAIL:PROTECTED http://mlug.missouri.edu/mailman/listinfo/members


_______________________________________________ members mailing list EMAIL:PROTECTED http://mlug.missouri.edu/mailman/listinfo/members