Sunday, June 12, 2016

Double Linked List - C++, C#, Java, JavaScript

June 12, 2016

Motivation behind memorization APIs as a programmer:

                      Good programmer or just good Googler
20 minutes research about good programmer or just good Googler?
http://www.hanselman.com/blog/AmIReallyADeveloperOrJustAGoodGoogler.aspx

http://getinvolved.hanselman.com/

http://www.hanselman.com/blog/ImAPhonyAreYou.aspx

http://codekata.pragprog.com/

https://www.quora.com/Do-developers-memorize-all-tags-classes-and-functions

http://app.pluralsight.com/courses/hanselman-speaking

                       Memorization brings up a lot of learning process
1. Where to find documents?
2. How to design, understandable?
3. Start to work on simple examples.
4. To get prepared early. It makes difference.

Work on Double Linked List class/ interface - go over all APIs of 4 languages -> Memorize -> Compare, ask questions -> start to prepare to use them in the future projects.

C#:
LinkedList class
https://msdn.microsoft.com/en-us/library/he2s3bh7(v=vs.110).aspx

Properties:

Count,
First,
Last

25 Methods:

AddAfter(LinkedListNode<T>, T)
AddAfter(LinkedListNode<T>, ListListNode<T>)

AddBefore(LinkedListNode<T>, T)
AddBefore(LinkedListNode<T>, ListListNode<T>)

AddFirst(LinkedListNode<T>, T)
AddFirst(LinkedListNode<T>, ListListNode<T>)

AddLast(LinkedListNode<T>, T)
AddLast(LinkedListNode<T>, ListListNode<T>)


Clear()
Contains(T)
CopyTo(T[], int32)

Equals(Object)

Finalize()
Find(T)       - Find the first node that conains the specified value
FindLast(T)   - Find the last  node that contains the specified value

GetEnumerator()
GetHashCode()
GetObjectData()
GetType()

MemberwiseClone()
OnDeserialization(Object)
Remove(T)
Remove(LinkedListNode<T>)

RemoveFirst()
RemoveLast()

Statistics:

June 12, 2016 10 minutes

More reading:
http://matt-welsh.blogspot.ca/2014/01/getting-job-at-google-for-phd-students.html

http://matt-welsh.blogspot.ca/2010/11/why-im-leaving-harvard.html

http://matt-welsh.blogspot.ca/2010/05/secret-lives-of-professors.html




No comments:

Post a Comment