Skip to content

什么是 Programming?

学习什么 programming 是, 为什么它 matters, and 如何创建 software differs 从只是 using 它.

你将学到

  • 什么 programming 平均值 in plain language
  • difference 之间 using software and 创建它
  • 为什么 programming 是 valuable and creative skill
  • three 主要作业的 任何 program: 输入, 处理, 输出

概念讲解

What Is Programming?

Programming is the act of writing instructions for a computer so that it performs a task automatically. A computer by itself is a fast but completely literal machine — it does exactly what you tell it, nothing more. Programming is how we bridge the gap between a human goal ("sort these names") and the machine's ability to execute it.

Using vs. Creating Software

When you use an app, someone else already wrote the instructions. You click buttons and the app responds because a programmer wrote code that says "当用户点击这里, 做这个." When you program, you are the person writing those instructions. This shift — from consumer to creator — is the heart of programming.

Input → Process → Output

Almost every program follows the same three-step pattern:

  1. Input — the program receives data (a keystroke, a file, a click).
  2. Process — the program transforms that data according to your instructions.
  3. Output — the program shows a result (text on screen, a saved file, a sound).

Understanding this loop is the single most important idea in programming. Once you see it, you start noticing it everywhere: a calculator takes numbers (input), computes a result (process), and displays it (output).

Why Learn Programming?

Programming is a creative skill — you build things that did not exist before. It also teaches structured thinking: you learn to break big problems into small, precise steps. That mental skill transfers to almost every field, not just software. And practically, programming lets you automate repetitive tasks, analyze data, and build tools tailored to your own needs.

示例代码

              // A tiny program: input → process → output
const name = "World";          // input: a piece of data
const greeting = "Hello, " + name + "!";  // process: combine text
console.log(greeting);         // output: Hello, World!
            

这个 three-行 program shows 输入 → 处理 → 输出模式. computer 读取 instructions 顶部到 底部 and 执行每个 one 精确地一次.

动手试一试

  • JSON Formatter

    See 输入 → 处理 → 输出 in 操作: 粘贴 JSON (输入), tool 格式它 (处理), 你读取 result (输出).

常见错误

错误写法

Thinking programming 是只是 memorizing 语法.

正确做法

Programming 是关于 problem-解决. 语法是 仅 vocabulary — 真实 skill 是 breaking problem 到清晰 steps.

错误写法

Believing 你必须是 '好 at math' 到 program.

正确做法

大多数 everyday programming uses 基础 arithmetic and logic, 不高级 math. 清晰 thinking matters 远更多 than calculus.

相关速查表

练习 什么是 Programming?

2 个练习

练习 什么是 Programming?

查阅不认识的术语

新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。

查看术语表

动手做项目

通过引导式项目应用所学,含起始代码与解决方案。

查看项目

解读错误信息

用大白话解释常见错误——什么意思、为什么发生、如何修复。

查看错误