Skip to content

Instantly share code, notes, and snippets.

@serdarb
Last active March 22, 2019 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serdarb/96b61cdf1696d7668fe87993fdd85e96 to your computer and use it in GitHub Desktop.
Save serdarb/96b61cdf1696d7668fe87993fdd85e96 to your computer and use it in GitHub Desktop.
## coding challenge: count words in Moby Dick
the book "Moby Dick"
by Herman Melville
describes an epic battle of a gloomy captain against his personal nemesis,
the white whale.
you can find the full text
for Herman Melville’s “Moby Dick”
as a **text file**
on www.gutenberg.org.
---
# first;
write a c# console application,
that "downloads the text file"
and then counts how often each word occurs in the book
and save the result in an xml file.
xml structure should be like this.
<words>
<word text="word1" count="123" />
<word text="word2" count="235" />
</words>
---
# second;
write an asp.net mvc web application,
that shows the top 10 max words in /Word/List view as an html table,
by reading the xml.
write unit tests for criticals methods,
and also please cache the reading xml file action.
good luck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment