Bitten by the Python.
December 30th, 2010 § Leave a Comment
I’ve been bit by Python. Not a real snake; the programming language. I’ve said this before, but quite often I get really interested in trying to learn how to program. In this most recent round of interest I’ve been reading about Python. Usually it’s objective-c and iOS development, but for some reason Python has claimed my interest.
I keep thinking that I’m going to have a ton of things to say about what I’ve learned, but each time my mind comes up with nothing. It’s as if I’m looking at a baron desert landscape. I could say that I know how to assign variables, and make functions, but that’s not interesting.
What is interesting about Python, though obvious to experienced Python programmers, is that space matters. Indenting code is how you show that code is apart of a function, or control statement (if, while, for loops). At first I thought this was really dumb, but a book that I read pointed out that you normally indent code that is apart of a control statement anyway, why not just get rid of the braces that you see in just about any other language. Interesting. Took about two minutes for me to realize that, yeah, it’s alright to get rid of those braces…they aren’t really needed! Of course, this means that you really need to make sure that you are indenting correctly, but that’s a bit easier to catch than a missing closing or opening bracket.
My biggest problem I encounter when I get started learning to program is that I draw a blank on what I want to program. I get to a point that I know the basics, but then have a really had time thinking about what to make and if I somehow think of something to make I can’t get my tiny brain to think of a good way to program it.
*sigh*
I wish I had taken a class on this. Maybe I need to enroll my tiny brain into a community college course. We shall see.