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

OOPS with Java

Java tutorial Java is a cross platform compiled language that uses jvm (java virtual machine) that can be used in any machine no matter the hardware or software, provided the machine supports jvm FYI The object class is the root of all classes Data can be gatered with the scanner method in the java library but cannot cater charecter type data with the standard library. Those can be gathered by sc = next().charat(0) Hello world Code ...

November 16, 2023 · 22 min · 4594 words · Aum Pauskar

Virtualenv

Python virtual environment Python virtual environemt is a program that aids in creating a serperate virtual environment for each project Requiremnets Python 3 Pip Steps Installing virtual environemnt package 1 pip install virtualenv Creating virtual environent Windows - cmd/powershell 1 py -m venv {your_env_name} Linux 1 python3 -m venv myworld Activating virtual environemt Windows - cmd 1 myworld\Scripts\activate.bat Windows - powershell 1 myworld\Scripts\activate.ps1 Linux ...

November 16, 2023 · 1 min · 76 words · Aum Pauskar