SitePoint Sponsor

User Tag List

Page 5 of 5 FirstFirst 12345
Results 101 to 116 of 116
  1. #101
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes exactly. Well the classes that generate the Finder objects would be PageControllers, something that is not in the diagram yet, but on the TODO.

    I don't quite see yet what TaskList, etc. would do other than providing an interface for the finder and an iterator.

    From your code I get, Matei, that you'd treat a List differently. Any idea?

    Here is a diagram update.
    Attached Images Attached Images

  2. #102
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkAngelBGE
    From your code I get, Matei, that you'd treat a List differently. Any idea?
    Oops, yes, I should just return a Task there. I guess you could return a list if you support searching by regular expressions or something .

  3. #103
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe okay. What do you think of the new diagram?

  4. #104
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it looks good . This should be a very useful system for the 0AD developers.

  5. #105
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Neato. Now on to Page Controllers then, wee.

  6. #106
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, here an update now with a FC, PC and a View.

    Are there any remarks? I probably need to create a TaskAdder class (which would be on the same level as TaskList) to add tasks/departments/etc. And a TaskModifier? TaskRemover?

    What do you think of this?
    Attached Images Attached Images
    Last edited by DarkAngelBGE; Aug 23, 2004 at 06:28.

  7. #107
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, here is an update with another PageController and an Intercepting Filter setup with two filters. I have added them tot he PageController for I want various filters only be run for various pages.

    The VisitsFilter enables that only people can see the page that lists departments if they have been to the site for say 50 times.

    Thoughts?
    Attached Images Attached Images

  8. #108
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I may need a FilterIterator that is implemented by each PageController to iterate over the filters in the runFilters method yes?

  9. #109
    SitePoint Member
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    That looks good. I'm not sure about the visits filter though; what if someone refreshes 50 times for example? It will also be a bit of a surprise to the casual visitor to suddenly see the department list for no reason. Maybe this should be based on something else, like whether they registered a forum account.

  10. #110
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This example is just fictonal - and does not belong to the TaskManager - this is just to further explain my view of Intercepting Filter and how I use it. Dpes that make more sense now?

    Other than that it looks good yes?

    PS: I will change the VisitsFilter for you.

  11. #111
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No one interested in helping me out?

  12. #112
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see no-one is interested anymore?

  13. #113
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well... the thread title has "what is your first impression" in it, perhaps everyone figured they gave their first impression 100 posts ago

  14. #114
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    haha, very funny.

  15. #115
    No. Phil.Roberts's Avatar
    Join Date
    May 2001
    Location
    Nottingham, UK
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd say that at this point you have enough of the design sorted to be able to complete this on your own. I think there comes a point where endlessly tweaking your code design becomes pure pedantary and wastes time better spent actually getting the code written and working.
    THE INSTRUCTIONS BELOW ARE OLD AND MAY BE INACCURATE.
    THIS INSTALL METHOD IS NOT RECOMMENDED, IT MAY RUN
    OVER YOUR DOG. <-- MediaWiki installation guide

  16. #116
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, Phil, thanks for this insight.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •