Skip to content

Instantly share code, notes, and snippets.

@abhijangda
Created August 10, 2015 17:28
Show Gist options
  • Select an option

  • Save abhijangda/4c1b022e9746b692ae66 to your computer and use it in GitHub Desktop.

Select an option

Save abhijangda/4c1b022e9746b692ae66 to your computer and use it in GitHub Desktop.
  • No Global/Static variables have been used, which means that no thread synchronization is required to add Multithreading for processing several pages at once.
  • The Visitor Design pattern has been used to perform the operation over Page and KeywordParser. This means, to add a functionality for Page and KeywordParser wouldn't require changing there code. A feature can be added easily by just creating a new Visitor amd calling the visit pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment