APIs and Function Parameters

Slides:



Advertisements
Similar presentations
The Lion King goes to Broadway LAA Model Lesson ESL 3 Unit 1.
Advertisements

Lemonade Day Saturday, May 18 th Mrs. Glover’s class will be at the First United Methodist Church for the C.A.R.E Rummage Sale from 10:00 to 2:00. Mrs.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Welcome, ___________Educators! Welcome to another wonderful day with Project GUTS and Code.org!
Why do we mark children’s work? More to the point why do they think we mark their work?
JavaScript: API’s, Parameters and Creating Functions with Parameters
AP CSP: Creating Functions & Top-Down Design
Hidden Slide for Instructor
Unit 3: Lesson 1 - The Need for Programming Languages
UNIT 2 – LESSON 3 Encoding B&W Images.
APIs and Function Parameters
The Apprentice Enterprise Skills.
Behavior Management and Organization
UNIT 2 – LESSON 4 Encoding Color Images.
UNIT 3 – LESSON 5 Creating Functions.
The Need for Programming Languages
The Need for Algorithms 2 days
Good and Bad Data Visualizations
Lesson 9: "if-else-if" and Conditional Logic
Department of modern foreign languages ü]
Lesson 1: Buttons and Events – 12/18
Department of modern foreign languages ü]
Lesson 10: Building an App: Color Sleuth
How to create an Interactive Science Notebook (ISN)
Do it now activity Since the beginning of the term you have planned a database based on your own scenario. Using your plan you are going to create a database,
Patterns and Relationships in Tables
Graph Paper Programming
Creativity in Algorithms
Lesson 4: Controlling Memory with Variables
Lesson 17: Building an App: Canvas Painter
LESSON 14 - Building an App: Image Scroller
Graph Paper Programming
LESSON 13 – INTRO TO ARRAYS
UNIT 3 CHAPTER 1 LESSON 4 Using Simple Commands.
Lesson 5: Building an App: Clicker Game
Creating Functions with Parameters
UNIT 1: LESSON 4 NUMBER SYSTEMS.
Looping and Random Numbers
Programming Basics - RobotC
9.3 – Mixed Numbers and Improper Fractions
Unit 3: Lesson 6 & 7- Functions and Top-Down Design / APIs and Function Parameters Day 27.
Computational Thinking for KS3
Bellringer: Jan. 22/26 You don’t need to write the questions -
Presenting Like A Pro!. Presenting Like A Pro!
Testing and Repetition
Draw the picture and answer the questions
Finding Trends with Visualizations
MIS JavaScript and API Workshop (Part 2)
LearnZillion Notes: --This is your hook. Start with a question to draw the student in. We want that student saying, “huh, how do you do X?” Try to be specific.
Getting started with jQuery
Functions and Top-Down Design
An introduction to jQuery
U3L1 The Need For Programming
Unit 3: Lesson 1 - The Need for Programming Languages
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
Starter of the day In your sketchbook on the 6th page at the top write down answers to the following questions. Please save the bottom half of that page.
An introduction to jQuery
Bellringer: Jan. 22/26 You don’t need to write the questions -
An introduction to jQuery
Starter of the day In your sketchbook on the 8th page at the top glue in the following things. Please save the bottom half of that page for your exit.
Starter of the day In your sketchbook on the 12th page at the top answer the following questions. Please save the bottom half of that page for your exit.

Quiz: Computational Thinking
U3L8 Creating Functions with Parameters
Squished face selfie
Skills being practiced:
Identity/Self-Portrait Unit
This lesson is for both investigation and artefact projects
Documentation prepared for VCSU by myeFolio;
Presentation transcript:

APIs and Function Parameters UNIT 3 – LESSON 7 APIs and Function Parameters

Vocabulary alert! API - application programming interface - a collection of commands made available to a programmer Documentation - a description of the behavior of a command, function, library, API, etc. Hexadecimal - A base-16 number system that uses sixteen distinct symbols 0-9 and A-F to represent numbers from 0 to 15. Library - a collection of commands / functions, typically with a shared purpose Parameter - An extra piece of information passed to a function to customize it for a specific need

The purpose of today’s lesson: all programming languages has an application programming interface (API), which is a reference guide for programmers create functions with parameters, which is special info for special programming tasks you will learn to read the api to find and understand new commands in JavaScript, and add parameters to your functions in your code build some drawing programs using code you haven’t used before

New code to use!

programmers don’t memorize all of the commands in a programming language. This is why we have api’S – a library of code to look at and learn from. Becoming a good programmer is much less about memorizing a language and more about learning habits of mind and patterns that allow you to use a language (including its documentation) effectively!

Example of API for code example of parameters – what goes in the parentheses, so this one is number of pixels

Example of parameters in use

today, I want you to read through the documentation while doing your projects. This skill will make you much more confident programmers. The difference between a good programmer and a great programmer is that a great programmer is not afraid to test, read, and try stuff out.

Let’s open up code studio . . . Remember – read the api you will check in: 1. bullseye 2. smiley face 3. your own picture (using at least 3 colors and the move to command)

You have homework! Fill in reflections and assessments make sure your code studio is clean and green!