Code Object Data Parent
Most of my code objects end up being filled with attributes. I mean, filled. Here's an idea if what I mean:
Thenomain types -=> think attrcnt(
64
Sixty-four attributes to do what? This is Wiki News and Help <wnh>
, and all it does is looks at a database and pulls a file. The nWoD 2 data dictionary has 595 attributes for Core and Demon. I mean it. I like using attributes.
What I don't like is losing track of what's where. Here's an old, old trick that has been used quite a lot:
@desc object=lattr( %! )
Well that's good, but what about sorting them so that all the &cmd
attributes are together? Okay, what if you use &cmd
and &c
? How about sorting them with headers? Why not do this, or that, ot this other, or, or, or ...
:::::::::::::::::::::::::. WoD Health System <whs> .::::::::::::::::::::::::::
Desc is null for this code object.
..: Data :....................................................................
d.data-dictionary d.health-types d.stat-funcs
..: Commands :................................................................
c.hurt c.heal
..: Functions :...............................................................
f.conv-type f.do-some-dmg f.healhurt-workhorse
f.min-dmg f.do-some-dmg.push f.healhurt-errorcheck
f.reverse-max-health f.do-some-dmg.wrap
..: Displays :................................................................
display.health-bar display.health-detail
display.health-descr display.current-health-descr
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::. 17 attributes .::
This is the result of the Code Object Data Parent. Muxify. Copy. Paste. @parent
. Done.
If I had a "must have for Mux" code, then this is it, an informational blob to help people get up to speed on the code around them. It's not fit for everything; don't use it on a gigantic code system like Anomaly Jobs, but for pretty much every other project I find it almost indispensable.