3.1.14 use of external code sources Flashcards
what is a web mashup?
a web page used to combine data from 2 or more sources to create a product
what does API stand for?
application programming interface
what do API provide?
a set of functions and procedures that allow the creation of applications which access the features/ data of an operating system, application, or other service.
what 4 things can programmers use to integrate code from external sources into their code?
1 - external code
2 - web feeds
3 - JavaScript
4 - widgets
give some examples of APIs
Flickr, Yahoo, YouTube, Facebook, Twitter, PayPal, price comparison tools for online shopping and multi-site searches
what is IFrame?
Inline Frame
a HTML document embedded inside another HTML document on a website
what are IFrames used for?
used to embed content from another source into a webpage
what can IFrames be configured with?
with its own scrollbar independent of the surrounding page’s scrollbar
to the user IFrames are…
{2}
…still on the same site
the user does not have to reload the surrounding page
but in reality IFrames have…
embedded content and programming from another source
what do IFrames often use?
JavaScript
what are IFrames designed to do?
designed to embed interactive applications in web pages which can be either client or server side
what is an interface (in APIs)?
the way that code on 2 different systems can communicate with each other
what are APIs carefully coded to do?
{2}
to expose only chosen functionality and data to 3rd parties who want to use the external functionality and code
- have to safeguard other parts of the application
what are APIs shown as to the end user?
invisible to the end user - they run silently in the background
what do APIs provide?
a channel for applications to work with each other to make sure hr client gets the required functionality and information
examiner’s tip
you should be able to explain the use of external code sources and how to integrate code from these sources into your own code
(press 5 to move on)
check your understanding question:
what is a mash up? {2 marks}
a coded application used to combine data from 2 or more sources to create a new product
check your understanding question:
what is an IFrame? {2 marks}
an IFrame (Inline Frame) is an HTML document embedded inside another HTML document; it is used to embed content from another source into a Web page
check your understanding question:
what is an API? {2 marks}
API stands for Application Programming Interface; an interface is a common boundary between 2 systems; an API allows code on 2 different systems to communicate with each other
What are the advantages of external sources of code?
- APIs allow programmers to create programs much faster (dont have to rewrite code)
- APIs can be more secure because teams of developers maintain and update the code.
- External libraries simplify complex areas of coding so that non specialist programmers are still able to interact with devices that would otherwise require a high level of expertise to interact with.