Net Framework By Microsoft


Do you have your own business that needs web development? Have you been wondering if? .Net or PHP would be better for your business needs? Are you confused by the technical jargon? Both .NET and PHP have been used to develop web applications but how to choose what is best for your business. Three minutes from now you will have a good understanding of how to make the right decision.

.Net It is a framework produced by Microsoft that could be used to develop different types of web pages and web applications. Contractionary to the common belief,.Net is not a programming language on its own. However, it supports 30+ programming languages, that could be used for both frontend and backend applications. For example, if you need a frontend web application then you can use C# .NET, VB .NET to built it, For a backend application, it could be a good idea to use ASP .NET. So whatever your web applications need, .NET has an answer for you. Exciting! Isn’t it?

So how is the .NET platform capable of supporting all these languages? A .NET platform contains two main components. The first one is called common language runtime (CLR) and the BCL (base class library). These two components together help normalise any supported language into a common language understood by the platform.

CLR is the main module responsible for executing commands issued in .NET. It functions through converting the programmer code into the native code. It also handles any arising exceptions (e.g. Errors). That is to say, without the CLR, we cannot execute the web application. In turn, CLR consists of two main components; common language specifications (CLS) and common type system (CTS). Imagine you are writing your code in c#, the main syntax in writing c# contains a semicolon at the end of each statement. On the other hand, if you are writing the same code in VB, this code will generate an error. In order to get around this, a .NET platform follows its own syntax rules ( language specifications). When a code is written in a supported language using the platform, it gets converted using the CLS to a code that could be understandable by the CLR. The CTS, on the other hand, is the module responsible for the conversion of different data types to a common data type that could be processed by the CLR. In simple terms, CLS and CTS transform the rules and regulations written in any supported to a common language the .NET platform can understand.

The base class library is divided into two types. One is the user-defined class library. The second one is predefined class library. In earlier languages like C and C++, we used to use the term header files. This term evolved to be called a package in java. Now in.Net the user-defined class library is called an assembly and the predefined class library we call a namespace. A namespace is a collection of predefined methods present in the predefined collection of classes in .NET. These predefined class libraries give an edge to.NET web application as it reduces the time of coding. An assembly is a small unit of deployment that the user is going to create the class and methods in. It normally has a .DLL extension or a .exe. DLL is a dynamic link library and exe is the executable file. The purpose of DLL is reusability. Exe file is the output file output application. While you cannot open the DLL file, you can reuse it in other application. Exe file is the classical windows output file you can open it to see the output of a particular application.

Mono is an open-source equivalent of the CLR that could be used on both Mac and Linux. The mono project includes several other options such as mod_mono (Apache), monotouch (iphone) and monodroid (Android). There are also a wide variety of apps such as Umbraco) and libraries, which you can have access to through nuget package manager.

Thus .NET provide web application cross usability. So, for example, if a programmer make a game for Windows or Xbox using XNA then make an app for Windows Phone 7, he/she can easily jump between different systems using the same tools and core languages. To summarise here are the pros and cons of using .NET.

.NET is very vertailse and can be used in a wide variety of applications it’s definitely not for just big companies. There are thousands of websites that were built using .NET platforms such as Stack Overflow,, godaddy, Unity 3. Also thousands of commercial prodcuts incluidng episerver and Kentico. The mono projects mentioned above are open source; and so, too, are a plethora of app

.NET : Pros and Cons

.NET – Pros

It informs developer if they made any mistake in coding before compile.

It comes with lots of tools and features to support programmers.

Works extremely well with Windows

Excellent platform for Enterprise applications.

Fast development with a lot of pre-coded options

An excellent UI for developers

.NET – Cons

Not easy to learn and harder to understand

Smaller support community

It operates only on a Microsoft server

It is slightly expensive because of its Microsoft license

Based on closed source technology.

PHP was first started in 1995 by t Rasmus luredoff. Originally coined the term as personal homepage tools for personal reasons) after version 3 PHP gained the recursive acronym PHP hypertext preprocessor. PHP was intended as a set of tools specifically for the web. PHP today a statistic from 2007 shows us that there were around 25 million domains on the web that used PHP it’s an extremely well-documented language you can even get the documentation in multiple languages translated by various users from the PHP community it’s a well supported language it’s open source it’s available on multiple platforms and it’s free so it is open source and platform exactly while open source means that the source code is available to anyone now

What is PHP?

PHP is high-level programming language. It is a general purpose language which means it is very flexible. It is also, an interpreted language. The way that you can look at what a compiled language work is that, you take all the individual components and assemble them into one block or structure. Then that’s solid block or structures is used to generate the result that you want out of your software. On the other hand, the way that you can think of an interpreted language is that they lack any block or structure. Instead interpreted languages possess blueprints. These blueprints tell us how we want to design this block or structure. Each time we run the program, the computer act as interpreter by taking the blueprints assembling the structure on the fly. However because of this, PHP run quite slowly, limited access to low level and speed optimization code, as well as liimited commands to run detailed operations on graphics.

So what can you do with PHP

What you can actually do with the source code may differ from one license to another so you want to be sure to read the licensing that’s provided with the source code to know exactly what you can and can’t do with that source code what is a platform ? Platform is basically taking your processors architecture so your CPU and how it deals with the various hardware components in your system and the operating system software that you run so whether you have Windows Linux or Mac OS for example running on your computer when you combine those two things together you get a platform and PHP pretty much allows you to work with any of these platforms it’s currently a stable version of PHP 5.3 point 9 as of the time of this recording and 5.4 is very close to being eleased with this six release candidate already out there are hundreds of active velopers that work on PHP all the time so you can rest assured that it does still have a very strong community constantly developing new extensions and third-party libraries for PHP taking a look for example at the Pakal and peer repositories there are also lots of new planned features that are constantly being integrated into the PHP source tree such as a PC or Cairo PHP gtk is another project that people are working on to enable us to be able to deliver desktop applications written in PHP so where can you get PHP if you’re.

PHP- Pros

It is open source that means it’s free to use and is constantly being improved by a large number of people rather than a single company.

PHP has large support community of programmer.

PHP is great for large projects like Facebook, White House websites.

PHP is highly effective at accessing and communicating with various database types. This makes it perfect for web-based scripts, such as website content management systems.

It’s is highly scalable and you can easily customize according to your need

There are thousands of Expert PHP developers available in the market.

Low cost easy to learn, code and pick up.

There are a number of online support groups to help speed up the learning process.

PHP- Cons

One of the main disadvantages of PHP is that it is generally not suitable for making desktop applications.

Compared to other languages, PHP applications tend to run slower.

It allows customization that causes bugs and poor coding than .NET .

PHP error handling is traditionally considered poor when compared to other programming languages which mean it can take more time to discover why a particular piece of code isn’t working as expected.

Speed & Performance PHP Vs .NET

To begin with, one common misconception about website performance and speed is that the language you choose to code in determines your website’s overall performance. In reality, however, there is very little difference between the performance of PHP websites and .NET websites. For example, take one of the most common tasks of any web application which is to query a database and output the results on the web server— and ultimately to the end user’s browser. In the aforementioned scenario, the coding language is simply communicating with the database and web servers to produce the desired outcome. Both PHP and .NET web development are equally equipped to access file systems, find images, and display pages on a web server and the speed of these performances rely much more on the database server, end user’s computer, and bandwidth, etc.

Visual Studio provides numerous “shortcuts” to facilitate programming in ASP.NET. Dealing with action events (e.g. User clicks), forms, databases etc. Is relatively straightforward and tends to take less time compared to PHP where everything needs to be literally scripted. This increases the risk of security flaws such as SQL injection. Nevertheless, inexperienced programming is, to my opinion, equally harmful in both environments.