SlideShare une entreprise Scribd logo
1  sur  59
Introduction to Coding
Agenda:
• Understand how computers work and learn basic computer
programming concepts (e.g., variables, syntax etc.)
• Gain an appreciation of the various programming languages and study
what they can do.
• Develop a resource list of computer programming tutorials and tools.
• Become inspired to learn programming basics to help you work smarter
and more efficiently.
Is coding a cryptic visual of typed languages?
Or a process? Or both?
Computer programming has a reputation of
being cryptic and too complex for the
average person; however, when you get
familiar with basic programming logic you
will see patterns everywhere!
What is computer programming?
• A set of commands a computer understands – like a recipe.
• Computer programs can help cure diseases; drive cars; create video
games; make animated movies/graphics; build websites and apps; and
much more.
• Basic coding concepts are used by most every program and most every
programmer.
• To learn more visit http://www.bfoit.org/itp/Programming.html
Why learn to code?
• Why not?
• Learn the importance of clarity/brevity of expression.
• Be able to think and problem solve more accurately.
• Have a better understanding of how technology works.
• Create a tool that can make your life and many others’ lives easier.
Read more at http://goo.gl/Hgy16A
“It has often been said that a person does not really understand
something until he teaches it to someone else. Actually a person
does not really understand something until after teaching it to a
computer, i.e., express it as an algorithm.”
Donald Knuth, in American Mathematical Monthly
Describe in natural language how to make
a peanut butter and jelly sandwich.
Some great resources to help you learn to code
.com
Learn to code interactively, for free.
http://www.oeconsortium.org/
https://www.coursera.org/
https://www.codeavengers.com/
https://www.khanacademy.org
https://teamtreehouse.com/
https://www.codeschool.com/
http://coderdojo.com
Some Other Coding Resources
• Lightbot is a programming puzzle game that gives the user a one-to-one relationship with programming concepts. Try it today at
http://light-bot.com/!
• Hopscotch: Coding for Kids is an iPad programming language. Download it today at https://www.gethopscotch.com/ .
• Code.org wants to bring Computer Science classes to every K-12 school. Check it out at http://code.org/ and find some excellent
computer programming tutorials.
• Scratch helps children create stories, games, animations, and also lets them share these projects with others around the world.
More info at http://scratch.mit.edu/.
• www.scratchjr.org is a free iPad app that brings coding to students as young as age five.
• www.kodable.com gives children opportunities to program in order to solve puzzles. http://www.allcancode.com is similar.
• Visit Medium for a “2 minute read” listing other ideas and resources to help inspire children and teens to code.
• There are several MOOCs (Massive Open Online Course) and other freely available resources that offer computer programming
classes. Coursera, Udacity, and Edx are great examples. Also, Khan Academy has some great resources for kids and adults too!
• A Google search query for computer programming resources for kids limited to the last year can be found at
http://goo.gl/RaUups.
What is a programming language?
• A programming language is set of rules that provides a way of telling a
computer:
• What operations to perform
• Communicating an algorithm
• Receives an input from the user and generates an output.
• A programming language is a system for describing a computation
(math) or algorithms (logic) in a machine-readable and human-
readable form.
• Has words, symbols, and grammatical rules (natural language)
• Grammatical rules = Syntax
• Each language has a different set of syntax rules
• Has semantics (meaning)
Slide courtesy of Brian Pichman
Tons of example code in the Arduino IDE
(Integrated Development Environment)
Raspberry Pi (Python) programming
Blinking LED code at: http://goo.gl/O3yozd
.org/downloadshttps://www.
Python Shell is where you enter commands
and/or lines of code.
At the prompt type: print(“Hello, world!”)
IDLE - Integrated DeveLopment Environment)
# is a comment and the computer ignores it.
The second line asks the user to enter their name and remembers it as "name.” This is a variable!
The third line is a print statement, which prints the stored name.
demos
2.
1.
A Few Basic Programming Components
(pretty much regardless of language)
• Variables & Arrays
• Operators
• Flow Control
• Functions
Slide courtesy of Brian Pichman
Variables & Arrays
• A variable is a bucket that holds one piece of information. A
variable can change value when
• Specific conditions are met
• Based on user input
• Examples (concept)
• $string_myhomelibrary = “Montgomery Library”;
• $numeric_variable= 100;
• $myname = “Brian”;
Slide courtesy of Brian Pichman
Variables & Arrays
• An array is a type of variable (or bucket) that holds many pieces of
information.
• Example (language doesn’t matter here; the concept does):
• $FavoriteCities = array(“Orlando”, “Boulder”, “Miami”)
• $FavoriteCities[0] holds “Orlando”
• $FavoriteCities [1] holds “Boulder”
• $States = array(“1” => “Prime”; “FL”=> “Florida”, “CO” => “Colorado”)
• $States[“FL”] holds “Florida”
Slide courtesy of Brian Pichman
Operators
• Arithmetic
+, -, *, / (add, subtract, multiply, divide)
• Assignment
= (assign the value of 2 to the variable called v)
$v = 2;
+= (“Add the value of 3 to the variable that already holds 1”)
$v += 3; // $a now holds 5
Slide courtesy of Brian Pichman
Flow Control - Sequence
• Reads like a book, the instructions are executed in the same order
they where given:
• OPEN the door
• WALK inside the room
• SIT on a chair
• PICKUP a book
• READ the book.
Slide courtesy of Brian Pichman
Flow Control - Choice
• If Then
if (something is true/conditions are met) {
then do this
}
• If Then Else
• Else: XYZ
• Starts the same as “If Then” but allows a result if condition is false
• Else If
if (something is true/conditions are met) {
then do this
} elseif (another something is true/conditions are met) {
then do this instead
}
Slide courtesy of Brian Pichman
Flow Control - Continual
• With continual, instructions are executed based on variables,
commands, outputs, etc … as they remain true
• While (or repeat)
while (something is true) {
do something here
}
• for
for (something is true) {
do something here
}
Slide courtesy of Brian Pichman
Flow Control – Putting It Together
• 1) Sequence
• Go to the library
• Check out a book
• Read the book
• Return the book
• 2) Choice
• If you have a library card, you can check out books. Otherwise open a library card account.
• 3) Repeat
• Continue to read the book till there are no more pages.
Slide courtesy of Brian Pichman
Functions
• A function is type of procedure or routine and usually returns a value.
• A procedure preforms an operation, but typically doesn’t provide a value.
• Most languages have pre-built or pre-defined functions in its library.
• For instance, the “delete” function means to “remove”. You don’t have to
code what “remove” does; only what to remove.
Defining a function in Python
Download it for free and get great handouts at
http://raptor.martincarlisle.com
RAPTOR is a flowchart-based
programming environment.
DEMO
FORTRAN
• FORmula TRANslation.
• Developed at IBM in the mid-1950s.
• First programming language
• Designed for scientific and mathematical applications by
scientists and engineers.
Traditional Programming Languages
Slide courtesy of Brian Pichman
COBOL
• COmmon Business Oriented Language.
• Developed in 1959.
• Typically used for business applications.
BASIC
• Beginner’s All-purpose Symbolic Instruction Code.
• Developed at Dartmouth College in mid 1960s.
• Developed as a simple language for students to write programs
with which they could interact through terminals.
Traditional Programming Languages (cont’d.)
Slide courtesy of Brian Pichman
C
• Developed by Bell Laboratories in the early 1970s.
• Provides control and efficiency of assembly language
• Often used for system programs.
• UNIX is written in C.
C++
• It is C language with additional features.
• Widely used for developing system and application software.
• Graphical user interfaces can be developed easily with visual
programming tools.
• Windows Based
Object-Oriented Programming Languages
Slide courtesy of Brian Pichman
JAVA
• An object-oriented language similar to C++ that eliminates lots
of C++’s problematic features
• Allows a web page developer to create programs for
applications, called applets that can be used through a browser.
• Objective of JAVA developers is that it be machine, platform and
operating system independent.
• Scripting Languages
• JavaScript and VBScript
• Php and ASP
• Perl and Python
• Command Languages
• sh, csh, bash, cmd
Special Programming Languages
Slide courtesy of Brian Pichman
• HTML
• HyperText Markup Language.
• Used on the Internet and the World Wide Web (WWW).
• Web page developer puts brief codes called tags in the page to
indicate how the page should be formatted.
• XML
• Extensible Markup Language.
• A language for defining other languages.
Special Programming Languages
Slide courtesy of Brian Pichman
What do you want to make?
Source: https://www.udemy.com/
Source: https://www.udemy.com/
Source: https://www.udemy.com/
Source: https://www.udemy.com/
Other ways to learn coding
http://getfirebug.com/
See how things on the Web work behind the scenes using …
.mit.edu
Scratch is a programming language for everyone. Create
interactive stories, games, music and art and share them online.
Finch Robot, ca. $100
http://www.finchrobot.com/
Ozobot, ca. $60
http://www.ozobot.com/
Lego WeDo / Lego Mindstorms
Sphero – ca. $130
http://www.sphero.com/
Dash and Dot, ca. $149
https://www.makewonder.com/
Interact with the real world
using the Tickle App
https://tickleapp.com
Learn to program Arduino, drones, robots, connected
toys, and smart home devices, all wirelessly.
Hopscotch App
https://www.gethopscotch.com/
pinocc.io, ca. $197
http://www.slideshare.net/chadmairn
@cmairn
Want to
Hangout?
gplus.to/chadmairn

Contenu connexe

Tendances

Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 

Tendances (20)

Web technology
Web technologyWeb technology
Web technology
 
Internet Basics
Internet BasicsInternet Basics
Internet Basics
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?
 
Basic shortcut keys of computer or PC
Basic shortcut keys of computer or PCBasic shortcut keys of computer or PC
Basic shortcut keys of computer or PC
 
System software
System softwareSystem software
System software
 
Operating Systems Basics
Operating Systems BasicsOperating Systems Basics
Operating Systems Basics
 
Computer programming concepts
Computer programming conceptsComputer programming concepts
Computer programming concepts
 
Computer virus
Computer virusComputer virus
Computer virus
 
Microsoft word
Microsoft wordMicrosoft word
Microsoft word
 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer Programming
 
Computer Keyboard
Computer KeyboardComputer Keyboard
Computer Keyboard
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Input devices presentation
Input devices presentationInput devices presentation
Input devices presentation
 
Types of computer
Types of computerTypes of computer
Types of computer
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
Input and output devices ppt
Input and output devices pptInput and output devices ppt
Input and output devices ppt
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Computer Viruses
Computer VirusesComputer Viruses
Computer Viruses
 

En vedette

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Hornung's Wonderleague Robotics Club Parent Meeting
Hornung's Wonderleague Robotics Club Parent MeetingHornung's Wonderleague Robotics Club Parent Meeting
Hornung's Wonderleague Robotics Club Parent Meeting
giannaa
 
Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01
Bipin Kujur
 

En vedette (20)

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Why learn how to code
Why learn how to codeWhy learn how to code
Why learn how to code
 
Kids computer-programming
Kids computer-programmingKids computer-programming
Kids computer-programming
 
How to Teach Yourself to Code
How to Teach Yourself to CodeHow to Teach Yourself to Code
How to Teach Yourself to Code
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with Data
 
Dream Big. Learn Code.
Dream Big. Learn Code. Dream Big. Learn Code.
Dream Big. Learn Code.
 
An Introduction to Community Coding Clubs - CoderDojo WA
An Introduction to Community Coding Clubs - CoderDojo WAAn Introduction to Community Coding Clubs - CoderDojo WA
An Introduction to Community Coding Clubs - CoderDojo WA
 
Learn to Code, Code to learn
Learn to Code, Code to learnLearn to Code, Code to learn
Learn to Code, Code to learn
 
Hornung's Wonderleague Robotics Club Parent Meeting
Hornung's Wonderleague Robotics Club Parent MeetingHornung's Wonderleague Robotics Club Parent Meeting
Hornung's Wonderleague Robotics Club Parent Meeting
 
Inspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other ToolsInspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other Tools
 
Learning the Niche of Theme Setup & Customization
Learning the Niche of Theme Setup & CustomizationLearning the Niche of Theme Setup & Customization
Learning the Niche of Theme Setup & Customization
 
Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01Th writing-grammar-mistakes-140501125825-phpapp01
Th writing-grammar-mistakes-140501125825-phpapp01
 
RA Programming for Kids
RA Programming for KidsRA Programming for Kids
RA Programming for Kids
 
Bootstrap 4 n00bz
Bootstrap 4 n00bzBootstrap 4 n00bz
Bootstrap 4 n00bz
 
Inspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other ToolsInspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other Tools
 
STEAM @ Your Library
STEAM @ Your LibrarySTEAM @ Your Library
STEAM @ Your Library
 
How to Think in the Information Age: Finding Facts in a Post-Truth World
How to Think in the Information Age: Finding Facts in a Post-Truth WorldHow to Think in the Information Age: Finding Facts in a Post-Truth World
How to Think in the Information Age: Finding Facts in a Post-Truth World
 
10 things I've learned teaching coding to kids
10 things I've learned teaching coding to kids 10 things I've learned teaching coding to kids
10 things I've learned teaching coding to kids
 
12 Reasons Why Hot Entrepreneurs Fail
12 Reasons Why Hot Entrepreneurs Fail12 Reasons Why Hot Entrepreneurs Fail
12 Reasons Why Hot Entrepreneurs Fail
 
CMD in 2013
CMD in 2013CMD in 2013
CMD in 2013
 

Similaire à Introduction to Coding

Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningApresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Arthur Emanuel
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
crAmth
 
Programming Languages #devcon2013
Programming Languages #devcon2013Programming Languages #devcon2013
Programming Languages #devcon2013
Iván Montes
 

Similaire à Introduction to Coding (20)

Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningApresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
 
Introduct To C Language Programming
Introduct To C Language ProgrammingIntroduct To C Language Programming
Introduct To C Language Programming
 
Coding with Maker Tech
   Coding with Maker Tech   Coding with Maker Tech
Coding with Maker Tech
 
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
Developing a Coding Program for Users  - SWFLN Makerpalooza - Session 4Developing a Coding Program for Users  - SWFLN Makerpalooza - Session 4
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Learning Python
Learning PythonLearning Python
Learning Python
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
How To Learn Programming For Beginners | How To Start Coding | Learn Programm...
How To Learn Programming For Beginners | How To Start Coding | Learn Programm...How To Learn Programming For Beginners | How To Start Coding | Learn Programm...
How To Learn Programming For Beginners | How To Start Coding | Learn Programm...
 
Plc part 1
Plc part 1Plc part 1
Plc part 1
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
 
Python programming
Python programmingPython programming
Python programming
 
Presentation-1.pptx
Presentation-1.pptxPresentation-1.pptx
Presentation-1.pptx
 
Computer science and engineering assignments: lesser known tools that you sho...
Computer science and engineering assignments: lesser known tools that you sho...Computer science and engineering assignments: lesser known tools that you sho...
Computer science and engineering assignments: lesser known tools that you sho...
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
 
Programing fundamentals with C++
Programing fundamentals with C++Programing fundamentals with C++
Programing fundamentals with C++
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
py4inf-01-intro.ppt
py4inf-01-intro.pptpy4inf-01-intro.ppt
py4inf-01-intro.ppt
 
Programming Languages #devcon2013
Programming Languages #devcon2013Programming Languages #devcon2013
Programming Languages #devcon2013
 

Plus de St. Petersburg College

What’s New and Exciting in Library Makerspaces
What’s New and Exciting in Library MakerspacesWhat’s New and Exciting in Library Makerspaces
What’s New and Exciting in Library Makerspaces
St. Petersburg College
 

Plus de St. Petersburg College (20)

Introducing Immersive Technologies for Libraries
Introducing Immersive Technologies for Libraries  Introducing Immersive Technologies for Libraries
Introducing Immersive Technologies for Libraries
 
Introducing How to Build a Personal Voice Assistant (AIY Edition)
Introducing How to Build a Personal Voice Assistant (AIY Edition) Introducing How to Build a Personal Voice Assistant (AIY Edition)
Introducing How to Build a Personal Voice Assistant (AIY Edition)
 
360° Tours and More
360° Tours and More360° Tours and More
360° Tours and More
 
Taking the Magical Leap with Immersive Technologies in Libraries
Taking the Magical Leap with Immersive Technologies in LibrariesTaking the Magical Leap with Immersive Technologies in Libraries
Taking the Magical Leap with Immersive Technologies in Libraries
 
Open Education Resources in Libraries
Open Education Resources in LibrariesOpen Education Resources in Libraries
Open Education Resources in Libraries
 
How to Repurpose Library Space: Listening Lab Edition
How to Repurpose Library Space: Listening Lab EditionHow to Repurpose Library Space: Listening Lab Edition
How to Repurpose Library Space: Listening Lab Edition
 
Using CoSpaces Edu to Create Virtual and Augmented Reality Experiences
Using CoSpaces Edu to Create Virtual and Augmented Reality ExperiencesUsing CoSpaces Edu to Create Virtual and Augmented Reality Experiences
Using CoSpaces Edu to Create Virtual and Augmented Reality Experiences
 
Understanding Artificial Intelligence
Understanding Artificial IntelligenceUnderstanding Artificial Intelligence
Understanding Artificial Intelligence
 
Web Design Trends: 2018 Edition
Web Design Trends: 2018 EditionWeb Design Trends: 2018 Edition
Web Design Trends: 2018 Edition
 
What’s New With 3D Design and Printing?
What’s New With 3D Design and Printing?What’s New With 3D Design and Printing?
What’s New With 3D Design and Printing?
 
Creating a Program to Assist Users Cutting Cable
Creating a Program to Assist Users Cutting CableCreating a Program to Assist Users Cutting Cable
Creating a Program to Assist Users Cutting Cable
 
Understanding Artificial Intelligence
Understanding Artificial Intelligence Understanding Artificial Intelligence
Understanding Artificial Intelligence
 
3D Design Fundamentals
3D Design Fundamentals3D Design Fundamentals
3D Design Fundamentals
 
STEM Demystified
STEM DemystifiedSTEM Demystified
STEM Demystified
 
Learn to Compose, Record, and Produce Songs and Podcasts Using GarageBand
Learn to Compose, Record, and Produce Songs and Podcasts Using GarageBandLearn to Compose, Record, and Produce Songs and Podcasts Using GarageBand
Learn to Compose, Record, and Produce Songs and Podcasts Using GarageBand
 
Open Education Resources in Libraries
Open Education Resources in LibrariesOpen Education Resources in Libraries
Open Education Resources in Libraries
 
Learning Kodu: Basic Video Game Design for Kids
Learning Kodu: Basic Video Game Design for KidsLearning Kodu: Basic Video Game Design for Kids
Learning Kodu: Basic Video Game Design for Kids
 
Learn to Code and Have Fun Doing It!
Learn to Code and Have Fun Doing It! Learn to Code and Have Fun Doing It!
Learn to Code and Have Fun Doing It!
 
Technologies to Watch: 2017 Edition
Technologies to Watch: 2017 EditionTechnologies to Watch: 2017 Edition
Technologies to Watch: 2017 Edition
 
What’s New and Exciting in Library Makerspaces
What’s New and Exciting in Library MakerspacesWhat’s New and Exciting in Library Makerspaces
What’s New and Exciting in Library Makerspaces
 

Dernier

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Dernier (20)

%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 

Introduction to Coding

  • 2. Agenda: • Understand how computers work and learn basic computer programming concepts (e.g., variables, syntax etc.) • Gain an appreciation of the various programming languages and study what they can do. • Develop a resource list of computer programming tutorials and tools. • Become inspired to learn programming basics to help you work smarter and more efficiently.
  • 3. Is coding a cryptic visual of typed languages? Or a process? Or both?
  • 4. Computer programming has a reputation of being cryptic and too complex for the average person; however, when you get familiar with basic programming logic you will see patterns everywhere!
  • 5. What is computer programming? • A set of commands a computer understands – like a recipe. • Computer programs can help cure diseases; drive cars; create video games; make animated movies/graphics; build websites and apps; and much more. • Basic coding concepts are used by most every program and most every programmer. • To learn more visit http://www.bfoit.org/itp/Programming.html
  • 6. Why learn to code? • Why not? • Learn the importance of clarity/brevity of expression. • Be able to think and problem solve more accurately. • Have a better understanding of how technology works. • Create a tool that can make your life and many others’ lives easier.
  • 7. Read more at http://goo.gl/Hgy16A
  • 8. “It has often been said that a person does not really understand something until he teaches it to someone else. Actually a person does not really understand something until after teaching it to a computer, i.e., express it as an algorithm.” Donald Knuth, in American Mathematical Monthly
  • 9. Describe in natural language how to make a peanut butter and jelly sandwich.
  • 10. Some great resources to help you learn to code
  • 11. .com Learn to code interactively, for free.
  • 19. Some Other Coding Resources • Lightbot is a programming puzzle game that gives the user a one-to-one relationship with programming concepts. Try it today at http://light-bot.com/! • Hopscotch: Coding for Kids is an iPad programming language. Download it today at https://www.gethopscotch.com/ . • Code.org wants to bring Computer Science classes to every K-12 school. Check it out at http://code.org/ and find some excellent computer programming tutorials. • Scratch helps children create stories, games, animations, and also lets them share these projects with others around the world. More info at http://scratch.mit.edu/. • www.scratchjr.org is a free iPad app that brings coding to students as young as age five. • www.kodable.com gives children opportunities to program in order to solve puzzles. http://www.allcancode.com is similar. • Visit Medium for a “2 minute read” listing other ideas and resources to help inspire children and teens to code. • There are several MOOCs (Massive Open Online Course) and other freely available resources that offer computer programming classes. Coursera, Udacity, and Edx are great examples. Also, Khan Academy has some great resources for kids and adults too! • A Google search query for computer programming resources for kids limited to the last year can be found at http://goo.gl/RaUups.
  • 20. What is a programming language? • A programming language is set of rules that provides a way of telling a computer: • What operations to perform • Communicating an algorithm • Receives an input from the user and generates an output. • A programming language is a system for describing a computation (math) or algorithms (logic) in a machine-readable and human- readable form. • Has words, symbols, and grammatical rules (natural language) • Grammatical rules = Syntax • Each language has a different set of syntax rules • Has semantics (meaning) Slide courtesy of Brian Pichman
  • 21. Tons of example code in the Arduino IDE (Integrated Development Environment)
  • 22. Raspberry Pi (Python) programming Blinking LED code at: http://goo.gl/O3yozd
  • 24. Python Shell is where you enter commands and/or lines of code. At the prompt type: print(“Hello, world!”)
  • 25. IDLE - Integrated DeveLopment Environment) # is a comment and the computer ignores it. The second line asks the user to enter their name and remembers it as "name.” This is a variable! The third line is a print statement, which prints the stored name.
  • 27. A Few Basic Programming Components (pretty much regardless of language) • Variables & Arrays • Operators • Flow Control • Functions Slide courtesy of Brian Pichman
  • 28. Variables & Arrays • A variable is a bucket that holds one piece of information. A variable can change value when • Specific conditions are met • Based on user input • Examples (concept) • $string_myhomelibrary = “Montgomery Library”; • $numeric_variable= 100; • $myname = “Brian”; Slide courtesy of Brian Pichman
  • 29. Variables & Arrays • An array is a type of variable (or bucket) that holds many pieces of information. • Example (language doesn’t matter here; the concept does): • $FavoriteCities = array(“Orlando”, “Boulder”, “Miami”) • $FavoriteCities[0] holds “Orlando” • $FavoriteCities [1] holds “Boulder” • $States = array(“1” => “Prime”; “FL”=> “Florida”, “CO” => “Colorado”) • $States[“FL”] holds “Florida” Slide courtesy of Brian Pichman
  • 30. Operators • Arithmetic +, -, *, / (add, subtract, multiply, divide) • Assignment = (assign the value of 2 to the variable called v) $v = 2; += (“Add the value of 3 to the variable that already holds 1”) $v += 3; // $a now holds 5 Slide courtesy of Brian Pichman
  • 31. Flow Control - Sequence • Reads like a book, the instructions are executed in the same order they where given: • OPEN the door • WALK inside the room • SIT on a chair • PICKUP a book • READ the book. Slide courtesy of Brian Pichman
  • 32. Flow Control - Choice • If Then if (something is true/conditions are met) { then do this } • If Then Else • Else: XYZ • Starts the same as “If Then” but allows a result if condition is false • Else If if (something is true/conditions are met) { then do this } elseif (another something is true/conditions are met) { then do this instead } Slide courtesy of Brian Pichman
  • 33. Flow Control - Continual • With continual, instructions are executed based on variables, commands, outputs, etc … as they remain true • While (or repeat) while (something is true) { do something here } • for for (something is true) { do something here } Slide courtesy of Brian Pichman
  • 34. Flow Control – Putting It Together • 1) Sequence • Go to the library • Check out a book • Read the book • Return the book • 2) Choice • If you have a library card, you can check out books. Otherwise open a library card account. • 3) Repeat • Continue to read the book till there are no more pages. Slide courtesy of Brian Pichman
  • 35. Functions • A function is type of procedure or routine and usually returns a value. • A procedure preforms an operation, but typically doesn’t provide a value. • Most languages have pre-built or pre-defined functions in its library. • For instance, the “delete” function means to “remove”. You don’t have to code what “remove” does; only what to remove. Defining a function in Python
  • 36. Download it for free and get great handouts at http://raptor.martincarlisle.com RAPTOR is a flowchart-based programming environment. DEMO
  • 37. FORTRAN • FORmula TRANslation. • Developed at IBM in the mid-1950s. • First programming language • Designed for scientific and mathematical applications by scientists and engineers. Traditional Programming Languages Slide courtesy of Brian Pichman COBOL • COmmon Business Oriented Language. • Developed in 1959. • Typically used for business applications.
  • 38. BASIC • Beginner’s All-purpose Symbolic Instruction Code. • Developed at Dartmouth College in mid 1960s. • Developed as a simple language for students to write programs with which they could interact through terminals. Traditional Programming Languages (cont’d.) Slide courtesy of Brian Pichman C • Developed by Bell Laboratories in the early 1970s. • Provides control and efficiency of assembly language • Often used for system programs. • UNIX is written in C.
  • 39. C++ • It is C language with additional features. • Widely used for developing system and application software. • Graphical user interfaces can be developed easily with visual programming tools. • Windows Based Object-Oriented Programming Languages Slide courtesy of Brian Pichman JAVA • An object-oriented language similar to C++ that eliminates lots of C++’s problematic features • Allows a web page developer to create programs for applications, called applets that can be used through a browser. • Objective of JAVA developers is that it be machine, platform and operating system independent.
  • 40. • Scripting Languages • JavaScript and VBScript • Php and ASP • Perl and Python • Command Languages • sh, csh, bash, cmd Special Programming Languages Slide courtesy of Brian Pichman
  • 41. • HTML • HyperText Markup Language. • Used on the Internet and the World Wide Web (WWW). • Web page developer puts brief codes called tags in the page to indicate how the page should be formatted. • XML • Extensible Markup Language. • A language for defining other languages. Special Programming Languages Slide courtesy of Brian Pichman
  • 42. What do you want to make?
  • 47. Other ways to learn coding
  • 48. http://getfirebug.com/ See how things on the Web work behind the scenes using …
  • 49. .mit.edu Scratch is a programming language for everyone. Create interactive stories, games, music and art and share them online.
  • 50. Finch Robot, ca. $100 http://www.finchrobot.com/
  • 52. Lego WeDo / Lego Mindstorms
  • 53. Sphero – ca. $130 http://www.sphero.com/
  • 54. Dash and Dot, ca. $149 https://www.makewonder.com/
  • 55. Interact with the real world using the Tickle App https://tickleapp.com Learn to program Arduino, drones, robots, connected toys, and smart home devices, all wirelessly.