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

Similar to Logic Over Language (20)

DOC
Algorithm vs
PPTX
C programming .pptx
PDF
Algorithm Design and Problem Solving.pdf
PDF
Programming languages and concepts by vivek parihar
PPTX
a brief explanation on the topic of Imperative Programming Paradigm.pptx
PDF
Programming for Problem Solving
PPT
Data Structures- Part1 overview and review
PPTX
Fundamentals of Programming Lecture #1.pptx
PPT
Oop concept
PPTX
Pseudo code
PPT
lec_4_data_structures_and_algorithm_analysis.ppt
PPT
lec_4_data_structures_and_algorithm_analysis.ppt
PPTX
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
PDF
Becoming a Real Programmer
PPTX
Geek out : Adding Coding Skills to Your Professional Repertoire
PPT
Intro to DSAA.ppt
PPTX
Coding with Maker Tech
PPTX
Pseudo code
PPTX
C# basics...
PPT
Programming Paradigms
Algorithm vs
C programming .pptx
Algorithm Design and Problem Solving.pdf
Programming languages and concepts by vivek parihar
a brief explanation on the topic of Imperative Programming Paradigm.pptx
Programming for Problem Solving
Data Structures- Part1 overview and review
Fundamentals of Programming Lecture #1.pptx
Oop concept
Pseudo code
lec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.ppt
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
Becoming a Real Programmer
Geek out : Adding Coding Skills to Your Professional Repertoire
Intro to DSAA.ppt
Coding with Maker Tech
Pseudo code
C# basics...
Programming Paradigms
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

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Construction Project Organization Group 2.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
PPT on Performance Review to get promotions
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPT
Project quality management in manufacturing
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
web development for engineering and engineering
PPTX
Geodesy 1.pptx...............................................
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
573137875-Attendance-Management-System-original
OOP with Java - Java Introduction (Basics)
Model Code of Practice - Construction Work - 21102022 .pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
737-MAX_SRG.pdf student reference guides
Construction Project Organization Group 2.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPT on Performance Review to get promotions
Automation-in-Manufacturing-Chapter-Introduction.pdf
Project quality management in manufacturing
R24 SURVEYING LAB MANUAL for civil enggi
Internet of Things (IOT) - A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
web development for engineering and engineering
Geodesy 1.pptx...............................................
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Embodied AI: Ushering in the Next Era of Intelligent Systems
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

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