Framework vs Language

Apr 03 2008

Last night on Twitter, I had a discussion with some folk on whether you’d consider ASP a programming language. Actually, it started with: “is ASP.Net a programming language”.

In my opinion: no.

Asp.Net is a framework coupled with a markup language (which is not a programming language, just as HTML nor XML aren’t a programming languages). C#, Visual Basic, Boo, or whatever CLR language you like is a programming language you use in conjuncting with Asp.Net to produce webapps. So ASP.Net supports the code (for example, in C#) to actually getting things done. ASP.Net builds on the .Net framework (which isn’t a programming language either, of course).

And so we got to ASP. “ASP is a programming language”. Well, no, it’s not. Again, ASP is the framework (the objects like Server, Request, …) and the markup (the <% %> stuff in your HTML). It’s (usually) VBscript that’s the programming language. Like in ASP.Net, your perfectly capable to use another (Active)scripting language to power your websites. I’ve done numerous ones in JScript. There’s also PerlScript. It was/is even possible to combine more than 2 languages in the same project (that’s where the <script runat=”server”></script> blocks were born).

Finally, PHP. PHP is a bit of both. It’s both a programming language AND a framework: the numerous functions and modules included in PHP give you a large codebase to work with, and getting to form values (something for which you need a framework object for in ASP) is built into the language (the variables are right there where you need them, automagically created). I know there’s more to it than that, but basically everything is just right there.

So that’s a fundamental difference between ASP, ASP.net (but also JSP, for example) on one side and PHP on the other side.

I guess Perl is on the PHP side, although it’s “standard” library is much less extensive than PHP’s.

Oh, and another thing: people who claim that PHP shouldn’t be mixed with HTML. ORLY? That’s what was it made for in the first place, n00b. :p PHP begs to be mixed with HTML. That’s where it shines!

5 responses so far

  1. [...] en of ASP.Net ook een programmeertaal is. Maar omdat ik u hier daarmee niet mee ga lastig vallen, verwijs ik u graag door naar mijn andere blog: daar gaat het over programmeren en zo, dus daar mag dat. Share with [...]

  2. PHP a programming language? It doesn’t get compiled, it gets interpreted, so that makes it a script, no?

    (I <3 php)

  3. A programming language is a language used to write computer programs, which involve a computer performing some kind of computation or algorithm and possibly control external devices such as printers, robots, and so on.

    That means that scripting languages are programming languages. Or do you mean you aren’t programming when writing PHP scripts?

  4. Point taken :)

  5. Ik denk dat je die “in my opinion” in “In my opinion: no.” gerust mag weglaten.

    ASP.net is geen programmeertaal maar een framework, c#, vb.net etc wel. punt. Zou er iemand op de planeet het daar niet mee eens zijn? Dan ben ik benieuwd naar zijn/haar argumenten…

Leave a Reply