Category archives: Snaking
Discussions of programming, particularly of programming Python
Think I need to take a real break (Writing blogs as I watch the scanner stall isn't helping...)
Written by
on
in
Snaking,
Vindaloo.
Obviously I'm just missing something obvious. Wish Lawrence didn't have a guest tonight so I could go get a snack, or even go on a walk. Though I already walked quite a bit today. Should work on the metaclass presentation... or more critically, rent a hotel room for PyCon!
Randian versus Liberal views in Programming (Joey points out debate+followup regarding the ethics of Open Source)
Written by
on
in
Snaking.
Back when I was in high-school, our "extended learning" course was given a "real world" demonstration of Randian versus Liberal ideology via an old party game. If everyone in the group is willing to accept a moderate reward, then everyone can simply have that moderate reward. If any one person gets greedy while everyone else ...
This isn't helping much... (Old (running) code is finally showing the cracks that made me replace it)
Written by
on
in
Snaking.
Have spent > 4 hours tracking down problems with the old scanner code. This code is entirely ripped out and replaced with TwistedSNMP in the new version, but the old version is what the customer is running at the moment. I was seriously tempted to just upgrade them to the new version.
Widgets should be determined w/out if/elif junk (Things you know you should do right in the first place but never get around to...)
Written by
on
in
Snaking.
Well, mostly wound up generalising the planned-object editing system today (modulo a few hours trying to figure out what was wrong with my SNMP queries, (it was just a system mis-configuration in the end, nothing to do with my code)). Got the "choose an existing or other-new-planned" control working nicely. Whipped up a street view, ...
Decorators for classes and methods/functions...
Written by
on
in
Snaking.
Alan Green has some comments on PEP 318 up on his Blog. I've seen the PEP a few times so far, and as of yet, I've never been particularly happy with it. It's not that I think it's horribly ugly, it's just that it doesn't seem particularly elegant.
Weirdness and silliness in SNMP (Why do all problems occur simultaneously?)
Written by
on
in
Snaking.
Sigh. Half the modems are just plain offline, apparently. No clue why. They can't be reached at all from cinemon, but they can from admin. Blah.
Need to do marketing for projects... (Too much focus on code, not enough on people)
Written by
on
in
Snaking.
Question on Python List regarding "what's the point" of PyTable (and BasicProperty). Reminded me that I really need to work on marketing and "soft documentation" materials for the various Open Source projects.
The end of the first day (Blogging day one is finished...)
Written by
on
in
Snaking.
Seems like forever since I got up "this morning" and started blogging (I had a 2 or 3 hour nap around 9 or 10 pm, but not a full night's sleep). The sun is lighting up the haze now, "The Time Warp" (original cast version) is now playing over the (loud) traffic outside. The weekend ...
Pythius.aop, aspect-oriented toolkit (Maybe I'm missing the point...)
Written by
on
in
Snaking.
Aspect oriented programming is an attempt to allow for defining orthogonal aspects of an application in such way that they can be (seamlessly) woven together at run time. pythius' aop.py module provides the machinery for weaving things together (and yes, it does use a metaclass), but doesn't seem to provide global weaving functionality.
PyProtocols needs documentation... (Who am I to throw stones)
Written by
on
in
Snaking.
Okay, dirty little secret, PyProtocols uses metaclasses in a really extreme way. I assumed they would, and in looking, yes they do. There's rather a lack of real code being demo'd though. For instance, what does a "normal" class + interface declaration look like? Hard to tell, as the test cases are quite round-about in ...