Home Backend Development PHP Tutorial PHP解决有关问题的能力是毋庸置疑的

PHP解决有关问题的能力是毋庸置疑的

Jun 13, 2016 pm 12:20 PM
lambda nbsp php python

PHP解决问题的能力是毋庸置疑的
“我是一个php程序员,在项目中也经常使用Python,但我很佩服PHP以及它解决问题的能力。PHP用户一直在增长是因为有时候一些可怜的灵魂想创建一个在线百科全书,或某个教师需要一个网上教学平台,亦或者某人想写一个博客。这些人不想学什么编程,他们只想解决问题而已。”
我想说这个评论真的切中要害!我认为这是PHP能获得成功最主要的原因。
人们学习PHP是因为他们有一些需要解决的问题,这正是PHP的闪光之处。你可以很简单地打开你的静态HTML网页,在里面添加一个简单的  ,然后……这就完成了!
从那里开始,你就可以写一些简单的脚本,学习怎么处理表单,怎么与数据库对话等等。一段时间后你开始使用面向对象编程,可能还会使用一些框架。
我基本上就是这么进入编程圈的。
与其他许多语言相比,PHP的方式有点不同。学习其他语言时你需要先学习计算机科学5年,然后你才会进入你要解决问题的那个真正的世界。(你当然可以说PHP是一个能催生出很多程序员的语言,而不大部分其他语言却使程序员越来越少。)
关于这一点你可能会问了:那么,一旦你开始学习编程,为什么不换门其他的语言呢?简单点说:PHP是有点问题,但还并没那么糟糕。当然,人们总是试图告诉你,但它真的不是那样的。人们批评PHP最多的就是它真的不重要,就像不一致的针和干草堆的混乱秩序一样。在事物的最高点PHP是犯了点错误的。但在现实中这真的并没有什么影响。当然了,如果秩序是一致的就更好了,但我的IDE在提醒我该怎么正确地做事这点上面真的已经做得很好了。
总结一下:
PHP是一门编程入门的伟大语言!
一旦你开始学习,PHP用在实际编程上也很优秀(你懂得,关于面向对象那些很有用)
PHP并不像一部分人说的那么糟糕。它是有点问题,就像每一门语言都有点小问题一样,但在实践中PHP很少会出现问题。
此外,我也注意到,大多数PHP的抨击者面对这门语言的时候就好像一个10岁的幼稚儿。比如下面这个Jeff文章里的一句话:
“让人沮丧的不是PHP可怕的设计。难道还会有人否认PHP是摧残我们几十年来编程工艺的设计得最糟糕的主流语言么?真正让人沮丧的是到目前为止这点并没有什么改变。”
    这种话说得也太离谱了。PHP在近些年来已经有了很大的变化,但很多人好像只记住了它在PHP 4时代对OOP支持的不太好的低劣语言的形象。好吧,我要为你们洗心革面:PHP 4死了将近十年了,PHP 5已经对面向对象有了很好的支持,就像Java那样。PHP 5.3另外还增加的命名空间和lambda函数支持的组合。而PHP 5.5将添加大量新的让人眼前一亮的功能。而你却告诉我一直以来都没什么改变?
免费领取LAMP兄弟连原创PHP视频教程光盘/《细说PHP》精要版,详情咨询官网客服:
http://www.lampbrother.net

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

Video Face Swap

Video Face Swap

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

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks 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)

Hot Topics

Java Tutorial
1673
14
PHP Tutorial
1278
29
C# Tutorial
1257
24
Python vs. JavaScript: Development Environments and Tools Python vs. JavaScript: Development Environments and Tools Apr 26, 2025 am 12:09 AM

Both Python and JavaScript's choices in development environments are important. 1) Python's development environment includes PyCharm, JupyterNotebook and Anaconda, which are suitable for data science and rapid prototyping. 2) The development environment of JavaScript includes Node.js, VSCode and Webpack, which are suitable for front-end and back-end development. Choosing the right tools according to project needs can improve development efficiency and project success rate.

Python vs. C  : Understanding the Key Differences Python vs. C : Understanding the Key Differences Apr 21, 2025 am 12:18 AM

Python and C each have their own advantages, and the choice should be based on project requirements. 1) Python is suitable for rapid development and data processing due to its concise syntax and dynamic typing. 2)C is suitable for high performance and system programming due to its static typing and manual memory management.

Golang vs. Python: The Pros and Cons Golang vs. Python: The Pros and Cons Apr 21, 2025 am 12:17 AM

Golangisidealforbuildingscalablesystemsduetoitsefficiencyandconcurrency,whilePythonexcelsinquickscriptinganddataanalysisduetoitssimplicityandvastecosystem.Golang'sdesignencouragesclean,readablecodeanditsgoroutinesenableefficientconcurrentoperations,t

Laravel vs. Python (with Frameworks): A Comparative Analysis Laravel vs. Python (with Frameworks): A Comparative Analysis Apr 21, 2025 am 12:15 AM

Laravel is suitable for projects that teams are familiar with PHP and require rich features, while Python frameworks depend on project requirements. 1.Laravel provides elegant syntax and rich features, suitable for projects that require rapid development and flexibility. 2. Django is suitable for complex applications because of its "battery inclusion" concept. 3.Flask is suitable for fast prototypes and small projects, providing great flexibility.

What happens if session_start() is called multiple times? What happens if session_start() is called multiple times? Apr 25, 2025 am 12:06 AM

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

The Compatibility of IIS and PHP: A Deep Dive The Compatibility of IIS and PHP: A Deep Dive Apr 22, 2025 am 12:01 AM

IIS and PHP are compatible and are implemented through FastCGI. 1.IIS forwards the .php file request to the FastCGI module through the configuration file. 2. The FastCGI module starts the PHP process to process requests to improve performance and stability. 3. In actual applications, you need to pay attention to configuration details, error debugging and performance optimization.

Does Python projects need to be layered? Does Python projects need to be layered? Apr 19, 2025 pm 10:06 PM

Discussion on Hierarchical Structure in Python Projects In the process of learning Python, many beginners will come into contact with some open source projects, especially projects using the Django framework...

Python vs. JavaScript: Use Cases and Applications Compared Python vs. JavaScript: Use Cases and Applications Compared Apr 21, 2025 am 12:01 AM

Python is more suitable for data science and automation, while JavaScript is more suitable for front-end and full-stack development. 1. Python performs well in data science and machine learning, using libraries such as NumPy and Pandas for data processing and modeling. 2. Python is concise and efficient in automation and scripting. 3. JavaScript is indispensable in front-end development and is used to build dynamic web pages and single-page applications. 4. JavaScript plays a role in back-end development through Node.js and supports full-stack development.

See all articles