testin' a theory
Article: 7957 of alt.hackers From: jfesler@gigo.com (Jason Fesler) Newsgroups: alt.hackers Subject: testin' a theory Date: 03 Jun 95 09:24:26 Organization: Fidonet: Jason Fesler; jfesler@gigo.com Lines: 48 Approved: By our loving moderator Kibo Message-ID: 302_9506030938@gigo.com NNTP-Posting-Host: gigo.com X-FTN-To: oosthoek@cs.utwente.nl Status: RO
oosthoek@cs.utwente.nl wrote in a message to All: oc> ok I will post a small hack, but I won't call it an obhack, oc> because I don't like the principle. I realize that since I oc> posted in alt.hackers I should post a hack to follow the oc> charter, but I think the charter is wrong or inadaqute, if oc> an obhack is necessary, the moderator should be modified to oc> scan for it! Um .... What moderator? [damnations!] Object-Hack: I wrote a BBS package a long time ago, before object-oriented code became popular. I implemented my own form of object-oriented code (with late binding) by filling in a table with each module's startup code, containing the function name, the subfunction name (menus, private entries), the jump address, and a line of help. The BBS's built in menu editor (or the "RUN" prompt, for the sysop) would allow any public (ie, no sub-function name) function to be ran, by name. The BBS's menuing functions, would use the subfunction names for the names of each menu item. Certain functions (ala, toggle, add, drop, esc, search) simply were registered multiple times - saving one hell of a lot of code. Neatest part was, if I simply didn't link a few modules, those features were removed - no linking issues whatsover. The few important things that got ran automaticly, would only run if a given named function existed in the table. ObHack: the same BBS was akin to a full-screen CURSES type program for the entire session with the user, but more oriented to ANSI and Avatar specifically. Only redrew what was needed to be redrawn.. :-) oc> that would save a quite a bit of bandwidth and frustrations Nah. Finding a way to stop the outrageous amounts of spamming going on would, though. I'd like to see a better way to handle moderated newsgroups - some of the spammers are spamming even the moderated newsgroups, much to the chagrin of their moderators. Groetjes.. -- | Jason Fesler | Disguised as jfesler or jfroot@infomania.com when working | GIGO support mailing list: listserv@gigo.com, msg body "subscribe gigo" | Remember kids, don't park and drive - accidents make people!