Joke Collection Website - Blessing messages - The difference between source code and api

The difference between source code and api

1. source code, also known as source code, refers to a series of human-readable computer language instructions. In modern programming languages, source code can appear in the form of books or tapes, but the most commonly used format is text files, which are usually used to compile computer programs. The ultimate goal of computer source code is to translate human-readable texts into binary instructions that can be executed by computers. This process is called compilation and is completed by the compiler.

2.API (application programming interface) refers to some predefined interfaces (such as functions and HTTP interfaces), or refers to the conventions for connecting different components of a software system. Used to provide a set of routines that applications and developers can access based on a piece of software or hardware without accessing the source code or knowing the details of the internal working mechanism.