Top Banner
Computer science Languages, etc.
22

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

Dec 25, 2015

Download

Documents

Daisy Simon
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer science Languages, etc.. Overview For web-applications (HTML, JS) – Designing languages (HMTL, CSS) – Server Languages (PHP, ASP) – Extensions.

Computer science

Languages, etc.

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

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…

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

Web-applications

• HTML• CSS• Java Script• Visual Basic Script• XAML• PHP• ASP, ASP.NET• Microsoft Silverlight (VB, C#)• Adobe Flash (Action script)

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

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

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

PHP, ASP, ASP.NET

• PHP – “hypertext preprocessor”.

• ASP – “active server script”

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

Server languages

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

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

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

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

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

Windows Applications

• C/C++

• Microsoft .NET Framework work – consist of CLR and a class library– Visual C#– Visual Basic– Visual F#

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

C/C++

• Produces unmanaged code (native CPU code)• C was develop 1979, and has been used since

then.

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

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.

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

CLR – common language runtime

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

Examples from different languages

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

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

HTMLhead

body

<html>

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

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

</html>

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

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>

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

PHP [on the server]

<html><head></head><body><?php echo "Hello World"; ?></body></html>

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

PHP [sent to target machine]

<html><head></head><body>Hello World</body></html>

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

C++

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

Visual C#

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

Visual Basic

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