SlideShare une entreprise Scribd logo
1  sur  14
Télécharger pour lire hors ligne
Intro To Server Side Development 
Week Six
General Review 
• Literals: 
• boolean 
• integer 
• float 
• string 
• array 
• Variables: 
• $anything 
• $any['array'] 
• Expressions 
• 1 + 1 == 2 
• $a = $b + 1 
• Control Structures 
• conditional branches 
• conditional loops: 
• while, do-while 
• for, foreach 
• Workflow Diagrams: 
• diamonds: decisions 
• rectangles: process 
• arrows: branches 
• Version Control & Git
Review - Arrays 
• An array type is a data type that is meant to describe a collection of values 
or variables, each selected by one or more indices(keys) tha can be 
computed at run-time of the program. 
• By default, the array type in PHP generates computed, numerical indices, 
starting with zero, to make a list: 
var_dump(array( 'one', 'two', 3, 4, 4.1, 4.2 )); 
$list = array(); $list[] = 'one'; $list[] = 'two'; 
• The value for the key can also be specified as any scalar literal (neither 
array, object nor resource), often a string 
var_dump(array( 'one' => 1, 2 => 'two' )): 
$list[4] = 'four'; $list['five dot one'] = 5.1;
Control Flow Statements 
• Control Flow - refers to the order in which the individual statements, 
instructions or function calls of an imperative or declarative program are 
executed or evaluated. Execution results in a choice being made as to 
which of two or more paths should be followed. 
• Types of Control Flow statements: 
• continuation at a different statement (unconditional branch or jump) 
• execute statements only if some condition is met (conditional branch) 
• execute statements until some conditional is met(loop, conditional branch) 
• execute defined statements and return (sub/co-routines, continuations)s 
• stop executing statements (unconditional halt)
Review - Loops 
• A loop is a sequence of statements which is specified once but which may be carried out several times in 
succession, a specified number of times or indefinitely 
• Specific number of times: 
for ( $count = 0; $count < $max; $count++ ) do_something(); 
• Once per each item in a collection(array): 
foreach ( $collection as $item ) do_something(); 
foreach ($collection as $key => $value ) do_something(); 
• Until some condition is met: 
while ( $condition == true ) do_something(); 
do something(); while ( $condition ); 
• Indefinitely(infinitely): 
while ( true ) do_something(); 
do something(); while ( true);
Procedural Programming 
• Procedural programming is based on specifying the 
steps the program must take to reach the desired state. 
• Procedures, also known as routines, subroutines, 
methods or functions contain a series of computational 
steps to be carried out. Any given procedure might be 
called at any point during a program's execution.
Declarations 
• Unlike variables, functions must be "declared" to use 
do_something(); // "calling" an undefined function 
!! Fatal Error: function do_something is not defined 
• The keyword function declares a function 
function do_nothing() { } 
do_nothing(); // "invoking" a function 
• Each function can only be declared once: 
foreach ( range(1, 10) as $loop ) 
function once_and_only_once() { } 
!! Fatal Error: Cannot redeclare once_and_only_once()
Modular Programming 
• Modular Programming ("top-down design" or "stepwise refinement") is a software 
design technique that emphasizes separating the functionality of a program into 
independent, interchangeable modules, such that each contains everything necessary 
to execute only one aspect of the desired functionality 
• Separation of Concerns - one piece at a time. Increasing the complexity of 
a system compounds the difficulty of maintaining it; smaller and simpler 
components are easier to maintain 
• Abstraction - write it once and only once 
• Encapsulation - everything needed is there 
• Scoping - doesn't affect other elements
Functions 
• Functions must start with the function keyword, must contain a valid 
function identifier (with variables), provide an optional list of arguments 
surrounded by parentheses, even if there are none, and a block of code: 
function do_something( $an_argument, $another ) { 
// Code goes here 
} 
• Nothing from outside is visible to code in the block 
• Nothing inside the block is visible outside the function 
• Pass values into a function as arguments at invocation: 
do_something( 'some value', "$another_value );
$outside_of_scope = 'outside only'; 
function do_something( $an_arg, $arg_two = false ) { 
$inside_of_scope = 'inside only'; 
if( $arg_two ) echo $outside_of_scope; 
echo $an_arg; // passed in at invocation 
return $inside_of_scope; // passed back out 
} 
do_something( 'now' ); // prints "now" 
echo $inside_of_scope; // Notice: Undefined variable 
do_something( 'again', true ); // Notice: Undefined variable
Assignment 6.1 
Finding Functions
Finding Functions 
• Pair up, login to Github 
• Open an existing Workspace and find some functions 
together 
• Copy and paste the function definition for each into a new file 
called assignment-6.1.md 
• Identify the name of the function and the names of all of the 
arguments with comments; bonus points for identifying the 
return value of the function 
• Find at least three invocations of each function
Assignment 6.2 
Identifying Functions & Scope
Functions & Scope 
• Find at least three functions in the WordPress project 
• Document them in a new file called assignment-6.2.md 
• Use the format: path/to/file.php:9999 
• Identify the name of the function and its arguments with comments 
• Identify the in-scope variables by name 
• Identify the return value of each function 
• Add and commit your file, push to Github

Contenu connexe

Tendances

Java Script Promise
Java Script PromiseJava Script Promise
Java Script Promise
Alok Guha
 

Tendances (20)

Node Boot Camp
Node Boot CampNode Boot Camp
Node Boot Camp
 
Introduction to reactive programming & ReactiveCocoa
Introduction to reactive programming & ReactiveCocoaIntroduction to reactive programming & ReactiveCocoa
Introduction to reactive programming & ReactiveCocoa
 
Java Script Promise
Java Script PromiseJava Script Promise
Java Script Promise
 
Getting to Grips with SilverStripe Testing
Getting to Grips with SilverStripe TestingGetting to Grips with SilverStripe Testing
Getting to Grips with SilverStripe Testing
 
Flying under the radar
Flying under the radarFlying under the radar
Flying under the radar
 
SQL Functions
SQL FunctionsSQL Functions
SQL Functions
 
Doctrine 2.0 Enterprise Persistence Layer for PHP
Doctrine 2.0 Enterprise Persistence Layer for PHPDoctrine 2.0 Enterprise Persistence Layer for PHP
Doctrine 2.0 Enterprise Persistence Layer for PHP
 
Scala - just good for Java shops?
Scala - just good for Java shops?Scala - just good for Java shops?
Scala - just good for Java shops?
 
User defined-functions-cassandra-summit-eu-2014
User defined-functions-cassandra-summit-eu-2014User defined-functions-cassandra-summit-eu-2014
User defined-functions-cassandra-summit-eu-2014
 
What You Need to Know about Lambdas
What You Need to Know about LambdasWhat You Need to Know about Lambdas
What You Need to Know about Lambdas
 
Modern Perl for Non-Perl Programmers
Modern Perl for Non-Perl ProgrammersModern Perl for Non-Perl Programmers
Modern Perl for Non-Perl Programmers
 
Modern Perl Catch-Up
Modern Perl Catch-UpModern Perl Catch-Up
Modern Perl Catch-Up
 
Introduction to java 8 stream api
Introduction to java 8 stream apiIntroduction to java 8 stream api
Introduction to java 8 stream api
 
Typescript tips & tricks
Typescript tips & tricksTypescript tips & tricks
Typescript tips & tricks
 
Optimizing a large angular application (ng conf)
Optimizing a large angular application (ng conf)Optimizing a large angular application (ng conf)
Optimizing a large angular application (ng conf)
 
Lecture 5 javascript
Lecture 5 javascriptLecture 5 javascript
Lecture 5 javascript
 
Use the @types, Luke
Use the @types, LukeUse the @types, Luke
Use the @types, Luke
 
Declarative Data Modeling in Python
Declarative Data Modeling in PythonDeclarative Data Modeling in Python
Declarative Data Modeling in Python
 
Intro to React
Intro to ReactIntro to React
Intro to React
 
Working with Cocoa and Objective-C
Working with Cocoa and Objective-CWorking with Cocoa and Objective-C
Working with Cocoa and Objective-C
 

En vedette

DIG1108C Lesson 2 Fall 2014
DIG1108C Lesson 2 Fall 2014DIG1108C Lesson 2 Fall 2014
DIG1108C Lesson 2 Fall 2014
David Wolfpaw
 

En vedette (12)

WordPress tools and plugins
WordPress tools and pluginsWordPress tools and plugins
WordPress tools and plugins
 
DIG1108C Lesson 7 Fall 2014
DIG1108C Lesson 7 Fall 2014DIG1108C Lesson 7 Fall 2014
DIG1108C Lesson 7 Fall 2014
 
Hooks, Actions, and Filters Oh My!
Hooks, Actions, and Filters Oh My!Hooks, Actions, and Filters Oh My!
Hooks, Actions, and Filters Oh My!
 
DIG1108C Lesson 5 Fall 2014
DIG1108C Lesson 5 Fall 2014DIG1108C Lesson 5 Fall 2014
DIG1108C Lesson 5 Fall 2014
 
Dig1108C Lesson 1 Fall 2014
Dig1108C Lesson 1 Fall 2014Dig1108C Lesson 1 Fall 2014
Dig1108C Lesson 1 Fall 2014
 
DIG1108C Lesson 2 Fall 2014
DIG1108C Lesson 2 Fall 2014DIG1108C Lesson 2 Fall 2014
DIG1108C Lesson 2 Fall 2014
 
Introduction to mobile usability
Introduction to mobile usabilityIntroduction to mobile usability
Introduction to mobile usability
 
WordPress as a Minimum Viable Product - WordCamp Tampa 2014
WordPress as a Minimum Viable Product - WordCamp Tampa 2014WordPress as a Minimum Viable Product - WordCamp Tampa 2014
WordPress as a Minimum Viable Product - WordCamp Tampa 2014
 
DIG1108C Lesson 4 Fall 2014
DIG1108C Lesson 4 Fall 2014DIG1108C Lesson 4 Fall 2014
DIG1108C Lesson 4 Fall 2014
 
Becoming a Respected WordPress Developer
Becoming a Respected WordPress DeveloperBecoming a Respected WordPress Developer
Becoming a Respected WordPress Developer
 
Oc bus tracker_120602
Oc bus tracker_120602Oc bus tracker_120602
Oc bus tracker_120602
 
Spring Cleaning on Your Site
Spring Cleaning on Your SiteSpring Cleaning on Your Site
Spring Cleaning on Your Site
 

Similaire à DIG1108C Lesson 6 - Fall 2014

Android webinar class_java_review
Android webinar class_java_reviewAndroid webinar class_java_review
Android webinar class_java_review
Edureka!
 
MIND sweeping introduction to PHP
MIND sweeping introduction to PHPMIND sweeping introduction to PHP
MIND sweeping introduction to PHP
BUDNET
 
gdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptxgdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptx
sandeshshahapur
 

Similaire à DIG1108C Lesson 6 - Fall 2014 (20)

DIG1108 Lesson 6
DIG1108 Lesson 6DIG1108 Lesson 6
DIG1108 Lesson 6
 
Introduction to Angular JS
Introduction to Angular JSIntroduction to Angular JS
Introduction to Angular JS
 
PHP from soup to nuts Course Deck
PHP from soup to nuts Course DeckPHP from soup to nuts Course Deck
PHP from soup to nuts Course Deck
 
Php course-in-navimumbai
Php course-in-navimumbaiPhp course-in-navimumbai
Php course-in-navimumbai
 
DIG1108C Lesson3 Fall 2014
DIG1108C Lesson3 Fall 2014DIG1108C Lesson3 Fall 2014
DIG1108C Lesson3 Fall 2014
 
React Development with the MERN Stack
React Development with the MERN StackReact Development with the MERN Stack
React Development with the MERN Stack
 
Class 2 - Introduction to PHP
Class 2 - Introduction to PHPClass 2 - Introduction to PHP
Class 2 - Introduction to PHP
 
Android webinar class_java_review
Android webinar class_java_reviewAndroid webinar class_java_review
Android webinar class_java_review
 
07 control+structures
07 control+structures07 control+structures
07 control+structures
 
Java Tutorial
Java Tutorial Java Tutorial
Java Tutorial
 
Scaling php applications with redis
Scaling php applications with redisScaling php applications with redis
Scaling php applications with redis
 
Class 3 - PHP Functions
Class 3 - PHP FunctionsClass 3 - PHP Functions
Class 3 - PHP Functions
 
PHP - Introduction to PHP Functions
PHP -  Introduction to PHP FunctionsPHP -  Introduction to PHP Functions
PHP - Introduction to PHP Functions
 
2. overview of c#
2. overview of c#2. overview of c#
2. overview of c#
 
Php 5.4: New Language Features You Will Find Useful
Php 5.4: New Language Features You Will Find UsefulPhp 5.4: New Language Features You Will Find Useful
Php 5.4: New Language Features You Will Find Useful
 
Introduction in php part 2
Introduction in php part 2Introduction in php part 2
Introduction in php part 2
 
MIND sweeping introduction to PHP
MIND sweeping introduction to PHPMIND sweeping introduction to PHP
MIND sweeping introduction to PHP
 
gdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptxgdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptx
 
predefined and user defined functions
predefined and user defined functionspredefined and user defined functions
predefined and user defined functions
 
mongodb-aggregation-may-2012
mongodb-aggregation-may-2012mongodb-aggregation-may-2012
mongodb-aggregation-may-2012
 

Plus de David Wolfpaw

Plus de David Wolfpaw (7)

Running Your Service Business on WordPress
Running Your Service Business on WordPressRunning Your Service Business on WordPress
Running Your Service Business on WordPress
 
Stop the Green Light Panic - Lisa Melegari
Stop the Green Light Panic - Lisa MelegariStop the Green Light Panic - Lisa Melegari
Stop the Green Light Panic - Lisa Melegari
 
php[world] Hooks, Actions and Filters Oh My!
php[world] Hooks, Actions and Filters Oh My!php[world] Hooks, Actions and Filters Oh My!
php[world] Hooks, Actions and Filters Oh My!
 
Beginner Workshop WCMIA
Beginner Workshop WCMIABeginner Workshop WCMIA
Beginner Workshop WCMIA
 
Basic word press development
Basic word press developmentBasic word press development
Basic word press development
 
Geekaboo presentation 2013 - Brett Napoli
Geekaboo presentation 2013 - Brett NapoliGeekaboo presentation 2013 - Brett Napoli
Geekaboo presentation 2013 - Brett Napoli
 
Organization methods in word press
Organization methods in word pressOrganization methods in word press
Organization methods in word press
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
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...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

DIG1108C Lesson 6 - Fall 2014

  • 1. Intro To Server Side Development Week Six
  • 2. General Review • Literals: • boolean • integer • float • string • array • Variables: • $anything • $any['array'] • Expressions • 1 + 1 == 2 • $a = $b + 1 • Control Structures • conditional branches • conditional loops: • while, do-while • for, foreach • Workflow Diagrams: • diamonds: decisions • rectangles: process • arrows: branches • Version Control & Git
  • 3. Review - Arrays • An array type is a data type that is meant to describe a collection of values or variables, each selected by one or more indices(keys) tha can be computed at run-time of the program. • By default, the array type in PHP generates computed, numerical indices, starting with zero, to make a list: var_dump(array( 'one', 'two', 3, 4, 4.1, 4.2 )); $list = array(); $list[] = 'one'; $list[] = 'two'; • The value for the key can also be specified as any scalar literal (neither array, object nor resource), often a string var_dump(array( 'one' => 1, 2 => 'two' )): $list[4] = 'four'; $list['five dot one'] = 5.1;
  • 4. Control Flow Statements • Control Flow - refers to the order in which the individual statements, instructions or function calls of an imperative or declarative program are executed or evaluated. Execution results in a choice being made as to which of two or more paths should be followed. • Types of Control Flow statements: • continuation at a different statement (unconditional branch or jump) • execute statements only if some condition is met (conditional branch) • execute statements until some conditional is met(loop, conditional branch) • execute defined statements and return (sub/co-routines, continuations)s • stop executing statements (unconditional halt)
  • 5. Review - Loops • A loop is a sequence of statements which is specified once but which may be carried out several times in succession, a specified number of times or indefinitely • Specific number of times: for ( $count = 0; $count < $max; $count++ ) do_something(); • Once per each item in a collection(array): foreach ( $collection as $item ) do_something(); foreach ($collection as $key => $value ) do_something(); • Until some condition is met: while ( $condition == true ) do_something(); do something(); while ( $condition ); • Indefinitely(infinitely): while ( true ) do_something(); do something(); while ( true);
  • 6. Procedural Programming • Procedural programming is based on specifying the steps the program must take to reach the desired state. • Procedures, also known as routines, subroutines, methods or functions contain a series of computational steps to be carried out. Any given procedure might be called at any point during a program's execution.
  • 7. Declarations • Unlike variables, functions must be "declared" to use do_something(); // "calling" an undefined function !! Fatal Error: function do_something is not defined • The keyword function declares a function function do_nothing() { } do_nothing(); // "invoking" a function • Each function can only be declared once: foreach ( range(1, 10) as $loop ) function once_and_only_once() { } !! Fatal Error: Cannot redeclare once_and_only_once()
  • 8. Modular Programming • Modular Programming ("top-down design" or "stepwise refinement") is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality • Separation of Concerns - one piece at a time. Increasing the complexity of a system compounds the difficulty of maintaining it; smaller and simpler components are easier to maintain • Abstraction - write it once and only once • Encapsulation - everything needed is there • Scoping - doesn't affect other elements
  • 9. Functions • Functions must start with the function keyword, must contain a valid function identifier (with variables), provide an optional list of arguments surrounded by parentheses, even if there are none, and a block of code: function do_something( $an_argument, $another ) { // Code goes here } • Nothing from outside is visible to code in the block • Nothing inside the block is visible outside the function • Pass values into a function as arguments at invocation: do_something( 'some value', "$another_value );
  • 10. $outside_of_scope = 'outside only'; function do_something( $an_arg, $arg_two = false ) { $inside_of_scope = 'inside only'; if( $arg_two ) echo $outside_of_scope; echo $an_arg; // passed in at invocation return $inside_of_scope; // passed back out } do_something( 'now' ); // prints "now" echo $inside_of_scope; // Notice: Undefined variable do_something( 'again', true ); // Notice: Undefined variable
  • 12. Finding Functions • Pair up, login to Github • Open an existing Workspace and find some functions together • Copy and paste the function definition for each into a new file called assignment-6.1.md • Identify the name of the function and the names of all of the arguments with comments; bonus points for identifying the return value of the function • Find at least three invocations of each function
  • 13. Assignment 6.2 Identifying Functions & Scope
  • 14. Functions & Scope • Find at least three functions in the WordPress project • Document them in a new file called assignment-6.2.md • Use the format: path/to/file.php:9999 • Identify the name of the function and its arguments with comments • Identify the in-scope variables by name • Identify the return value of each function • Add and commit your file, push to Github