Wednesday, February 17, 2021

Learn some important concepts in C#.

 
In this article we are going to learn some important concepts like IL, JIT...

What is IL?:

  • IL code stands for intermediate code.
  • When this program will run at user system, this run time IL code is converted into machine code by JIT (just-in-time) compiler.
  • JIT Compiler converted IL Code into Machine Code.
  • IL code also known as Common intermediate language code or Microsoft intermediate language code.
  • In Microsoft visual studio supports too many language. In same different user have different machine configuration and different operating system whose unknown to visual studio. That is the main problem. 
  • To avoid this problem Microsoft Creates a code that is called as IL Code.
  • It’s called as IL code or half compiled code, it’s creates at compile time.

What is JIT ?

  • JIT stands for just-in-time compiler.
  •  It converts the MSIL code to CPU native code as it is needed during code execution.
  • It is called just-in-time since it converts the MSIL code to CPU native code; when it is required within code execution otherwise it will not do nothing with that MSIL code.
There are three types of JIT:

1.Pre-JIT Compiler (Compiles entire code into native code completely).
2.Econo JIT Compiler (Compiles code part by part freeing when required).
3.Normal JIT Compiler (It compiles only those methods that are called at runtime).

Strongly Typed:
  • general: C# is used in a strongly typed manner, meaning: a variable is declared of a specific Type either: string, int, a user-defined type, etc and cannot, later, be assigned a value of a different type.
  • C#  is strongly typed because the compiler will detect and flag these errors at compilation time.

Conversion:

  • The process of converting the value of one data type (integer, string, float, etc.) to another data type is called type.
  • Example:


   

       
For more understanding watch below video :


Thank you!!!!!







Saturday, February 6, 2021

Learn Angular CLI Day- 13

Now we are going to learn the Angular CLI.


What is Angular CLI:



  • The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell.
  • Angular CLI is the official tool for initializing and working with Angular projects. 
  • It saves you from the hassle of complex configurations and build tools like TypeScript Webpack, and so on.

Installing Angular CLI:

  • Major versions of Angular CLI follow the supported major version of Angular, but minor versions can be released separately.
  • Install the CLI using the npm package manager:

  • To create, build, and serve a new, basic Angular project on a development server, go to the parent directory of your new workspace use the following commands:
         ng new my-first-project

         cd my-first-project   

         ng serve


Why is angular CLI used?

  • The Angular CLI is used for much more than just creating an Angular project.
  •  It can be used to create components, services, pipes, directives and more. 
  • Also it helps in building, serving, testing etc. CLI itself is quite something to learn about, it makes Angular development workflow much easier and faster.


Ng new:

  • The Angular CLI makes it easy to create an application that already works, right out of the box. It already follows our best practices.
  • Creates a new workspace and an initial Angular application.
Syntax:

ng new <name> [options]
ng n <name> [options]


Ng Serve:

  • ng serve command builds and serve the application. It rebuilds the application if changes occur. Here project is the name of the application as defined in angular.
  • Easily test your app locally while developing.
Syntax:

ng serve <project> [options]
ng s <project> [options]



Floder Structure:





Configuration
:





Thank you!!!!















Function in SQL -part 8

  In this blog we are going to understand  Sql function.   FUNCTION: A function is a database object in SQL Server. It accepts only input pa...