22
Computer science Languages, etc.

Computer science Languages, etc.. Overview For web-applications (HTML, JS) – Designing languages (HMTL, CSS) – Server Languages (PHP, ASP) – Extensions

Embed Size (px)

Citation preview

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

• 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.

Designing languages

PHP, ASP, ASP.NET

• PHP – “hypertext preprocessor”.

• ASP – “active server script”

• ASP.NET – built on CLR. Therefore supports .NET languages.

Server languages

Silverlight and Flash

• 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.

Extensive languages

XAML

• 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.

Application design

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.

CLR – common language runtime

Examples from different languages

• HTML• CSS• PHP• C++• Visual C#• Visual Basic• Visual F#

HTMLhead

body

<html>

<head><title>Welcome!</title></head>

<body><p>Hello World</p></body>

</html>

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>

C++

Visual C#

Visual Basic