Home >Web Front-end >Front-end Q&A >what is source code
Source code is a text that describes the behavior of a program. Source code can exist in every software. The software executes according to the programming in the source code. Commonly used The format is a text file. The ultimate goal of computer source code is to translate human-readable text into binary instructions that the computer can execute. This process is called compilation, and is completed through a compiler.
For example, Java source code
final PropertyUtilsBean propUtils = (pu != null) ? pu : PropertyUtilsBean.getInstance(); final CacheKey key = new CacheKey(beanClass, propUtils); WrapDynaClass dynaClass = getClassesCache().get(key); if (dynaClass == null) { dynaClass = new WrapDynaClass(beanClass, propUtils); getClassesCache().put(key, dynaClass); }
Each line has a unique meaning. Each line is composed of a computer instruction. The computer instruction is read from top to bottom. Source code can be written in various programming languages. There are currently more than 200 programming languages, including Java, C language, PHP, Python and other source codes. Even for the same operation, the description method depends on the programming language. Therefore one needs to understand each language to read the source code.
The above is the detailed content of what is source code. For more information, please follow other related articles on the PHP Chinese website!