What is an API? Reading Assignment

  1. application programming interface - acts as a abstraction layer to perform complex task in a simple manner
  2. The Twitter API is web-based and integrates information from various internet sources with the client. The Java API interfaces between the client and the server using its own library of development code.
  3. My home security system uses an API that allows me to select my security mode for Home, Away, and Night. This is a simple task for me - I select the mode and enter my code. The API then tells the server to arm/disarm my doors and windows and motion sensors according to the mode I selected.
1 Like
  1. an API is a way of exposing various resources to be used programmatically .
  2. The Java API is native to the Java Development kit and is a library of software components where as the Twitter API is a web based JSON API used to retrieve data.
  3. Stores are layers of abstraction in our daily life as it simplifies food instead of needing to gather tools and materials needed to hunt and then to go out and hunt something i can just go to the store.
1 Like
  1. An API (application programming interface) is a protocol that uses a defined set of rules to allow 2 different software applications to communicate.

  2. The Twitter API is web based , using JSON API to communicate data over the internet. The JAVA API defines what you can do with a list of software instructions from a library on the server.

  3. When I tap a card to pay for goods in a shop it is a simple operation but complicated at the back end to make the payment.

1 Like
  1. An API is a specification of how to programmatically interact with a separate software component. For example, how an app should communicate with a server, and how the server responds.
  2. The Twitter API is web based that retrieves information from the internet and tells you the what and the how about tweets. Java API is a development kit that is available to somebody who have installed it.
  3. An abstraction from my daily life is Klarna payment: I buy a product from a small online vendor and later receives a bill in my app from Klarna, and the package at my door.
1 Like
  1. An API is an interface which developers can use to interact with a platform/ecosystem/backend system and so on and so forth. It could be seen as the interface between frontend and backend. The API tells the developer exactly what it is and how to use it. Because of this, the communication is easier and the chance to make something wrong is less.

  2. The main difference is that the Java API is a library which is on your computer (included in the java development kit). The library consists of useful functions/programmes, someone has already programmed for your and you don´t have to develope everything on our own. As an example: Maybe you want to do some data science with data you have on your computer. Then there will be an API which is maybe called Machine learning. In this API there are already functions like k-means clustering. That being said, in the Java API you don`t have to send requests through the internet to have accress to this library and get a response of your calculcation or whatever you want to do.

  3. Abstraction is very common in development processes (software, engineering doesn´t matter). Not everyone has the same level of understanding of a certain topic/subject. And in most cases not everyone has to understand everything in detail. To ensure that at least everyone gets an idea of what the problem is about, abstraction is extremely helpful. As an example: when you have kids, you have to abstract a lot of things, because you want to explain them things they can understand. My very small children wants to know how to make coffee. I tell him: go to the coffee machine and press the button with the cup. Thats it. Of course, when he gets older he wants to know more, but for a small timeframe it is enough and you abstracted the “working of a coffee machine”.

1 Like

1) What is an API?
An API is “Application Programming Interface.” They are basically a toolbox where developers can build software applications and interact with other interfaces.
2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
Java API is available with all the tools included inside the development kit while the twitter Api allows for developers to interact with twitter data provided over the internet.
3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
When you pump gas into your car, you don’t care where the oil came from or how it was shipped to the gas station, all you cared about was you pay it, the data goes to the system where it verifies your card payment, and gas comes out.

  1. An API (Application Programming Interface) is a set of functions and rules that enable possible interactions with separate software components within an operating system, application or service.
  2. Java API is a library of software components that can be used once Java Development Kit has been installed while Twitter API is a web-based JSon API which has to be accessed by making a request to its host.
  3. The process of welcoming someone that used the doorbell to notify its arrival. It would need me to hear the sound, understand it, stop the current action, reach the door, check the peephole, recognize the person, open the door and welcome him/her. It could be better if there was a digital camera connected to my lock which could be activated by the doorbell (or even just by movement), recognize the person and unlock the door (if I am inside the house) while sending me a signal (via phone, smartwatch, whatever) of the fact.
  1. An API is an interface of a particular software system (the provider) that defines series of protocols, functionalities and commands that another software system (the client) can access and use . These protocols will normally includes the terms and conditions on how these protocols, functionalities and commands should be used.

  2. The Java API is an library of software components which comes with Java Development Kit and it implements standard tasks common to most software systems.
    The Twitter API is a web-based API specific to Twitter that responds to a HTTP request sent from web client software using the JSON format to transfer data from the twitter (web-based server) back to the client.

  3. Flushing the toilet is an abstraction since I only need to know about pulling down the cisterns lever. I don’t have to know or care about how the water automatically fills up or how it spray the water around the toilet bowl. Just that if I want to flush I simply pull down the lever.

Very good answer, I like the way you explaned your views of question nr 3. Thank you. :+1::wink:
Ivo

Application programming interface. Is a way to programmatically interact with a separate software component or resource.
2.
Java API is included in the Java Development Kit itself, and the Twitter API is a web-based API, which means it has to make requests trough the Internet from the server
3.
Not always, but i start the day with a black coffee with no milk or sugar involved, than soon after that i open my browser and come to Ivan on Tech Academy, to start my daily development.

1 Like

1.API stands for application programming interface, a concept that applies everywhere from command-line tools to enterprise Java code to Ruby on Rails web apps. An API is a way to programmatically interact with a separate software component or resource.

The Twitter API is a web-based JSON API that allows developers to programmatically interact with Twitter data. Unlike the Java API, which is included in the Java Development Kit, the Twitter API is a web-based API. It must be accessed by making requests over the Internet to services that Twitter hosts.

3.One example is driving a car. You just drive the car without ever knowing how the engine works.

1 Like
  1. An API is an application interacting with some components of the software it is working with
  2. Unlike the Java API, which is included in the Java Development Kit, the Twitter API is a web-based API. It must be accessed by making requests over the Internet to services that Twitter hosts.
  3. I think that a surveillance system that advice me on my mobile phone about any intrusion attempt might be consider an example of abstraction
1 Like
  1. An API is and application programming interface, it specifies in what ways someone can interact with a software component as how they are able to perform the interaction.

  2. Java API is an API available to anyone who has downloaded the Java development Kit. This means the API can be used offline, whereas the Twitter API is a web-based API which uses JSON meaning it has to make requests over internet services.

  3. Abstraction is the removal of any complex workings from the end user, meaning features are represented in a more simple way. The user doesnt need to know what goes on at a deeper level/in the background for something to work such as entering a website URL or in the case of the physical world, flicking a switch to connect an electrical circuit. The user doesnt directly perform the tasks, but instead uses an interface that performs the task for them.

A very good example of this would be a person playing a computer game, the controller has interfaces - ie the buttons and control sticks which abstract the actions of the game they are playing. In order for a character on a game to move left commands and inputs are put into the games code, however this is abstracted and a simple push to the left of the control stick will perform all of the background workings for the user.

1 Like
  1. An API is defined as a specification of possible interactions with a software component.
  2. Unlike the Java API, which is included in the Java Development Kit, the Twitter API is a web-based API.
  3. It’s a way of organizing the complexity of a system so that difficult processes can be simplified. Maybe it can be compared to a problem I have with my car. I want to have it repaired and take it to the repair shop. In the evening I pick it up and it is fixed.
1 Like
  1. An API is an application programmable interface that takes complex code and simplifies them (Rules) to make communication between other apps more user friendly, smooth, and consistent.

  2. Java API is a library list of components that produce simplified programming tasks with the Java Development kit. Twitter is a web-based JSON API.

  3. For my daily life, i have to open the gate of my yard to put my cars outside so that i can use the car to run errands during the day, this usually takes 10 mins by hand. I could have an API
    that does the action of opening the gate for me, decreasing the amount of time it takes me to put the cars outside of the yard.

1 Like

1) What is an API?

  • Application programming interface.

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?

  • The Java API comes as part of the Java Development kit. It is a library of software components for implementing common tasks.

  • The Twitter API is web-based JSON API.

3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.

  • Turning on the lights and electricity in general! There is no need to know about power generation, voltages, amps, circuits or anything else in order to benefit from it.
1 Like

1) What is an API?
It is a term that is used to describe a way to programmatically interact with a separate software component or resource. All parties can interact with it in the same way.
2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
The Java API is included in the Java Development Kit and available when you install it. The Twitter API is web-based and must be accessed by making requests over the Internet to services that Twitter hosts.
3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
Abstraction is just a way of organizing the complexity of a system so that complicated actions can be handled in a simple way. An example would be an alarm clock: Set Time, Get Time, Set Alarm, Snooze, Stop Alarm, Enable Alarm and Disable Alarm. You do not have to know how the alarm clock works under the hood.

2 Likes

1) What is an API?
Application Programming Interface

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
Java API is generic while Twitter API is specifically for twitter

3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.

1 Like

1) What is an API?
Application Programmer Interface. Rules for interacting with a remote backend.

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
Java API comes as part of the Java Development Kit as a set of static rules. Twitter API is a web based service that can be interacted with

3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
To interact with my treehouse I have my own rules for de-activating the security, switching on the power, starting the network and getting the latest gossip from the local monkeys and parrots

1 Like
  1. What is an API?
    API - Application program interface is a set of instructions which allows the communication between the client and the server or between two servers.

  2. In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
    Java API is a code already included in the Java Development Kit.Twitter API is set of rules which can only communicate with the Twitter webserver.

  3. The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
    Ordering products on Amazon