SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
UNDERSTAND PROGRAMMING THROUGH PSUEDO-CODE — RENEE BLUNT
Logic Over Language
CanIlearnthecodes?
/// Page 14
Focusonwhatisimportant
CodingisAboutSolving
Problems
pseu·do
not actually, but having the appearance of
Pass out movie tickets for PRPL movie day
P R O B L E M
For every employee that RSVP’d to the movie, give them a ticket
S O L U T I O N
For every employee
that RSVP’d to the movie
give them a ticket
S O L U T I O N B R O K E N D O W N
For every employee
that RSVP’d to the movie
give them a ticket
S O L U T I O N B R O K E N D O W N M O R E
For Loop
Conditional
Method
LemmeSeeDatCode
J A V A S C R I P T P H P
P Y T H O N C #
for (let prplPerson of prplPeople) {
if(prplPerson.rsvp){
Jackie.giveTicket(prplPerson);
}
}
foreach ($prplPeople as $prplPerson) {
if($prplPerson->rsvp){
Jackie::giveTicket($prplPerson);
}
}
for prplPerson in prplPeople:
if prplPerson.rsvp:
Jackie.giveTicket(prplPerson)
foreach(PRPLHuman prplPerson in prplPeople)
{
if(prplPerson.rsvp)
{
Jackie.giveTicket(prplPerson);
}
}
There’sMore
B U I L D I N G B L O C K S
•What’s a Jackie?
•What’s a PRPL People?
•How does a PRPL Person RSVP?
•Where do the tickets come from?
•Uh, what movie?
MakeaJackie
P L A I N L A N G U A G E C O D E Y L A N G U A G E
Is a PRPL employee
Is a human
Does stuff:
• administrative tasks
• organizes events
• coordinates movie day
• makes funnies
Jackie extends PRPL Employee
PRPL Employee extends Human
Methods:
• doAdminThings
• organizeEvent
• coordinateMovieDay
• makeFunny
vs.
Jackie
MakeaPRPL
Person
P L A I N L A N G U A G E C O D E Y L A N G U A G E
Is a human
Has Stuff:
• has a ticket
• has a job title
Does stuff:
• goes to a movie
• RSVPs to a movie
PRPL Employee extends Human
Properties:
• ticket (boolean)
• job title (string)
Methods:
• goToMovie
• rsvpToMovie
vs.
PRPLPerson
MakeaPRPL
People
P L A I N L A N G U A G E C O D E Y L A N G U A G E
Holds PRPL people
How many PRPL people?
Collection/Array/List
Properties:
• count
Methods:
• getCount
vs.
PRPLPeople
CHECKCHECK
IsThisThingOn?
B U I L D I N G B L O C K S
•What’s a Jackie?
•What’s a PRPL People?
•How does a PRPL Person RSVP?
•Where do the tickets come from?
•Uh, what movie?
KeepBuilding
http://bfy.tw/5ymq
F U R T H E R R E A D I N G
Renee Blunt (renee@prpl.rs)
Thanks!
PRPL HQ 189 S. Orange Ave., Suite 2020 Orlando, FL 32801
@prplrckscssrs
fb.com/prplrckscssrs
www.prpl.rs
Follow PRPL

Contenu connexe

En vedette

Introduction to UBI
Introduction to UBIIntroduction to UBI
Introduction to UBI
Roy Lee
 

En vedette (15)

Logic: Language and Information 1
Logic: Language and Information 1Logic: Language and Information 1
Logic: Language and Information 1
 
Introduction To Programming with Python-4
Introduction To Programming with Python-4Introduction To Programming with Python-4
Introduction To Programming with Python-4
 
Introduction to UBI
Introduction to UBIIntroduction to UBI
Introduction to UBI
 
Python 4 Arc
Python 4 ArcPython 4 Arc
Python 4 Arc
 
The Python Programming Language and HDF5: H5Py
The Python Programming Language and HDF5: H5PyThe Python Programming Language and HDF5: H5Py
The Python Programming Language and HDF5: H5Py
 
Clase 2 estatica
Clase 2 estatica Clase 2 estatica
Clase 2 estatica
 
Using HDF5 and Python: The H5py module
Using HDF5 and Python: The H5py moduleUsing HDF5 and Python: The H5py module
Using HDF5 and Python: The H5py module
 
HDF5 Tools
HDF5 ToolsHDF5 Tools
HDF5 Tools
 
Python programming - Everyday(ish) Examples
Python programming - Everyday(ish) ExamplesPython programming - Everyday(ish) Examples
Python programming - Everyday(ish) Examples
 
Lets learn Python !
Lets learn Python !Lets learn Python !
Lets learn Python !
 
Introduction To Programming with Python Lecture 2
Introduction To Programming with Python Lecture 2Introduction To Programming with Python Lecture 2
Introduction To Programming with Python Lecture 2
 
Cyberoam Firewall Presentation
Cyberoam Firewall PresentationCyberoam Firewall Presentation
Cyberoam Firewall Presentation
 
introduction to python
introduction to pythonintroduction to python
introduction to python
 
Introduction To Programming with Python-3
Introduction To Programming with Python-3Introduction To Programming with Python-3
Introduction To Programming with Python-3
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 

Plus de Purple, Rock, Scissors

Plus de Purple, Rock, Scissors (20)

PRPL @ SXSW: The Symbiosis of Brains, Marketing, and Design
PRPL @ SXSW: The Symbiosis of Brains, Marketing, and DesignPRPL @ SXSW: The Symbiosis of Brains, Marketing, and Design
PRPL @ SXSW: The Symbiosis of Brains, Marketing, and Design
 
PRPL Academy x Valencia College: Creative Behaviors
PRPL Academy x Valencia College: Creative Behaviors PRPL Academy x Valencia College: Creative Behaviors
PRPL Academy x Valencia College: Creative Behaviors
 
Magic the Gathering 101
Magic the Gathering 101Magic the Gathering 101
Magic the Gathering 101
 
Tips for Optimal Productivity
Tips for Optimal ProductivityTips for Optimal Productivity
Tips for Optimal Productivity
 
Strategies for Habit Formation
Strategies for Habit FormationStrategies for Habit Formation
Strategies for Habit Formation
 
Managing Your Stress with Plants
Managing Your Stress with PlantsManaging Your Stress with Plants
Managing Your Stress with Plants
 
Video Production Process
Video Production ProcessVideo Production Process
Video Production Process
 
Folder Structures in After Effects
Folder Structures in After EffectsFolder Structures in After Effects
Folder Structures in After Effects
 
Object-Oriented Content Strategy
Object-Oriented Content StrategyObject-Oriented Content Strategy
Object-Oriented Content Strategy
 
State of Livestream and Raw Content
State of Livestream and Raw ContentState of Livestream and Raw Content
State of Livestream and Raw Content
 
Digital Entropy: Swimming Upstream in a Fast-Moving Industry
Digital Entropy: Swimming Upstream in a Fast-Moving IndustryDigital Entropy: Swimming Upstream in a Fast-Moving Industry
Digital Entropy: Swimming Upstream in a Fast-Moving Industry
 
Goal-Driven Design: A Bauhaus Approach to Digital Strategy
Goal-Driven Design: A Bauhaus Approach to Digital StrategyGoal-Driven Design: A Bauhaus Approach to Digital Strategy
Goal-Driven Design: A Bauhaus Approach to Digital Strategy
 
A Field Guide to Interaction Design (IxD)
A Field Guide to Interaction Design (IxD)A Field Guide to Interaction Design (IxD)
A Field Guide to Interaction Design (IxD)
 
Excel Crash Course: Pivot Tables
Excel Crash Course: Pivot TablesExcel Crash Course: Pivot Tables
Excel Crash Course: Pivot Tables
 
The Odd Couple of UX Design
The Odd Couple of UX DesignThe Odd Couple of UX Design
The Odd Couple of UX Design
 
Surf Expo Social Media Audit by PRPL
Surf Expo Social Media Audit by PRPLSurf Expo Social Media Audit by PRPL
Surf Expo Social Media Audit by PRPL
 
Mobile-Friendly Social Media Strategy
Mobile-Friendly Social Media StrategyMobile-Friendly Social Media Strategy
Mobile-Friendly Social Media Strategy
 
It's Not You, It's Me: Saying Bye to Google Keyword Data
It's Not You, It's Me: Saying Bye to Google Keyword DataIt's Not You, It's Me: Saying Bye to Google Keyword Data
It's Not You, It's Me: Saying Bye to Google Keyword Data
 
Advertising Analytics 2.0
Advertising Analytics 2.0Advertising Analytics 2.0
Advertising Analytics 2.0
 
Intro to Microinteractions: Foundation of Details that Delight
Intro to Microinteractions: Foundation of Details that DelightIntro to Microinteractions: Foundation of Details that Delight
Intro to Microinteractions: Foundation of Details that Delight
 

Dernier

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Dernier (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 

Logic Over Language

  • 1. UNDERSTAND PROGRAMMING THROUGH PSUEDO-CODE — RENEE BLUNT Logic Over Language
  • 6. pseu·do not actually, but having the appearance of
  • 7. Pass out movie tickets for PRPL movie day P R O B L E M
  • 8. For every employee that RSVP’d to the movie, give them a ticket S O L U T I O N
  • 9. For every employee that RSVP’d to the movie give them a ticket S O L U T I O N B R O K E N D O W N
  • 10. For every employee that RSVP’d to the movie give them a ticket S O L U T I O N B R O K E N D O W N M O R E For Loop Conditional Method
  • 12. J A V A S C R I P T P H P P Y T H O N C # for (let prplPerson of prplPeople) { if(prplPerson.rsvp){ Jackie.giveTicket(prplPerson); } } foreach ($prplPeople as $prplPerson) { if($prplPerson->rsvp){ Jackie::giveTicket($prplPerson); } } for prplPerson in prplPeople: if prplPerson.rsvp: Jackie.giveTicket(prplPerson) foreach(PRPLHuman prplPerson in prplPeople) { if(prplPerson.rsvp) { Jackie.giveTicket(prplPerson); } }
  • 13. There’sMore B U I L D I N G B L O C K S •What’s a Jackie? •What’s a PRPL People? •How does a PRPL Person RSVP? •Where do the tickets come from? •Uh, what movie?
  • 15. P L A I N L A N G U A G E C O D E Y L A N G U A G E Is a PRPL employee Is a human Does stuff: • administrative tasks • organizes events • coordinates movie day • makes funnies Jackie extends PRPL Employee PRPL Employee extends Human Methods: • doAdminThings • organizeEvent • coordinateMovieDay • makeFunny vs. Jackie
  • 17. P L A I N L A N G U A G E C O D E Y L A N G U A G E Is a human Has Stuff: • has a ticket • has a job title Does stuff: • goes to a movie • RSVPs to a movie PRPL Employee extends Human Properties: • ticket (boolean) • job title (string) Methods: • goToMovie • rsvpToMovie vs. PRPLPerson
  • 19. P L A I N L A N G U A G E C O D E Y L A N G U A G E Holds PRPL people How many PRPL people? Collection/Array/List Properties: • count Methods: • getCount vs. PRPLPeople
  • 21. IsThisThingOn? B U I L D I N G B L O C K S •What’s a Jackie? •What’s a PRPL People? •How does a PRPL Person RSVP? •Where do the tickets come from? •Uh, what movie?
  • 23. http://bfy.tw/5ymq F U R T H E R R E A D I N G
  • 24. Renee Blunt (renee@prpl.rs) Thanks! PRPL HQ 189 S. Orange Ave., Suite 2020 Orlando, FL 32801 @prplrckscssrs fb.com/prplrckscssrs www.prpl.rs Follow PRPL