Googling while Coding – 1 : Dictionaries, Hash Functions

I recently wrote some simple code to featurize data from the KDD Cup 2015. The code is pretty simple (link below)

I thought it would be interesting to tabulate the google searches I had to do for syntax validation etc.

Considering I code in both Python and C#, its still funny how much of code-lookup happens during coding.

 

Task #1:  Featurize data from the KDD Cup 2015

Google Searches:

  1. “c# dictionary” : http://www.dotnetperls.com/dictionary
  2. “c# array” : http://www.dotnetperls.com/array
  3. “c# string hash function” : https://msdn.microsoft.com/en-us/library/system.string.gethashcode(v=vs.110).aspx
  4. “c# constructor” : https://msdn.microsoft.com/en-us/library/ms173115.aspx
  5. “c# convert array to comma separated string” : http://stackoverflow.com/questions/4756565/c-sharp-convert-array-of-integers-to-comma-separated-string
  6. “c# modulo operator negative” : http://stackoverflow.com/questions/1082917/mod-of-negative-number-is-melting-my-brain
  7. “c# streamwriter writeline” : http://www.dotnetperls.com/streamwriter

 

Code:

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s