Thursday, April 30, 2015

New Features in ASP.NET 2015 | ASP.NET 5

Whenever you made any change in your project, you have to rebuild it to check its effects. But now in ASP.Net 2015,there is no need to rebuild it again, as it used Roslyn compiler for this.

    Earlier we need to do lot of configuration for publishing or deploying project in cloud, but now in ASP.NET 2015, you can easily migrate and deploy your project using cloud ready configuration. Tip for publishing project in cloud: first by converting your asp.net project to azure cloud project and then publish that converted azure project.

    In .Net 5, you can easily IIS host or self host, your asp.net 2015 project.

    Asp.net 2015 has open source in github, that means you can find code of asp.net 5 from github, and you can make repository of your project in github just live svn.

    ASP.NET uses 3 types of run time engine
        1. Full .Net CLR (Default)
        2. Core CLR (Include only those which is needed in your application for ex using system.console only)
        3. Cross Platform CLR (For running app on mac and linux os)

    In ASP.Net 2015 you can run new and old version code together. For this you have to use core CLR.

    No need to add assembly in references, you can directly add assembly name with version in project.json file. Intellisense will work for this.

    In ASP.Net 2015, you can easily use MVC, web api and web pages together without any conflicts of their features, as MVC 6 is introduced for this. So there is no need to write different code for all three technologies.

    ASP.NET 5 uses new http pipeline, which uses less overhead in pipeline and improves http performance.

    ASP.NET 5 can use dependency injection i.e. can replace module with another module without altering the client.

    ASP.NET 5 can run older version asp.net application without modification of any code except mvc6 and signal r 3, as they use new http pipeline.

Friday, April 17, 2015

Difference between c#.net & VB.net

Here are some key difference in C# and VB.NET other than syntax difference.

  1. In C#, using keyword is used to release unmanaged resources. (Not available in VB.NET)
  2. Optional parameter is supported in VB.NET. (Not available in C#).
  3. Structure and unstructured error handling (On Error GoTo) is supported in VB.NET. (Unstructured error handling is not supported in C#).
  4. Event gets bind automatically in VB.Net.
  5. VB.NET is not case sensitive where C# is.
  6. Shadowing: – This is a VB.Net Concept by which you can provide a new implementation for the base class member without overriding the member. You can shadow a base class member in the derived class by using the keyword “Shadows”. The method signature, access level and return type of the shadowed member can be completely different than the base class member.

    Hiding
    : – This is a C# Concept by which you can provide a new implementation for the base class member without overriding the member. You can hide a base class member in the derived class by using the keyword “new”. The method signature, access level and return type of the hidden member has to be same as the base class member. Comparing the two:- 1) The access level, signature and the return type can only be changed when you are shadowing with VB.NET. Hiding and overriding demands these parameters as same.
    2) The difference lies when you call the derived class object with a base class variable. In class of overriding although you assign a derived class object to base class variable it will call the derived class function. In case of shadowing or hiding the base class function will be called.
  7. Visual Basic .NET can also force parameters to be passed by value, regardless of how they are declared, by enclosing the parameters in extra parentheses. There is no way to achieve this thing in C#.

Wednesday, April 15, 2015

HOLOLENS - Microsoft's New Wearable Gadget

This new gadget will be available with the Microsoft’s newest operating system: Windows 10 and will provide powerful holographic platform. Hololens are developed by the same engineers who developed Xbox game’s Kinect motion sensing system. This device will release at the same time with Windows 10 in autumn.

Hololens is worn over the eyes like goggles. This futuristic gadget will offer a new way to communicate which use holograms: three dimensional & high definition realistic images in your daily life.
Hololens by Microsoft

This gadget have lots of sensors that tracks your movements and uses that information to create images with which you can interact from different angles. Hololens camera looks at the location, maps it & identify the physical objects present there like chair, table , etc in a room and by using that information it projects/pins the 3D images at appropriate place. I must say your room becomes canvas for your holographic games & projects with this Microsoft’s  Hololens.




This flashy & glossy gadget has no wires and transforms your world into 3D objects, machines or people that are transparent and floating in the midair. Hololens wearer will see the real world + a virtual screen with it whether on your room walls, in living room.
HoloLens
 Hololens  will be new medium to express creativity, a more efficient and effective way to teach, learn, visualize and share ideas. It will put your imaginations into reality and will be effective platform to collaborate and explore.