My blog - Code Disciples

Code Disciples is a blog for all things code. The internet is vast and is full of great content and mostly awesome folks who are always willing to help. However, sometimes, we run into a real head-scratcher that requires rummaging through heaps of documentation or tutorials and abusing Q&A sites until we hit that "eureka!" moment. Most blogs on Code Disciples stem from such painful moments of frustration. The site provides a means for me to document topics or scenarios that I struggled with when I first encountered them or subjects that I simply felt would be fun to blog about. I hope you find at least some of them to be useful.

The site is developed with Pelican and deployed using Netlify.

  • Namedtuples

    In this post, we will take a look at the namedtuple container type in Python. Firstly, namedtuples are immutable containers just like regular tuples. However, unlike regular tuples, which can be accessed only through indices, namedtuples can be accessed via identifiers or keys as well as index values.

    Full article.

  • Advanced Git Commands

    In this post, we will take a look at some useful advanced git commands. These commands essentially supplement the usual git workflow and help in fixing mistakes or undoing changes.

    Full article.

  • Pythonic Dictionaries

    Dictionaries are one of the most helpful data structures in Python. In this post, we will look at some methods that make dictionary usage more pythonic.

    Full article.

  • Plotting on Google Maps with gmplot

    In this post, we will look at plotting different plot types on Google maps using the gmplot library in Python (v3.7). This is great if you need to highlight a specific section like a building, a street, a locality or other areas of interest on a map. gmplot provides a variety of plots like polygons, heatmaps and gridlines out of the box.

    Full article.