SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Overcoming code fear ,[object Object]
Unintelligible - Yuk ,[object Object]
But not all code is squiggles! ,[object Object]
So what is a script? ,[object Object],[object Object]
Languages ,[object Object],[object Object],[object Object],[object Object]
A standard HTTP request Request hello.HTML Browser Server hello.HTML <h1>Hello</h1> goodbye.HTML <h1>Hello</h1>
A standard HTTP request Response Browser Server hello..HTML <h1>Hello</h1> goodbye.HTML <h1>Bye</h1> <h1>Hello</h1>
A standard HTTP request Hello
A CGI Request Request hello. PHP Browser Server hello.PHP Echo “Hello”; goodbye.PHP Echo “Goodbye”;
A CGI Request Response hello.PHP Echo “Hello”; Browser Server goodbye.PHP Echo “Goodbye”; <h1>Hello</h1>
A CGI Request hello.PHP <?php echo “ <h1>Hello</h1> ”; ?>
A CGI Request Hello
Server Side vs Client Side Javascript Java Flash PHP Java ASP Client Server HTTP
Sequences ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],To Do:
Variables Name Price John 16.50
Variables Name Price Pete 16.50
Variables ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Input A PHP script Get Post Database Cookies Files Server Info To Do:
Output A PHP script HTML Database Cookies Files To Do:
Hello $name ,[object Object],[object Object],helloform.HTML … … … <form action=“ helloreply.php ” method=“post”> <label>Your Name</label> <input type=“text” name=“your_name” /> <input type=“submit” /> </form> … … … helloreply.PHP <html> <head>…..</head> <body> <?php $name = $_REQUEST[‘your_name’]; echo “<p>Hello $name</p>” ; ?> </body> <html>
Expressions and operators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Selection – Hello maybe ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],To Do: Plan for today if  it is hot  then  go outside otherwise  stay in bed
A more useful Hello maybe ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Repetition (looping) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hello function ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hello parameter ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Databases ,[object Object],[object Object],[object Object]
SQL ,[object Object],[object Object],[object Object]
Let’s Design an App Twaddl.com What have you done today? Update Cooked a curry Went to work Jogged 2 miles
Twaddl Database ID Twaddl 1 Argued with girlfriend – again! 3 Went to work 4 Cooked a curry 2 Jogged 2 miles
Twaddl Main Program Flow Handle posted  twaddl List twaddles
Handle Posted Twaddl Is submitted twaddle empty? Insert twaddle into database List twaddles No Yes Display an error message
List Twaddles Get list of twaddles from database End Program For each twaddle in list: Display twaddle
Complications! An example. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Where from here? ,[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

C A S Sample Php
C A S Sample PhpC A S Sample Php
C A S Sample Php
JH Lee
 
Advanced modulinos
Advanced modulinosAdvanced modulinos
Advanced modulinos
brian d foy
 

Was ist angesagt? (20)

TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
 
Web Scraping with PHP
Web Scraping with PHPWeb Scraping with PHP
Web Scraping with PHP
 
PHP POWERPOINT SLIDES
PHP POWERPOINT SLIDESPHP POWERPOINT SLIDES
PHP POWERPOINT SLIDES
 
Selenium Sandwich Part 1: Data driven Selenium
Selenium Sandwich Part 1: Data driven Selenium Selenium Sandwich Part 1: Data driven Selenium
Selenium Sandwich Part 1: Data driven Selenium
 
So cal0365productivitygroup feb2019
So cal0365productivitygroup feb2019So cal0365productivitygroup feb2019
So cal0365productivitygroup feb2019
 
Getting testy with Perl
Getting testy with PerlGetting testy with Perl
Getting testy with Perl
 
WordPress: From Antispambot to Zeroize
WordPress: From Antispambot to ZeroizeWordPress: From Antispambot to Zeroize
WordPress: From Antispambot to Zeroize
 
Laravel the right way
Laravel   the right wayLaravel   the right way
Laravel the right way
 
Session8
Session8Session8
Session8
 
Advanced modulinos trial
Advanced modulinos trialAdvanced modulinos trial
Advanced modulinos trial
 
C A S Sample Php
C A S Sample PhpC A S Sample Php
C A S Sample Php
 
Rails 2010 Workshop
Rails 2010 WorkshopRails 2010 Workshop
Rails 2010 Workshop
 
Example code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web ServiceExample code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web Service
 
Sadi service
Sadi serviceSadi service
Sadi service
 
Create a web-app with Cgi Appplication
Create a web-app with Cgi AppplicationCreate a web-app with Cgi Appplication
Create a web-app with Cgi Appplication
 
Class 6 - PHP Web Programming
Class 6 - PHP Web ProgrammingClass 6 - PHP Web Programming
Class 6 - PHP Web Programming
 
Advanced modulinos
Advanced modulinosAdvanced modulinos
Advanced modulinos
 
TDC 2016 (Florianópolis) - Vá para o próximo nível - Dicas e truques para a c...
TDC 2016 (Florianópolis) - Vá para o próximo nível - Dicas e truques para a c...TDC 2016 (Florianópolis) - Vá para o próximo nível - Dicas e truques para a c...
TDC 2016 (Florianópolis) - Vá para o próximo nível - Dicas e truques para a c...
 
PHP7 - Scalar Type Hints & Return Types
PHP7 - Scalar Type Hints & Return TypesPHP7 - Scalar Type Hints & Return Types
PHP7 - Scalar Type Hints & Return Types
 
Php
PhpPhp
Php
 

Andere mochten auch (8)

The Digital Enterprise
The Digital EnterpriseThe Digital Enterprise
The Digital Enterprise
 
Ite California Slide Presentation 2006
Ite California Slide Presentation 2006Ite California Slide Presentation 2006
Ite California Slide Presentation 2006
 
το χαρτί σε τρεις διαστάσεις
το χαρτί σε τρεις διαστάσειςτο χαρτί σε τρεις διαστάσεις
το χαρτί σε τρεις διαστάσεις
 
Down House
Down HouseDown House
Down House
 
παρουσίαση2biblia Kalokairiou
παρουσίαση2biblia Kalokairiouπαρουσίαση2biblia Kalokairiou
παρουσίαση2biblia Kalokairiou
 
Ti diavasame to 2011
Ti diavasame to 2011Ti diavasame to 2011
Ti diavasame to 2011
 
Xartaetoi
XartaetoiXartaetoi
Xartaetoi
 
σπυρος μελετζησ 1940 1944
σπυρος μελετζησ 1940 1944σπυρος μελετζησ 1940 1944
σπυρος μελετζησ 1940 1944
 

Ähnlich wie Programming For Designers V3

2014 database - course 2 - php
2014 database - course 2 - php2014 database - course 2 - php
2014 database - course 2 - php
Hung-yu Lin
 
P H P Part I I, By Kian
P H P  Part  I I,  By  KianP H P  Part  I I,  By  Kian
P H P Part I I, By Kian
phelios
 
Building an e:commerce site with PHP
Building an e:commerce site with PHPBuilding an e:commerce site with PHP
Building an e:commerce site with PHP
webhostingguy
 
Zendcon 2007 Features
Zendcon 2007 FeaturesZendcon 2007 Features
Zendcon 2007 Features
fivespeed5
 
Php Crash Course
Php Crash CoursePhp Crash Course
Php Crash Course
mussawir20
 
PHP and Rich Internet Applications
PHP and Rich Internet ApplicationsPHP and Rich Internet Applications
PHP and Rich Internet Applications
elliando dias
 
HackU PHP and Node.js
HackU PHP and Node.jsHackU PHP and Node.js
HackU PHP and Node.js
souridatta
 

Ähnlich wie Programming For Designers V3 (20)

2014 database - course 2 - php
2014 database - course 2 - php2014 database - course 2 - php
2014 database - course 2 - php
 
Modern Web Development with Perl
Modern Web Development with PerlModern Web Development with Perl
Modern Web Development with Perl
 
Modern Perl
Modern PerlModern Perl
Modern Perl
 
P H P Part I I, By Kian
P H P  Part  I I,  By  KianP H P  Part  I I,  By  Kian
P H P Part I I, By Kian
 
Php Basic
Php BasicPhp Basic
Php Basic
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Dealing with Legacy Perl Code - Peter Scott
Dealing with Legacy Perl Code - Peter ScottDealing with Legacy Perl Code - Peter Scott
Dealing with Legacy Perl Code - Peter Scott
 
Building an e:commerce site with PHP
Building an e:commerce site with PHPBuilding an e:commerce site with PHP
Building an e:commerce site with PHP
 
Basic PHP
Basic PHPBasic PHP
Basic PHP
 
Zendcon 2007 Features
Zendcon 2007 FeaturesZendcon 2007 Features
Zendcon 2007 Features
 
Perl Moderno
Perl ModernoPerl Moderno
Perl Moderno
 
PHP MySQL
PHP MySQLPHP MySQL
PHP MySQL
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
PHP: The easiest language to learn.
PHP: The easiest language to learn.PHP: The easiest language to learn.
PHP: The easiest language to learn.
 
Web Scraping with PHP
Web Scraping with PHPWeb Scraping with PHP
Web Scraping with PHP
 
07 Introduction to PHP #burningkeyboards
07 Introduction to PHP #burningkeyboards07 Introduction to PHP #burningkeyboards
07 Introduction to PHP #burningkeyboards
 
Php Crash Course
Php Crash CoursePhp Crash Course
Php Crash Course
 
PHP and Rich Internet Applications
PHP and Rich Internet ApplicationsPHP and Rich Internet Applications
PHP and Rich Internet Applications
 
HackU PHP and Node.js
HackU PHP and Node.jsHackU PHP and Node.js
HackU PHP and Node.js
 
Open Source Package PHP & MySQL
Open Source Package PHP & MySQLOpen Source Package PHP & MySQL
Open Source Package PHP & MySQL
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Programming For Designers V3

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. A standard HTTP request Request hello.HTML Browser Server hello.HTML <h1>Hello</h1> goodbye.HTML <h1>Hello</h1>
  • 7. A standard HTTP request Response Browser Server hello..HTML <h1>Hello</h1> goodbye.HTML <h1>Bye</h1> <h1>Hello</h1>
  • 8. A standard HTTP request Hello
  • 9. A CGI Request Request hello. PHP Browser Server hello.PHP Echo “Hello”; goodbye.PHP Echo “Goodbye”;
  • 10. A CGI Request Response hello.PHP Echo “Hello”; Browser Server goodbye.PHP Echo “Goodbye”; <h1>Hello</h1>
  • 11. A CGI Request hello.PHP <?php echo “ <h1>Hello</h1> ”; ?>
  • 12. A CGI Request Hello
  • 13. Server Side vs Client Side Javascript Java Flash PHP Java ASP Client Server HTTP
  • 14.
  • 15. Variables Name Price John 16.50
  • 16. Variables Name Price Pete 16.50
  • 17.
  • 18. Input A PHP script Get Post Database Cookies Files Server Info To Do:
  • 19. Output A PHP script HTML Database Cookies Files To Do:
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30. Let’s Design an App Twaddl.com What have you done today? Update Cooked a curry Went to work Jogged 2 miles
  • 31. Twaddl Database ID Twaddl 1 Argued with girlfriend – again! 3 Went to work 4 Cooked a curry 2 Jogged 2 miles
  • 32. Twaddl Main Program Flow Handle posted twaddl List twaddles
  • 33. Handle Posted Twaddl Is submitted twaddle empty? Insert twaddle into database List twaddles No Yes Display an error message
  • 34. List Twaddles Get list of twaddles from database End Program For each twaddle in list: Display twaddle
  • 35.
  • 36.