Types of Code:
Type of Code
Definition
Characteristics
Applications
Source Code
The original code written by developers using a programming language.
Readable by humans, written in high-level programming languages, requires translation into machine code.
Primary form of code created by developers. Used for collaboration, version control, and documentation.
Machine Code
The binary representation of instructions that a computer’s CPU can directly execute.
Comprises binary digits (0s and 1s), directly understandable by the computer’s hardware, generated through compilation or interpretation of source code.
Executed by the CPU to perform tasks specified in the source code. The result of compiling or interpreting high-level languages.
Bytecode
An intermediate code that is a low-level representation of source code.
Intermediate between source code and machine code, platform-independent, typically generated by languages like Java or C#.
Used in environments with virtual machines (e.g., Java Virtual Machine). Allows for portability across different systems.
Compiled Code
The result of translating the entire source code into machine code before execution.
Source code is translated entirely before execution, faster execution compared to interpretation, generates an executable file.
Common in languages like C, C++, and Rust. Suitable for performance-critical applications.
Interpreted Code
Executed line by line, without the need for prior compilation.
Source code is executed line by line, slower execution compared to compilation, no separate executable file is generated.
Common in scripting languages like Python, JavaScript, and Ruby. Allows for rapid development and easy debugging.
Scripting Code
Code written in scripting languages, often interpreted, used for automating tasks or adding functionality.
Typically interpreted, emphasizes ease of use and readability, often used for automation and customization.
Writing automation scripts, adding functionality to web pages (JavaScript).
Assembly Code
A low-level programming language closely corresponding to machine code, specific to a CPU architecture.
Closer to machine code, uses mnemonic instructions, requires translation by an assembler.
Programming for specific hardware platforms, embedded systems, and system programming.
Front-End Code
Code executed by a user’s browser, including HTML, CSS, and JavaScript.
Runs in the user’s browser, shapes the visual and interactive elements of a website, executed on the client side.
Building user interfaces for websites, enhancing user experience through interactivity.
Back-End Cod
Server-side code that powers the server, manages data, logic, and communication between client and server.
Executes on the server, manages databases, business logic, and server-side operations, responds to client requests.
Handling data processing and storage, managing user authentication and authorization.
Database Code
Code written for database management systems (DBMS) to define, manipulate, and query databases.
SQL (Structured Query Language) is a common language for database code, manages database structure, data, and queries.
Defining tables and relationships in a database, performing queries to retrieve or modify data....
Contact Us