29
coding for journalists (briefly) as run at the frontline club, london http://www.frontlineclub.com /

Frontline coding-mozfest

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Frontline coding-mozfest

coding for journalists(briefly)

as run at the frontline club, londonhttp://www.frontlineclub.com/

Page 2: Frontline coding-mozfest

introductions

•mark simpkins

[email protected]

•ex-BBC, ex-Accenture, ex-Moonfruit, ex-AKQA

Page 3: Frontline coding-mozfest

and you are?

Page 4: Frontline coding-mozfest

today

•The Internet

•How it works

•How the World Wide Web works

Page 5: Frontline coding-mozfest

today

•HTML

•HTML introduction

•examples

•CSS

•CSS introduction

•examples

Page 6: Frontline coding-mozfest

begin at the beginning

Page 7: Frontline coding-mozfest

how the internet works

• Internet Protocol Suite

•began to evolve in the 1960s

•TCP/IP

http://en.wikipedia.org/wiki/Internet_Protocol_Suite

Page 8: Frontline coding-mozfest

Internet Protocol Suite

•Four abstract layers

•Link Layer

• Internet Layer

•Transport Layer

•Application Layer

Page 9: Frontline coding-mozfest
Page 10: Frontline coding-mozfest

how the world wide web works

•Host A - Web Browser

•Host B - Web Server

•Listening on port 80

Page 11: Frontline coding-mozfest

HTML

•HyperText Mark up Language

•TBL specified HTML in 1990

•The history of HTML versions can get...

•http://en.wikipedia.org/wiki/HTML

Page 12: Frontline coding-mozfest

HTML

•Elements (and attributes)

•data types

•character references (use UTF-8)

•entity references (use UTF-8)

Page 13: Frontline coding-mozfest

•http://www.w3.org/

•http://www.w3.org/standards/webdesign/htmlcss

•http://www.w3.org/TR/html5/

Page 14: Frontline coding-mozfest

HTML

<!DOCTYPE html><html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!</p> </body></html>

Page 15: Frontline coding-mozfest

http://hackasaurus.org/

Page 16: Frontline coding-mozfest

CSS

•Cascading Style Sheets

•now at CSS3

•breaks the standard into a set of modules

•Describes presentation semantics

Page 17: Frontline coding-mozfest

CSS

•http://en.wikipedia.org/wiki/CSS_Zen_Garden

•http://www.csszengarden.com/

Page 18: Frontline coding-mozfest

Programming

• Java, C, C++, C#, smalltalk, Fortran, COBOL, Forth, Lisp, Perl, Python, Ruby, PHP, JavaScript, ASP...

•for more http://en.wikipedia.org/wiki/Lists_of_programming_languages

Page 19: Frontline coding-mozfest

Programming

• ‘Expressing computations that can be performed by a machine’

•(hence programming languages stretch back further than the modern computer to encompass Jacquard looms and player pianos)

Page 20: Frontline coding-mozfest

Programming

•Compiled vs Interpreted

Page 21: Frontline coding-mozfest

JavaScript•http://en.wikipedia.org/wiki/JavaScript

•Shipped 1995 (Netscape Navigator)

•Originally LiveScript (in fact Mocha)

•Became JavaScript after Netscape/Sun deal

•No connection with Java language

•Nov 1996 submitted to ECMA International resulted in the standardised version called ECMAScript

Page 22: Frontline coding-mozfest

JavaScript

•Examples

Page 23: Frontline coding-mozfest

PHP

•http://en.wikipedia.org/wiki/PHP

•Originally stood for:

•Personal Home Page

•PHP: Hypertext Preprocessor

•Originally produced in 1995

•Current version 5.3.6

Page 24: Frontline coding-mozfest

PHP

•an Introductory tutorial is available http://uk.php.net/tut.php

Page 25: Frontline coding-mozfest

PHP

•examples

Page 26: Frontline coding-mozfest

Wordpress

•Weblog engine

•Open Source

•Available to install yourself or hosted

Page 27: Frontline coding-mozfest

wordpress.com

•demo

Page 28: Frontline coding-mozfest

wordpress.org

•demo

Page 29: Frontline coding-mozfest

further reading

•www.w3c.org

•http://diveintohtml5.org/

•http://www.php.net/

•http://www.alistapart.com/