BTW, Mike are you proud of me?
This is exactly what you were saying I should do right? Make everything
as dynamic as possible?
BTW, as expect the %i worked...... What happens if I put %b in there....
BRB... going to try it <Alt-Tab>
<back after 30 seconds>
Heh... so %b isn't binary....
Oh well.
Steve
Are you referring to me or one of the other Mike's? Anyway, I think it's great that you're learning Python and abstracting / refactoring your code so much. As long as you can still understand it when you're done, that's cool. Some people like to abstract so much that it leaves me head spinning.
I sometimes do that to myself, and I hate it! Fortunately I almost always have tests that let me know what I was accomplishing. Sometimes I even have comments that let me know what I was doing.
Just today I wrote a really lovely list comprehension and used it. Then said to myself “you should use that in this other place too.”
So I did, six lines of code became three, but the nested list comprehension was almost incomprehensible immediately after I finished it. So out it came.
I work in a place where perl is used for everything. I don’t want my python to look like that.
Anyway, I think it’s great that you’re learning Python and abstracting / refactoring your code so much. As long as you can still understand it when you’re done, that’s cool. Some people like to abstract so much that it leaves me head spinning.