WebApis Using DDD

WebApis Using DDD The DDD architecture separates your core business logic (the “Domain”) from technical details like databases (the “Infrastructure”) or web frameworks (the “API”). Unlike using a flat architecture using a DDD architecture requires your code to have a central entry point which will be your API this will be your base project and with contain the Program.cs. This project will be of the type webapi. We will have other projects which will be of the type classlib. These will complement your base code with their respective functions. ...

December 30, 2025 · 2 min · 266 words · Aum Pauskar

ASP.NET

ASP.NET Initial creation of the Web API In order to create the Web API using .net we need to create a project of the respective type, this can be done by using the followign command 1 dotnet new webapi However a project may also be initialized by the IDE if you don’t want to go through the CLI. Basics of the code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 var builder = WebApplication.CreateBuilder(args); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); var app = builder.Build(); if (app.Environment.IsDevelopment()) { app.UseSwagger(); app.UseSwaggerUI(); } app.UseHttpsRedirection(); app.Run(); Explaination Certainly! Let’s break down the provided code snippet line by line. This code is typically found in the Program.cs file of an ASP.NET Core application and is part of the setup for a minimal API or web application. ...

July 22, 2025 · 5 min · 998 words · Aum Pauskar

C# Basics

C# Basics C# is a versatile programming language developed by Microsoft, widely used for building a variety of applications, from web to desktop and mobile. This post covers the basics of C#, including syntax, data types, and object-oriented programming concepts. Dotnet is a framework that supports C# and provides a rich set of libraries and tools for developers. Creating an application Dotnet provides a cli to create applicaitons. The entrypoint will always be Program.cs, here are the types of applications that the dotnet CLI helps to create ...

July 12, 2025 · 23 min · 4782 words · Aum Pauskar

Procedural programming in C

Procedural programming in C About the tutorial This tutorial is about procedural programming in C. We are going to use gcc within a linux environment to compile and run our programs. If you don’t want to install any compilers on the computer, you can use an online compiler like repl.it, or onlinegdb. Understanding the basics What is C? C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. By design, C provides constructs that map efficiently to typical machine instructions. It has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computer architectures that range from supercomputers to PLCs and embedded systems. ...

February 26, 2024 · 12 min · 2476 words · Aum Pauskar