Application Insights and .NET Core

Application Insights in .Net Core App

If you work on .NET applications on Azure, you probably might be thinking of how and where you would log information about your application, like telemetry information. I shared this link to the youtube video that gives a good set of instructions to set this up yourself. There are some things that the video doesn’t cover. ...

December 20, 2020 · 3 min · 497 words · eakangk
Semantic Versioning

Semantic versioning - Semver - An introduction - node package manager syntax and quirks

Featured image from https://devopedia.org/semantic-versioning When I started web development a long time ago, I heard about Semver (semantic versioning) as if it was some complicated jargon. But gradually I learned what it was and understood how relevant it was in web development, especially, when you rely on packages from a global package repository. I recently got asked by one my junior devs to explain it. I couldn’t explain it elegantly. So I decided to write a post. ...

December 6, 2020 · 6 min · 1220 words · eakangk
NodeJs

Node - Get started

What is it? For a really simple introduction, check out my earlier post on an Introduction to Node and npm. Node is a javascript runtime environment outside your browser. It is a program that embeds Chrome’s V8 engine into a command line executable that lets you run javascript. You can download and install it from Nodejs.Org So what? Node comes with a package manager - npm, node package manager. that allows you to publish and download packages from npmjs.com, a web portal that allows developers to share their re-usable javascript modules. It has inherent support for both CommonJS and ECMAScript modules. When you download and install node, you’ll get node executable and also the node package manager. ...

December 6, 2020 · 4 min · 766 words · eakangk
NodeJs

Node and npm: The intro I wish, I got when I began web development

There are times in life, when you begin doing something without fully understanding it, simply because, at that point, you didn’t have the luxury to dig deeper, go further and be in a position where you could explain to a 5 year old, what it is really like to do what you were doing. I have been in this position several times. A lot of times, software development for me has been a journey of reverse engineering, or figuring things backwards. Do it first, based on snippets read here and there online and then connecting the dots gradually as you spend more time doing similar things. Sounds familiar? Probably, the life of every other software engineer on the planet working on a target deadline. ...

December 6, 2020 · 4 min · 709 words · eakangk
Application Insights in DotNetCore

Application Insights, SeriLog and .NET Core

I realised recently that I have always taken application logging for granted. In my previous firm, which was a pretty large company, over a few thousand employees, we had a centralised logging platform and some lovely packages for each language and a team to configure the logging instance for our application and all that luxury. Developers, did just application development. For everything else, there was always somebody you could lean on. So the good thing was, you could spend all your time, polishing your code, applying all sorts of clean-code principles and achieve some coding nirvana and focus on just the business logic and the core problem. ...

November 28, 2020 · 13 min · 2733 words · eakangk

Feature Toggles

How many times have you as a software engineer worked on a large feature, in an isolated branch that only got merged to the mainline branch when it is time to actually release the feature and then struggled for hours and sometimes days with the merge conflicts, simply because many other changes were contributed to the main branch in the meanwhile? If your answer is many times, then you really might benefit from this. ...

November 8, 2020 · 2 min · 288 words · eakangk

A static responsive website as an Azure AppService

I have been working on a simple responsive website that would serve as an online address for my dog-walking/boarding service. This being my first ever official side-hustle as a registered company, it took pretty long to even get here. Registering a private limited company was also an adventure. But I wanted to experience. This isn’t like a full blown venture intended to become the leader in pet services or anything. We just love dogs and would love to do something that would be different from software. Something that would encourage us to get out of the house and teach us empathy and have some fun with dogs. ...

October 31, 2020 · 7 min · 1290 words · eakangk
EF Core

Entity Framework Core 3.1 - Part 4

In my previous post, we talked about interacting with related entities using entity framework. Introduction Time to look at some special cases where you would want entity framework to work with views, stored procedures and plain old SQL statements. There is a wide minconception that developers raise, “Oh it is a stored procedure, that can’t be good”. There is nothing inherently wrong with using stored procedures. It is nice to have all business logic in one place. However, sometimes complex business needs might result in complex SQL queries, and you are better-off writing such queries with the help of someone who is familiar with SQL instead of doing it in EntityFramework. Which is probably why you have applications which has a few references to some well written stored procedures. ...

October 25, 2020 · 9 min · 1729 words · eakangk
EF Core

Entity Framework Core 3.1 - Part 3

In my previous post, we talked about data access and updates in entity framework. Updating Related Data A naive way to update related data, especially when the context isn’t tracking your object, as in, you send data about an existing entity in the database, from the UI, and EF has to figure out what part of the updated record has changed and needs an update in the database. If you ever encounter a situation where you are to update only one related object of a primary entity, then you might be in for a surprise. I am going to use an example that I followed to understand this from Julie Lerman’s Pluralsight course on EFCore 3. I have never had to do this personally in the round-about way that the example states. However, I am pretty sure I might end up with tricky situations as I spend more time with EF. ...

October 25, 2020 · 7 min · 1464 words · eakangk
EF Core

Entity Framework Core 3.1 - Part 2

In my previous post, we talked looked at an introduction into entity framework core 3. Read and Write Data As I mentioned in the earlier one, I don’t really like writing posts that take longer than 10 minutes to read. It is just too much information. So let us continue with the next part. To learn more about entity framework mappings always refer to this amazing course on Pluralsight titled: Entity Framework Core 2: Mappings, by Julie Lerman ...

October 25, 2020 · 9 min · 1825 words · eakangk