230 likes | 384 Views
Computer science. Languages, etc. Overview. For web-applications (HTML, JS) Designing languages (HMTL, CSS) Server Languages (PHP, ASP) Extensions For windows applications (C++,VB, C#) Unmanaged applications Managed applications Others…. Web-applications. HTML CSS Java Script
E N D
Computer science Languages, etc.
Overview • For web-applications (HTML, JS) • Designing languages (HMTL, CSS) • Server Languages (PHP, ASP) • Extensions • For windows applications (C++,VB, C#) • Unmanaged applications • Managed applications • Others…
Web-applications • HTML • CSS • Java Script • Visual Basic Script • XAML • PHP • ASP, ASP.NET • Microsoft Silverlight (VB, C#) • Adobe Flash (Action script)
HTML, CSS, Java Script Designing languages • HTML – “hypertext markup language” standard format of writing a webpage. • CSS – “cascading style sheet”. Describes the tags. It controls layout of multiple Web pages at once. • Java Script – performs an event. Makes a page alive.
PHP, ASP, ASP.NET Server languages • PHP – “hypertext preprocessor”. • ASP – “active server script” • ASP.NET – built on CLR. Therefore supports .NET languages.
Silverlight and Flash Extensive languages • In order to run an application made by these, you need a plug-in for the web browser • Microsoft Silverlight – supports VB, C#. • Adobe Flash – supports Action Script.
XAML Application design • XAML – “Extensible Application Markup Language”. It is extended XML developed by Microsoft. • One usage is to write a layout for applications. • XML – similar to html, but does not require specific tags; you define them.
Windows Applications • C/C++ • Microsoft .NET Framework work – consist of CLR and a class library • Visual C# • Visual Basic • Visual F#
C/C++ • Produces unmanaged code (native CPU code) • C was develop 1979, and has been used since then.
Microsoft .NET Framework • All languages that target CLR may use almost all features in .NET Class Library. • A language that targets CLR may only use a subset of the features that are available in CLR. • All applications are usually managed. They contain metadata, etc. • When you run an application of that kind, the JIT compiler compiles the IL code.
Examples from different languages • HTML • CSS • PHP • C++ • Visual C# • Visual Basic • Visual F#
HTML head <html> <head> <title>Welcome!</title> </head> <body> <p>Hello World</p> </body> </html> body
CSS <html> <head> <style type="text/css"> .red { color:red; } .blue { color:blue; } </style> </head> <body> <p class="red">Red</p> <p class="blue">Blue</p> </body> </html>
PHP [on the server] <html> <head> </head> <body> <?php echo "Hello World"; ?> </body> </html>
PHP [sent to target machine] <html> <head> </head> <body> Hello World </body> </html>