Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Class Identifiers

Name: Anonymous 2009-04-10 10:27

Hey /prog/,
If you were to program a BBS similiar to this and wanted to make it object-oriented how would you call the classes? I guess "Reply" would do for any post after the first post. Since you often call the first poster OP (Original Poster) would you call the first post "OriginalPost"? Some suggestions would be great since I'm really bad at making decisions.

Name: Anonymous 2009-04-10 11:49

>>8
But that would be part of the scraper logic, not the structure of the objects themselves. Please discard the mentality that it is necessary to have different classes to have differing behaviour; it is unscientific and ultimately destructive.

Maybe parseThread calls parseOP and parseReplyn, but what it returns should simply be a list of Posts, and maybe some thread metadata like title and thread ID.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List