| Design for this project |
| Actually, I think the parser could be easily modified to parse these new types of inputs. Why not? Of course, at this point you might consider having 2 parsers, one eating text tokens and one eating mouse/pointer tokens. Splitting up the responsibilities of the parser into a lexer and parser seems pretty logical to me, and then in the above situation, your lexer could easily hand tokens over to the appropriate parser. Of course, keeping the lexer and dumping both parsers in exchange for each object knowing how to parse messages would also be doable, but then some of the abstraction goes right out the window....but at the same time, a different scenario emerges, also worth considering. I've gone on long enough, and am making progessively less sense, so I'll stop. Shaggz |
| You make a good point in that having a design that's so abstract that you can no longer understand what the big picture is all about is probably not very useful, and somewhat defeats one of the purposes of abstraction. It's up to you to decide where you think you have enough abstraction going on, suited to your (or in this case, the group's) particular design goals. I think the main point that was being made initially was that cramming everything that's going on into just a few classes (particular those given to you) doesn't make much sense sometimes (ding ding!). Shaggz |
| You should never have a class with just attributes. If the class has attributes, manipulation of those attributes is a responsbility of that class. But think carefully about "responsibility." A single class should have all responsibilities, it should have only a coherent set of responsibilities. If you need to have more responsibilities covered, create more classes. You do sometimes have classes with only services – that's often true with abstract classes. Mark Guzdial |
| http://www.deanofstudents.gatech.edu/Honor/ Article II, section 3. Maybe you shouldn't be doing this after all. Shaggz |
| I agree with Shaggz, Webb – students can't beg off their friends' WordMatcher. Mark Guzdial |
| Mark, can you re-read this and clarrify? Shaggz seemed to say that you can't copy so if you agree with him then students shouldn't be able to "beg off of their friends' WordMatcher" Lushi |
| I suspect that a typo or an "external fix" – yes, I agree with Shaggz. Students cannot use another groups' WordMatcher. Period. Mark Guzdial |
| ah - I see the light - wasn't thinking about official rules and such. It just seems like the WordMatcher is pretty trivial piece of the project once the real design problems come down the line. But maybe a real flexible team can work around a shabby parser and create a really nice system around it and make up for it with other great ideas. This would be less interesting if everyone could default to the same generic "working" parser. hmmm - Webb |
| Yes – I did make the announcement that doors were one-way-only, and you'd have to explicitly connect both ways. Mark Guzdial |
| I scanned in my answer key for the Midterm: FYI – F01-MidtermExam-Key.pdf Mark Guzdial |