SlideShare a Scribd company logo
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

More Related Content

PPT
Uia 5 a recap connecting words
PDF
Stop Wasting Time By Tracking It
PPT
Substituting HDF5 tools with Python/H5py scripts
PPTX
Introduction To Programming with Python-1
PDF
Python and HDF5: Overview
PDF
An Introduction to Interactive Programming in Python 2013
PDF
Introduction to Databases
PPTX
Introduction To Programming with Python-5
Uia 5 a recap connecting words
Stop Wasting Time By Tracking It
Substituting HDF5 tools with Python/H5py scripts
Introduction To Programming with Python-1
Python and HDF5: Overview
An Introduction to Interactive Programming in Python 2013
Introduction to Databases
Introduction To Programming with Python-5

Viewers also liked (15)

PDF
Logic: Language and Information 1
PPTX
Introduction To Programming with Python-4
PDF
Introduction to UBI
PPT
Python 4 Arc
PPT
The Python Programming Language and HDF5: H5Py
PPTX
Clase 2 estatica
PPT
Using HDF5 and Python: The H5py module
PPTX
Python programming - Everyday(ish) Examples
PDF
Lets learn Python !
PPTX
Introduction To Programming with Python Lecture 2
PPTX
Cyberoam Firewall Presentation
PDF
introduction to python
PPTX
Introduction To Programming with Python-3
PPT
Introduction to Python
Logic: Language and Information 1
Introduction To Programming with Python-4
Introduction to UBI
Python 4 Arc
The Python Programming Language and HDF5: H5Py
Clase 2 estatica
Using HDF5 and Python: The H5py module
Python programming - Everyday(ish) Examples
Lets learn Python !
Introduction To Programming with Python Lecture 2
Cyberoam Firewall Presentation
introduction to python
Introduction To Programming with Python-3
Introduction to Python
Ad

More from Purple, Rock, Scissors (20)

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

Recently uploaded (20)

PDF
B.Tech (Electrical Engineering ) 2024 syllabus.pdf
PPTX
metal cuttingmechancial metalcutting.pptx
PDF
algorithms-16-00088-v2hghjjnjnhhhnnjhj.pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Introduction to Data Science: data science process
PPTX
Practice Questions on recent development part 1.pptx
PPTX
AgentX UiPath Community Webinar series - Delhi
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
PPT
Chapter 6 Design in software Engineeing.ppt
PDF
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
PPTX
Ship’s Structural Components.pptx 7.7 Mb
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Internship_Presentation_Final engineering.pptx
PPTX
436813905-LNG-Process-Overview-Short.pptx
PDF
classification of cubic lattice structure
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
B.Tech (Electrical Engineering ) 2024 syllabus.pdf
metal cuttingmechancial metalcutting.pptx
algorithms-16-00088-v2hghjjnjnhhhnnjhj.pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Lesson 3_Tessellation.pptx finite Mathematics
Introduction to Data Science: data science process
Practice Questions on recent development part 1.pptx
AgentX UiPath Community Webinar series - Delhi
dse_final_merit_2025_26 gtgfffffcjjjuuyy
Chapter 6 Design in software Engineeing.ppt
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
Ship’s Structural Components.pptx 7.7 Mb
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
Structs to JSON How Go Powers REST APIs.pdf
Internship_Presentation_Final engineering.pptx
436813905-LNG-Process-Overview-Short.pptx
classification of cubic lattice structure
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx

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?
  • 24. Renee Blunt ([email protected]) Thanks! PRPL HQ 189 S. Orange Ave., Suite 2020 Orlando, FL 32801 @prplrckscssrs fb.com/prplrckscssrs www.prpl.rs Follow PRPL