Decade. The .Net framework is not a new name
but heard by almost everyone who wanted to start a career in the IT domain. The
framework was started by Microsoft in the year 2002. The objective of
designing this framework was to create more robust and safe applications based
on the Windows platform.
The initial version of the .net framework was 1.0 and it has come a long
way since then. It can be used to create both web-based and form-based apps. It
gives wonderful support to plenty of programming languages like VB (Visual
Basics), C# and more. So, developers have the flexibility to choose anyone
based on their skills set and knowledge.
Add caption |
This blog is dedicated to the basics of the .net framework and why it is
suitable for beginners as well. The topics to be covered in the blog include –
1.
The Architecture of .Net Framework
2.
What are the .Net Components?
3.
Design Principles for the .Net Framework
Let us discuss each of the topics one by one to gain more meaningful
insights on the topic What is Microsoft .Net Framework and its architecture.
The Architecture of
.Net Framework
The basic architecture of .Net Framework looks like this as shown in the
diagram that focuses on three elements majorly – Languages, Library, and CLR.
Here, are some of the benefits of the platform that you should consider before
you start working on the same.
- This
is a popular platform for application developers.
- The platform supports multiple languages and cross-language integration too.
- There
is one IDE that makes the development work easier than you think of.
- With
a wider set of utilities, Framework acts as the building block for the application system.
- There
is one GUI to make things more appealing.
- Microsoft
.net Framework is an independent framework with the middle-level interface.
- It
enhances interoperability across language with CTS (Common Type System).
- There
is one CLR (Common Language Runtime) that is responsible to maintain or execute multiple applications that are developed using the .net library.
- The framework is primarily consisting of a gigantic library of code.
In the next section, we will discuss each of the components one by
one in detail.
What are the .Net
Components?
The .net architecture has the following key components that you should
know in detail –
1). CLR (Common Language Runtime)
CLR is an important part of the .Net Architecture where most of the .net
programs are executed. The major benefits of the CLR are listed below –
A). Exceptional Handling
Exceptions are the complicated errors that occur when the application is
executed. For example, if you are trying to open some file on your local
machine but this is not available there. The next example is when you try to
fetch some records from the database but your connection is not valid and no
longer available.
B). Garbage Collection (GC)
As the name suggests, this is the process of removing unwanted resources
that are no longer needed by the application. One of the major features of GC
is the managed code that makes sure that memory used by the application can be
freed completely especially when particular resources are no longer in use.
Before the launch of .Net Framework, this was the responsibility of
programmers to manage the memory and deleted unnecessary code that is not
required anymore. If memory will not be managed properly that it could result
in malfunctioning and it is not accepted by large applications at all. Also, it
slows down the system performance and it ultimately leads to system crash in
the end.
GC works by inspecting the different memory elements and removes
everything that is no longer required. Obviously, there is not a particular
time frame to complete all this work because time span varies based on the size
of application and waste resources too. In case, if there is some file that is
no longer needed and finished all operations too then it would be deleted
immediately. If the database connection is no longer needed and you have
performed all queries too then you can remove the database connection too.
C). Multiple Programming Languages
As already mentioned, a developer can choose from a wide range of programming languages that suit his project and he knows well how to use that particular programming language too. When you start working on some project, the first step is deciding on the right programming language, the most common choices here are VB and C#.
Further, there is one compiler that would be different for different
programming languages. If you are using a C# programming language for your
project then there would be a C# compiler to complete the job. Similarly, for
VB, you will be availed with the different compiler.
Next is the CLI (Common Language Interpreter) that is taken as the final
layer in the .net Framework and helps to run any .net program successfully.
Once the code is compiled, it will be sent to the CLI layer to run various .net
apps.
2). Class Library
The complete framework includes a large set of libraries that contain
the complete collection of methods and functions and further used for core
purpose too. These class library functions can be used to manage plenty of
file-level operations too. So, there are methods to read text on a file and similarly,
there are methods to write the text on a file.
Sometimes, the methods are broken down into namespaces to perform
certain operations. The broken methods are marked with the “*” sign along to
make you sure that it falls under the namespace category. Technically, A namespace is the logical separation of methods and they will be discussed in
detail in later blogs.
3). Languages
Here are the popular types of applications that can be built on the .Net
framework are classified broadly into the following categories –
- WinForms: This is needed to design the web-based forms or form-based apps that could run over almost any user machine. The best example in this category is Notepad that comes under the client-based application category.
- Net: This platform is used to design web-based apps and they could be run over almost any internet browser like Chrome, Internet Explorer (IE), or Firefox etc. This web application is further processed to a particular server where all internet related services are installed. IIS (Internet Information Server) is a
popular Microsoft component that helps in executing asp.net applications quickly. Once the apps are executed, they are sent to the client machines further and the output will be displayed in the browser.
- Net: ADO.Net – This technology is
used to develop applications to interact with databases such as Oracle or
Microsoft SQL Server.
This is a technology that was proposed to design apps to interact with
databases like Oracle, SQL server and more. Microsoft makes sure that .Net The framework is always in compliance with all supported Windows Operating systems.
Design Principles for
the .Net Framework
Here is the list of design principles for the .Net Framework that makes
it the most suitable choice for creating robust applications.
1). Interoperability
This framework offers strong backward support. For example, if there
is some application that was developed in the older version but you wanted to
migrate the application in the newer version or the highest version for the
.Net Framework then it could be done quickly. The best part is that the
application will still work without any technical errors. Microsoft makes sure
that older version gel with the latest versions in a matter of minutes only.
2). Portability
Applications that are based on the .Net Framework can work almost
anywhere on different Windows platforms. For the latest releases, Microsoft
makes sure that .Net products could run over other platforms too like Linux,
IOS, and more.
3). In-built Security Mechanism
The framework has a wonderful security mechanism and it is an inbuilt
process that helps to validate or verify the apps completely. Each application
has the flexibility to define security mechanism explicitly to grant the user
access to the code for all running programs.
4). Robust Memory Management
This task is handled by CLR (Common Language Runtime) completely where
garbage collectors make sure that not any unwanted resources are running over
the server. The resources will be released automatically as soon as they are
not in use anymore. This is not a one-time process but garbage collectors keep
on checking from time to time and maintains memory health too completely.
5). Easy Deployments
Yes, this is again an important feature that makes the .Net framework
more suitable for large enterprise apps. There are plenty of tools that can
be used to make the deployment easier and faster. These tools or packages are
distributed across the client machine and installed automatically whenever
needed.
Verdict: This is a popular programming language developed by the Microsoft
and it was designed to build apps that could run over multiple Windows
platforms. This is a popular language that can be used to develop Form-based
apps, web-based apps, or powerful web services too.
Further, developers had the flexibility to choose from multiple programming languages based on the project needs and their skills set. To know more on what .Net Framework is and complete architectural details, join the .Net certification program at Samyak Computer Classes right away.
0 Comments