Achievement

DZone Most Valuable Blogger (MVB)

On Oct 12, 2018, I received an email from Kara Phelps, Content and Community Manager at DZone saying, Hi Gaurav, My name is Kara and I’m a Content and Community Manager here at DZone. We would definitely love to have you as an MVB! We reviewed your writing samples, and we think you would be a great fit for the program. We’re excited to invite you onboard! Read more…

Running your first Python script

Since you are here, I would assume that you have a working Python setup along with a working Python interpreter, and are ready to run your first Python script. If not, check out my previous  articles, where I walk you through each step to setup your Python environment. Here are the links to those articles: setup Python environment on Linux based systems setup Python environment Read more…

Setup a virtual environment for Python Development on Windows

Introduction Earlier, I wrote an article on how to set up a virtual environment for Python development on Ubuntu. This article, as the title suggests, focuses on setting up a virtual environment on Windows. I’m using Windows 8, and everything we will do here should work on other versions of Windows as well.   Installing and Running Python Installing Python, or any other software, for Read more…

Setup a virtual environment for Python Development on Ubuntu

Introduction In this article, we will start off by installing Python 3.6 and later, we will set up various virtual environments to work on different projects that require different versions of Python (say 2.7 and 3.6). Just for a change (honestly, I’m bored working on Windows), I will be doing everything on a system running Ubuntu 16.04. If you are interested to install Ubuntu alongside Read more…

A better approach to use HttpContext outside a Controller in .Net Core 2.1

Introduction In my previous post we discussed an approach to access the HttpContext.Session in RequestHandler. However, there was a problem. For every single component where we need to access the session, we have to inject a dependency of IHttpContextAccessor. While for one or two components it’s not a problem, it can be very daunting if we have to do the same over and over again. In this article, we will use a different Read more…

Breaking Circular Dependency between Components

Introduction Couple of days ago, I came across a piece of code that was not just tightly coupled but also formed a circular dependency among the components. In the following code, I’ve tried to give you a gist of it (may not be the best though). The below code has two key components, DataProvider and DataValidator. The DataProvider “new” DataValidator and passes in its own instance, which is then used Read more…