HTML, MATLAB & Delphi Aleksey Charapko 11/3/13. HTML Markup Language  Created at CERN for scientific purposes  No executable code  Controls the “look”

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Introducing JavaScript
The Web Warrior Guide to Web Design Technologies
Chapter 1: Introduction
Learning Web development. 3(+1) Tier architecture PHP script Remote services Web Server (Apache, IIS) Browser (IE, FireFox, Opera) Desktop (PC or MAC)
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
1 Web Wizards Guide To PHP David Lash Chapter 1 Introduction to PHP.
Tutorial 10 Programming with JavaScript
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
Chapter 3 Software Two major types of software
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 4 Computer Software.
Javascript and the Web Whys and Hows of Javascript.
PASCAL. HISTORY OF PASCAL Developed by Niklaus Wirth a member of the International Federation of Information Processing(IFIP) To provide features that.
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
HTML Structure & syntax
CSC3315 (Spring 2009)1 CSC 3315 Programming Languages Hamid Harroud School of Science and Engineering, Akhawayn University
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
1 JavaScript in Context. Server-Side Programming.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
Tutorial 10 Programming with JavaScript
Done by: Hanadi Muhsen1 Tutorial 1.  Learn the history of JavaScript  Create a script element  Write text to a Web page with JavaScript  Understand.
History of C 1950 – FORTRAN (Formula Translator) 1959 – COBOL (Common Business Oriented Language) 1971 – Pascal Between Ada.
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
1 Graphics CSCI 343, Fall 2015 Lecture 2 Introduction to HTML, JavaScript and WebGL.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Applications Development
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
4. Javascript M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307) Desain.
A (VERY) SHORT INTRODUCTION TO MATLAB J.A. MARR George Mason University School of Physics, Astronomy and Computational Sciences.
1 Server versus Client-Side Programming Server-SideClient-Side.
1 JavaScript in Context. Server-Side Programming.
Variables reference, coding, visibility. Rules for making names  permitted character set  maximum length, significant length  case sensitivity  special.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
JavaScript. JavaScript Introduction JavaScript is the world's most popular programming language. It is the language for HTML and the web, for servers,
LBSC 690 Session 4 Programming. Languages How do we learn a language? Learn by listening Then reading Then writing How do we teach programming? Learn.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Chapter 1: Introduction to Computers and Programming.
Part 1 The Basics of Information Systems. Purpose of Information Systems Information systems ◦ Collects, stores and organizes information ◦ Retrieves.
PHP using MySQL Database for Web Development (part II)
Programming Web Pages with JavaScript
Before You Begin Nahla Abuel-ola /WIT.
Tutorial 10 Programming with JavaScript
Key Ideas from day 1 slides
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
PHP Introduction.
Introduction to MATLAB
Introduction to Python
Use of Mathematics using Technology (Maltlab)
Document Object Model (DOM): Objects and Collections
Tutorial 10 Programming with JavaScript
Names and Binding In Text: Chapter 5.
Simulation And Modeling
An Introduction to JavaScript
CIS 136 Building Mobile Apps
Web Application Development Using PHP
Presentation transcript:

HTML, MATLAB & Delphi Aleksey Charapko 11/3/13

HTML Markup Language  Created at CERN for scientific purposes  No executable code  Controls the “look” of the document

HTML Widely used on the Internet Many versions exist  Most current version is HTML5 Still not an official standard Widely used Not fully supported

HTML Basic structure of HTML is a tag Tags define elements placed on the page  Tag is a markup command  Looks like a text inside angled braces Ex.,  Tags are often paired Opening and closing tags  Ex.,

HTML Has a number of defined tags All non tags are displayed on the screen as text  Ignores double white spaces and new lines  New lines are markup Tags exists for new lines

HTML Parsing  Many parsers exists – Browsers  HTML is parsed into DOM (Document Object Model) Tree structure, can be manipulated with JavaScript

HTML Example Example 0 HTML Example #0 This is a correct HTML file

HTML Parsing Most parsers are not “Strict”  Allow for errors in HTML  Have error correction mechanisms  Degrades readability Makes developers careless

HTML Tag Soup Tag Soup: Example 1 This is a tag soup example In this example child tag closes after the parent tag

HTML Parsing How much of HTML is correct? validator.w3.org   ?  ?

HTML Time Proven  20+ years Easy to use Hard to follow standards

MATLAB Scientific language  Used in research, engineering and education Interpreted Procedural OOP

MATLAB Comes bundled with MATLAB software Available for Windows, Linux, Mac OS Mobile app availability  Runs calculations in a cloud.

MATLAB Matrices MATrix LABoratory  Matrix manipulation  2x3 Matrix: MyMatrix = [4 5 7; 3 8 2]  Matrix Operations Must adhere to rules of matrix operations

MATLAB Matrices myMatrix = [4 5 7; 3 8 2]; myOtherMatrix = [1 2 3; 9 8 7]; ans = myMatrix * myOtherMatrix; “Inner matrix dimensions must agree” error myMatrix = [4 5 7; 3 8 2]; MyOtherMatrix2 = [1 2; 9 8; 3 4]; ans = myMatrix * MyOtherMatrix2 Result: ans =

MATLAB Matrices Matrix is not an array  Can hold only numeric data types MATLAB supports cells which can hold non- numeric data types

MATLAB Supports integration with other languages  C/C++, Fortran, etc. Requires special MATLAB function to be written  Java Can interface straight form the MATLAB code

MATLAB & Java Seamless integration with Java xmlObj is Java object  getChildNodes is method ob xmlObj children is another Java Object xmlObj = xmlread('file.xml') children = xmlObj.getChildNodes; children = children.item(0);

MATLAB Data Types Implicit Data types  Coercion is widespread  Can implicitly convert from MATLAB data types to non-MATLAB types  In some cases explicit conversion is required

MATLAB Many more interesting features: function [x, y] foo (a) x = 2 * a; if x > 10 y = a + 5; else y = 5 end Multiple returns No semicolon – prints the output Many structures end with “end” keyword

MATLAB Intuitive and easy to read  Somewhat confusing when accessing other languages Somewhat slow  Especially when allocating memory Have been in use for many years

Delphi Object Oriented Dialect of Object Pascal  Object Pascal originally developed by Apple

Delphi IDE

Delphi Based On Pascal  Has many pascal features begin... end blocks := assignment operator common for languages of the era

Delphi Strongly typed Flexible with Enumerated types  Can define sets of primitives of Enums  Sub-ranges of Primitives or Enums

Delphi var SmallNums : Set of 0..55; // Set of the 56 set members begin // We have a range of 0 to 55 values that we can set SmallNums := [3..12,23,30..32]; // Set some of the members on if 12 in SmallNums then ShowMessage('12 is in SmallNums') else ShowMessage('12 is NOT in SmallNums'); if 13 in SmallNums then ShowMessage('13 is in SmallNums') else ShowMessage('13 is NOT in SmallNums') Result: 12 is in SmallNums 13 is NOT in SmallNums

Delphi Delphi does not provide a garbage collection  Programer responsible for memory deallocation Supports functional programming  No variables/objects  Less memory leaks

Delphi RAD Often used for RAD and Prototyping  Rapid Application Development Delphi IDE has tools for RAD Languages facilitates RAD  Modular structure  Verbose declarations  Easy to read code

Delphi Easy to read  Yet hard to write Fast to develop Have been in use for 20+ years