Posts

Showing posts from April, 2022

Why should I migrate my .NET Framework applications to .NET Core/.NET 6?

The most famous project among the .NET platform was the now hated Asp.Net WebForms , which helped many companies on that time to migrate some legacy Windows Forms application to the Web platform, once the Visual Studio allowed developers to drag and drop web controls in visual design mode, a similar experience that took place for desktop applications. I know that feature usually did not generate the best HTML ever, but I think the idea was good in general and had its value at the beginning of it. The Asp.Net Web Forms had a not good performance in many cases, once everything was rendered in the backend, including the HTML, keeping the state using “tricks” with View State. The payload of each page could be enormous in many cases, but it was pretty easy to develop with. The .NET Framework introduced the Asp.Net MVC project template in order to follow the good practices used in the rest of the market. It was a tremendous success because it was possible to separate responsibilities betwee

What is WebAssembly?

Image
  WebAssembly is based on open web standards. So it is a native part of all modern browsers including mobile browsers. This means for the blazor application to work, there is no need to install any special plugin like back in the days of silver light and flash. Browsers understand and execute only JavaScript. How can we execute c# code in the client browser?  Well, the answer is WebAssembly Blazor can run C# code directly in the browser, using WebAssembly. It runs in the same security sandbox as JavaScript frameworks like Angular, React, Vue etc. Not just C#, in fact, we can run any type of code in the browser using WebAssembly

What is Blazor?

Image
  Before we see the actual definition of Blazor, we must understand below  For server-side development, we use programming languages like C#, Java, PHP etc. These are the server-side programming languages. For the client-side development we use JavaScript frameworks like Angular, React, Vue etc. There’s no doubt these JavaScript frameworks dominated client-side development up until recently.  To stay in the business as a developer and remain competitive, it's inevitable we learn both a server-side programming language and a client-side programming language But the question is, why should we learn and use 2 different sets of programming languages and frameworks. Can we use C# both for server-side and client-side development? Well, we can and that's exactly why we use Blazor. With Blazor we can now build interactive web UIs using C# instead of JavaScript. C# code can be executed both on the server and in the client browser. This means existing .Net developers can reuse their c# s

Service Oriented Architecture

Image
  Service Oriented Architecture (SOA) A Service-Oriented Architecture or SOA is a design pattern which is designed to build distributed systems that deliver services to other applications through the protocol. It is only a concept and not limited to any programming language or platform. What is Service? A service is a well-defined, self-contained function that represents a unit of functionality. A service can exchange information from another service. It is not dependent on the state of another service. It uses a loosely coupled, message-based communication model to communicate with applications and other services. Service Connections The figure given below illustrates the service-oriented architecture. Service consumer sends a service request to the service provider, and the service provider sends the service response to the service consumer. The service connection is understandable to both the service consumer and service provider. Services -  The services are the logical entities de

Visual Studio 2022 new features

Image
Microsoft Officially released Visual Studio 2022 for general availability on Nov-2021. The Primary focus of Visual Studio 2022 is developer productivity and quality of life improvements. These are the five new features of Visual Studio 2022 that I find most exciting: 64-bit IDE .NET 6 support Intellicode Hot reload Find in Files is faster   A 64-bit IDE  Finally, Visual Studio ships as a 64-bit application. So, you can see a   considerable improvement in the project loading and execution time when   compared to previous versions. You can now work on projects of any size and   complexity. The following image from Microsoft DevBlogs shows how fast   Visual Studio 2022 can load 1,601 projects with 298,326 files.  .NET 6 support   Complete support for  .NET 6  is now available with Visual Studio 2022. The        framework .NET 6 is a unified framework. It supports developing web, client,   and mobile apps in both  Windows  and  Mac  operating systems.  Intellicode  The most exciting and im