Remembering GIT commands

GIT is one of the most popular SCM tools being used these days, and even though there are lot of UI interfaces to it (Source tree, GIT extensions etc), It really helps to know about the beautiful command line behind those actions. The challenge is how to remember them all when you need it right?,…

Duck Typing in python

Quite simply put, Duck typing gives a programmer the ability to not worry about the type of a class rather perform the required operations. Let's take a simple code example as below: https://gist.github.com/gaurav-singh/f82126b921e80519c9fb19d95f6556e7 If we execute this code: QuackedLouder QuackTraceback (most recent call last): File "/Users/gaurav/personal/development/grasp-python/base/advanced/duck_typing.py", line 33, in <module> MakeItQuack(Eagle()) File "/Users/gaurav/personal/development/grasp-python/base/advanced/duck_typing.py", line 29,…