I tell people to never run my code. I tell people that I am not a programmer.
Exhibit 1: my SNMP agent.
agent-TWP.pl - the agent
TWP.mib - the definition
Database? Nah. The data changes 3-4 times a year, if I'm lucky -- why have the overhead? Of course, why do this at all?
This will be presented at my inevitable sanity hearing.
@mwl ah, excellent. this code is comically evil. if you were interested in doing sensible things, which the available evidence very strongly suggests is not the case, I would suggest a SQLite file, or merely a CSV, which could then 1) be used as backing store for the SNMP agent for backwards compatibility, and 2) simply be copied to each location where it is needed on the occasional basis that the data does change
@mwl not that the SNMP agent would be made simpler by the introduction of SQLite code.
"comically evil"?
Yeah, any of those things *could* be done, but it's overwhelmingly static data.
@mwl My biggest objection is the column-structured storage.
Column-structured storage? Huh.
Well, I had to get some deliberate evil in there *somewhere*.