为啥选择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/

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











DMA in C refers to DirectMemoryAccess, a direct memory access technology, allowing hardware devices to directly transmit data to memory without CPU intervention. 1) DMA operation is highly dependent on hardware devices and drivers, and the implementation method varies from system to system. 2) Direct access to memory may bring security risks, and the correctness and security of the code must be ensured. 3) DMA can improve performance, but improper use may lead to degradation of system performance. Through practice and learning, we can master the skills of using DMA and maximize its effectiveness in scenarios such as high-speed data transmission and real-time signal processing.

Handling high DPI display in C can be achieved through the following steps: 1) Understand DPI and scaling, use the operating system API to obtain DPI information and adjust the graphics output; 2) Handle cross-platform compatibility, use cross-platform graphics libraries such as SDL or Qt; 3) Perform performance optimization, improve performance through cache, hardware acceleration, and dynamic adjustment of the details level; 4) Solve common problems, such as blurred text and interface elements are too small, and solve by correctly applying DPI scaling.

AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

macOS and Linux have their own advantages in compatibility and user experience. macOS has excellent compatibility within the Apple ecosystem, and the user experience is simple and intuitive; Linux has outstanding hardware compatibility and software flexibility. The user experience varies from distribution to distribution, emphasizing personalization and control.

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.

Methods for configuring character sets and collations in MySQL include: 1. Setting the character sets and collations at the server level: SETNAMES'utf8'; SETCHARACTERSETutf8; SETCOLLATION_CONNECTION='utf8_general_ci'; 2. Create a database that uses specific character sets and collations: CREATEDATABASEexample_dbCHARACTERSETutf8COLLATEutf8_general_ci; 3. Specify character sets and collations when creating a table: CREATETABLEexample_table(idINT
