So far, I have quite a good experience with Python and with the mailing list. I think it actually speeds up learning process. For one, I didnt bother with the data types and with memory management, as I did with C++. It kindof diverts the time used to thinking about memory management to making the syntax or the logic. And once you cover the basics, loops, conditionals, functions, classes, and the combination of tuples, lists, and dictionaries, I think you’re kindof set for the other more interesting things that you can do. Things like file manipulation, client-server programming, regular expressions, threads, and a lot more. Although I havent tried all those advanced stuff, I could say that I learned about how to derive classes from base classes in a total of only a few hours. I say total because, I only use about an hour or 2 for Python in a day. And the mailing list was very very helpful. I get to ask questions and people probably halfway around the world take their time answering my queries.
I also found it helpful to have a certain project because you retain stuff that you’ve learned since you are applying it to something relevant to you. For my case, my project was controlling a circuit with 32 LEDs using the parallel port. Now, I was already able to do that (as I’ve posted sometime before) but the Parallel class was still not “modeled” to how I want it to work. So I derived another class from the Parallel() and I got to learn that I can still access the methods of the base class. That I need to bind my methods. And it can be done by passing self. Stuff like those. I think this is still a bit basic but I think my understanding of object orientation was deepened because of this.
Dude, 32 LEDS? What circuit was it? I mean, parallel port has only 8 data PINs, so without deep magic you can only control these?
actually, i got it to 48 LEDs.
yup, the parallel port has 8 data pins. I used the other 4 control pins to control which latch/buffer to output to.
basically i have 6 latches. each latch can control 8 LEDs. the 4 control bits are used to select which one latch i’ll output the data bits to. the 8 data bits of course will give you what the LEDs output should be.
okay?
Yeah, good idea, didn’t think of using the 4 control pins — which is kinda obvious now that I think of it
. Good job!
thanks. are you working on any project that involves the parallel port by any chance?