为啥选择PHP

Jun 13, 2016 pm 12:50 PM
http java linux nbsp php

为什么选择PHP

【注】本文另载在 http://www.16nn.com/?p=525 

今天有个写JAVA的同事问我,“PHP这么弱,你怎么会选择PHP呢,应该是java啊”。



是的,接触PHP这么久了,我都没问过我为什么会选择PHP,并在网上搜了下,“为什么选择PHP”,“为什么选择JAVA、C、C++”,又重新看了遍“PHP比你想象的好的多”,包括程序员的百科定义等等,作为一个web开发程序员,我想这就是我的答案:


1、最先迷恋上的是PHP而不是其它。


得从接触Linux开始谈起了,记得在接触Linux之前,从来就没有想过,除了windows还会有这么power的系统,是Linux的开源,Linux的命令行操作,还有shell脚本,让我喜欢上了Linux,而搭载在linux上的LAMP环境,让我第一次接触了PHP,写的第一个PHP代码不是“hello world”,而是phpinfo();PHP和Linux一样,开源。开源,是多么神奇的一件事情啊。还记得我写毕业论文那会,需要设计个网站原型,可我想自己写个能用的网站出来,这之前学过.net、java,但没拿来写过网站,那会正在实习,没有很多时间,听说PHP入门快,写网站也快,最后,仅用了一周的时间完成了毕设网站。后来从事系统运维工作,除了系统中跑的脚本为perl、python、shell外,接触到的所有网站平台、工具、开源系统等等,都是PHP开发的,从此就迷恋上了PHP。


2、选择PHP并成为一个真正的程序员。


做程序员的都知道,编程语言太多了,静态的、动态的,编译型的、非编译型的,还有脚本语言等等一大片。每门语言的出现和存在,都有它的道理,那我们到底选择哪个语言呢,我的感触是,像我们选择汉语为母语一样,你这是别无选择的,你必须先得会上一个语言,才有去学习其他语言的能力。


对于一个差不多的程序员,一般都会精通一到两门编程语言,顶多再熟悉一两门就很不错了。可事实上,编程语言只是一种工具,就好比我们的语言一样,不管是汉语、英语、法语等等,其实就一个目的,交流和沟通。同样,编程语言的目的,就是为了解决某个领域的特定问题和实现某个优秀算法等等。


对于一个真正的程序员,编程语言是其次,重中之重的是计算机软件最根本的东西。现在回过头来看,选择做一个程序员,尤其是做web开发的PHP程序员,一开始就直接选择PHP是不对的,应该从程序员最基础的开始,如计算机原理、操作系统、网络、数据结构、数据库、算法等等,语言最好是C。C就好比我们的母语一样。因为包括PHP在内的很多语言底层都是用C写的,包括强大的UNIX、Linux操作系统等。但是话说回来,对于一个要进入程序开发的新人来说,从学C、学计算机原理开始,是不现实的。所以选择一个语言,作为入门程序员的突破口,最好不过了。但是一个精通C的人,如果去学习PHP,甚至java等,都是小菜一碟。


【注】以上仅是个人见解,谢谢!
 1、如何成为一个正真的程序员 http://dandan390.blog.163.com/blog/static/342153952010343127566/
 2、PHP比想象的好得多 http://news.cnblogs.com/n/158147/
 3、什么是PHP高级工程师 http://www.phppan.com/2011/04/senior-php-programmer/
Statement of this Website
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

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

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

deepseek web version entrance deepseek official website entrance deepseek web version entrance deepseek official website entrance Feb 19, 2025 pm 04:54 PM

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Break or return from Java 8 stream forEach? Break or return from Java 8 stream forEach? Feb 07, 2025 pm 12:09 PM

Java 8 introduces the Stream API, providing a powerful and expressive way to process data collections. However, a common question when using Stream is: How to break or return from a forEach operation? Traditional loops allow for early interruption or return, but Stream's forEach method does not directly support this method. This article will explain the reasons and explore alternative methods for implementing premature termination in Stream processing systems. Further reading: Java Stream API improvements Understand Stream forEach The forEach method is a terminal operation that performs one operation on each element in the Stream. Its design intention is

Ouyi okx installation package is directly included Ouyi okx installation package is directly included Feb 21, 2025 pm 08:00 PM

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

BITGet official website installation (2025 beginner's guide) BITGet official website installation (2025 beginner's guide) Feb 21, 2025 pm 08:42 PM

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Get the gate.io installation package for free Get the gate.io installation package for free Feb 21, 2025 pm 08:21 PM

Gate.io is a popular cryptocurrency exchange that users can use by downloading its installation package and installing it on their devices. The steps to obtain the installation package are as follows: Visit the official website of Gate.io, click "Download", select the corresponding operating system (Windows, Mac or Linux), and download the installation package to your computer. It is recommended to temporarily disable antivirus software or firewall during installation to ensure smooth installation. After completion, the user needs to create a Gate.io account to start using it.

See all articles