search
HomeCommon ProblemHow to learn computer programming

How to learn computer programming

Aug 07, 2019 am 10:35 AM
studyprogramming

How to learn computer programming

I believe that most self-taught friends have had this problem: "In order to try to learn programming by myself, I bought a book, but found that I couldn't understand it at all, and I didn't know where to start. Start learning.” That's because there are a lot of things you need to know before you study, and if you're going to study on your own, there are a lot of things that knowing ahead of time can make your studies go pretty smoothly.

Things you need to know before learning programming

What is programming? What is a programming language?

Programming is the Chinese abbreviation of writing a program, which is to let the computer solve a certain problem on your behalf. You can write the tasks you want the computer to perform.

Since computers cannot understand the same words as humans, they use specialized languages ​​= programming languages ​​(describing programming languages ​​is called "coding") to give instructions.

It is said that there are more than 200 different programming languages, but that is about one-tenth of the number actually in use.

Programming is good at high-speed processing and automatic processing of simple tasks. It’s no exaggeration to say that much of the enrichment of our lives is achieved through programming.

And learning programming is not as difficult as everyone thinks. Most of our partners from all walks of life can acquire programming skills through self-study! However, everyone has different personalities. Some people are more self-conscious and good at studying on their own, while others are less efficient in self-study and need stimulating learning. So for those who have difficulty in self-study, php Chinese website has specially launched VIP Sponsored Membership Course, which can supervise your learning and witness your progress.

How to learn computer programming

Four steps to learn programming

The recommended process for learning programming is as follows.

Step 1: Decide what you want to do

 “I want to program, but I don’t have anything I want to do” vs. I don’t have any business but I just want to walk in the mountains” same thing. If you want to touch the computer world, such as enjoying the mountain view, I think this is also good. But if you want to improve yourself by learning programming, then set your goals!

If you learn by imagining a specific product (using programming to implement a product or function), you can greatly improve your learning efficiency.

Also consider the market trends before suggesting what to decide on

If you can’t decide clearly what to do, it is also a good thing to decide by looking at the recent market trends in the IT field. If you're learning to program and preparing to find or change jobs, you can increase your likelihood of being considered "instant" by acquiring the necessary skills in an area where there's more demand.

Application development, such as the iPhone described previously. With the popularity of the terminal itself, the application of smartphones is expanding the market. It is also a field that is in high demand.

Step 2: Determine the language to learn

 [2018 Edition] Which language is suitable for beginners? Programming language recommendations.

PHP

Recommended tutorial: "PHP Tutorial"

PHP (foreign name: PHP : Hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a general open source scripting language. The syntax absorbs the characteristics of C language, Java and Perl, which is easy to learn and widely used. It is mainly suitable for the field of Web development.

PHP’s unique syntax mixes C, Java, Perl and PHP’s own syntax. It can execute dynamic web pages faster than CGI or Perl. Compared with other programming languages, dynamic pages made with PHP embed programs into HTML (an application under the Standard Universal Markup Language) document for execution, and the execution efficiency is much higher than CGI that completely generates HTML tags; PHP can also execute compiled code. Compilation can achieve encryption and optimize code running, making the code run faster. Related recommendations: "What is php"

Swift

Recommended tutorial: "Swift Tutorial

Swift, a new development language released by Apple at WWDC (Apple Developer Conference) in 2014, can run on Mac OS and iOS platforms together with Objective-C* and is used to build Apple-based Platform applications. Swift is an easy-to-learn and easy-to-use programming language, and it is the first systems programming language to be as expressive and fun as scripting languages. Swift is designed with safety in mind to avoid a variety of common categories of programming errors.

HTML&CSS

Recommended tutorials: "HTML Tutorial" "CSS Tutorial"

HTML is a markup language used to describe Web pages (*). CSS is a language that specifies how to decorate the structure and modify the information of these sentences.

Related recommendations: "Front-end learning route: How to become an excellent front-end developer!

C

Recommended tutorial:《C Tutorial

 C is the inheritance of C language. It can perform procedural programming of C language, object-based programming characterized by abstract data types, and object-oriented programming characterized by inheritance and polymorphism. programming. While C is good at object-oriented programming, it can also perform process-based programming. Therefore, C is big or small in terms of the size of the problem it can adapt to.

Java

Recommended tutorial: "Java Tutorial"

Java is an object-oriented The programming language not only absorbs the various advantages of the C language, but also abandons the concepts such as multiple inheritance and pointers that are difficult to understand in C. Therefore, the Java language has two characteristics: powerful functions and simple and easy to use. As a representative of static object-oriented programming languages, Java language perfectly implements object-oriented theory and allows programmers to perform complex programming with an elegant way of thinking.

Python

Recommended tutorial: "Python Tutorial"

Python is a computer program Design language. It is a dynamic, object-oriented scripting language that was originally designed for writing automated scripts (shells). With the continuous updates of the version and the addition of new language features, it is increasingly used for independent and large-scale projects. development.

Step 3: Understand environment construction and use tools

Creating an environment is to be able to use the selected one on a computer (personal computer) programming language. Environment building means arranging the state of computers and information systems so that specific equipment, software, systems, etc. operate. In particular, in many cases it means the work of creating an environment in which the target software will run by introducing the software or adjusting settings in the computer.

For example, if you want to run the PHP language, you need to install and configure the PHP environment.

Common PHP integrated environments are:

phpstudy2016 stable version: http://www.php.cn/xiazai/gongju/89

phpStudy 2018 latest version: http://www.php.cn/xiazai/gongju/845

WampServer: http://www.php.cn/xiazai/gongju /90

Common PHP editing tools are:

PhpStorm 18.2.1 Win version: http://www.php.cn/xiazai/gongju/122

PhpStorm Mac version: http://www.php.cn/xiazai/gongju/510

SublimeText3 Linux new version: http:// www.php.cn/xiazai/gongju/1471

Chinese version of SublimeText3: http://www.php.cn/xiazai/gongju/93

Step 4: Start learning the language

Once you have determined your goals, you can start learning the programming language! Just like learning a foreign language, you have to start from the basics and practice it!

How to learn computer programming

Learning programming takes time. Especially for beginners, it can be difficult to find the best way to study and keep your studies in mind. Here are four more study tips recommended to you.

Four tips to promote more effective learning

1. Accurately set goals/objectives

Setting goals in detail makes it easier to see how far you are progressing and helps you stay motivated and check in on the rest of your progress. If possible, we also recommend that you log how much you study each day. I don't mind writing it down, but it will more easily reflect your own growth if you record it.

2. Do it for 30 minutes every day

For example, if you study for 7 hours every week during the holidays, it will take about 1 hour to review the previous week. If you keep learning every day, you can shorten your review time and learn more efficiently.

For beginners in programming, the learning barrier will be high at first. If you try too hard for too long, it can lead to a loss of focus and motivation. You can learn bit by bit, master the whole picture of programming, and turn to comprehensive learning.

3. Linux commands you need to remember

Regardless of the type of operating system, when you start programming, you have the opportunity to use something called a terminal or Terminal application.

A very simple explanation of the terminal is "operate commands by typing them instead of using the mouse." ("Using Terminal, instead of the technology that has been used in commands, becomes capable of being operated by the mouse." This is now the case with PCs.)

However, the standard installation on Windows is an application called Command Prompt. Unfortunately, since the instructions are in a different format, it's not necessary to use another application.

There is a chance that you can use it, so I will introduce the basic five commands.

cd ...此命令移动目录(=文件夹)。
ls ...此命令列出目录的内容。
pwd ...此命令显示当前目录。
mkdir ...此命令创建一个新目录。
man···显示命令的手册。

4. Learn the basics of regular expressions

Recommended tutorial: "Regular Expression Tutorial"

Regular expressions are expressions used to express multiple strings in one form. By using this expression method, you can easily search for the string you are looking for from many sentences.

For example, if you want to retrieve "iPod", "iMac", "iPad", etc. appended to the beginning of "i" from a database containing Apple products, "^i" ..." I will write.

Mastering regular expressions can significantly improve the efficiency of text processing work.

Not only is it easy to work with programs, but it's also useful for large-scale improvements to your source code if you can handle regular expressions when searching and replacing.

The above is a recommended introduction about how to learn programming. I hope it will be helpful to friends who are preparing to learn programming languages!

The PHP Chinese website is also constantly collecting learning feedback from students. We have collected some common questions and summarized the methods of learning programming for your reference!

Related recommendations: How to learn a programming language well? Brother Zhu will talk to you about efficient programming learning methods

The above is the detailed content of How to learn computer programming. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
deepseek web version official entrancedeepseek web version official entranceMar 12, 2025 pm 01:42 PM

The domestic AI dark horse DeepSeek has risen strongly, shocking the global AI industry! This Chinese artificial intelligence company, which has only been established for a year and a half, has won wide praise from global users for its free and open source mockups, DeepSeek-V3 and DeepSeek-R1. DeepSeek-R1 is now fully launched, with performance comparable to the official version of OpenAIo1! You can experience its powerful functions on the web page, APP and API interface. Download method: Supports iOS and Android systems, users can download it through the app store; the web version has also been officially opened! DeepSeek web version official entrance: ht

How to solve the problem of busy servers for deepseekHow to solve the problem of busy servers for deepseekMar 12, 2025 pm 01:39 PM

DeepSeek: How to deal with the popular AI that is congested with servers? As a hot AI in 2025, DeepSeek is free and open source and has a performance comparable to the official version of OpenAIo1, which shows its popularity. However, high concurrency also brings the problem of server busyness. This article will analyze the reasons and provide coping strategies. DeepSeek web version entrance: https://www.deepseek.com/DeepSeek server busy reason: High concurrent access: DeepSeek's free and powerful features attract a large number of users to use at the same time, resulting in excessive server load. Cyber ​​Attack: It is reported that DeepSeek has an impact on the US financial industry.

In-depth search deepseek official website entranceIn-depth search deepseek official website entranceMar 12, 2025 pm 01:33 PM

At the beginning of 2025, domestic AI "deepseek" made a stunning debut! This free and open source AI model has a performance comparable to the official version of OpenAI's o1, and has been fully launched on the web side, APP and API, supporting multi-terminal use of iOS, Android and web versions. In-depth search of deepseek official website and usage guide: official website address: https://www.deepseek.com/Using steps for web version: Click the link above to enter deepseek official website. Click the "Start Conversation" button on the homepage. For the first use, you need to log in with your mobile phone verification code. After logging in, you can enter the dialogue interface. deepseek is powerful, can write code, read file, and create code

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment