Home Backend Development PHP Tutorial PHPer 的思维定势

PHPer 的思维定势

Jun 23, 2016 pm 01:02 PM

php高效,快速,成为了很多互联网公司startup的首选,经历了二十多的发展,已无可争议的成为了web开发领域的王者,这是一个巨大的优势,也是php成功的基石。

但这种优势慢慢的变成了一个思维定势,php很难单独提出来,往往是跟着LAMP, LNMP一起被人提及,这成为了phper发展的一个瓶颈,非phper看phper,往往会说php,不就是一个套模板的么,但我们phper一直坚定的认为自己不只是套模板,而是服务器端编程,但仔细想一想,真的是这样么?       如果把LNMP比喻成一个温室,那phper就是这温室里的花朵,基本只关注到业务,而关注不到底层的细节,关注不到协议的细节,web开发只是服务器端网络编程的一非常小的领域,有多少phper想过,我能写真正的服务器端的服务么?或者说自己动手来写一个web服务器?

所以,phper是时候跳出web开发的思维定势了,转向更为广泛的服务器端的网络编程了,其实也有很多phper意识到了这一点,所以往往被其他的语言所宣传的特性所吸引,而往往忽略了问题的本身。

问题的本身是什么?php是不是真不能做这些事情?服务端网络编程是不是和语言有关系,如果你没有想透这个问题,那么只能是在语言层面上流转,而并不能真正的去理解问题的本质。

其实市面上所谓的高并发,非阻塞都不是什么高大上,大多数常用语言都能达到,主要是带来了新的思路,而对于开发者是跟风式的学还是知根知底的学,这是关键。但目前往往很多人没有修练好内功,一但碰到问题,可能就会转向那些可以直接补坑的新事物上, 却不去理解这门语言,可以预料到的是,一但在新的语言上碰到坑,又会转向另一个,周而复始,对于自己,基本没有提高。  

而swoole的出现给了这个问题一个最好的答案,我也建议phper前期在技术深度上深入,通过php,自己很熟悉的语言去深入,深入到了一定层次,自然就广了,就像一个小夹角,越深,他覆盖的面也越广泛了。

这篇文章没有具体的技术,只是我和一些朋友交流的感悟。

最后做一个硬广:

2016年6月18日 13:30

北京中关村海龙大厦办公楼17层

有一个Swoole在实际项目中的应用的分享

本次分享不讲入门,只有实战, 会有微博、百度、马展金融的朋友给大家来做分享 另外,本人会担当本次分享的主持人 在帝都的phper,如果感兴趣的 可以点击 查看原文 进行报名。 活动完全免费。

--------------伟大的分割线----------------

PHP饭米粒(phpfamily) 由一群靠谱的人建立,愿为PHPer带来一些值得细细品味的精神食粮!

饭米粒只发原创或授权发表的文章,不转载网上的文章

所发的文章,均可找到原作者进行沟通。

也希望各位多多打赏(算作稿费给文章作者),更希望大家多多投搞。

投稿请联系:

shenzhe163@gmail.com

本文由 桶哥 有感而发,转载请注明本来源信息和以下的二维码(长按可识别二维码关注)

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

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 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
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)

Working with Flash Session Data in Laravel Working with Flash Session Data in Laravel Mar 12, 2025 pm 05:08 PM

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

cURL in PHP: How to Use the PHP cURL Extension in REST APIs cURL in PHP: How to Use the PHP cURL Extension in REST APIs Mar 14, 2025 am 11:42 AM

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Simplified HTTP Response Mocking in Laravel Tests Simplified HTTP Response Mocking in Laravel Tests Mar 12, 2025 pm 05:09 PM

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

12 Best PHP Chat Scripts on CodeCanyon 12 Best PHP Chat Scripts on CodeCanyon Mar 13, 2025 pm 12:08 PM

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP Logging: Best Practices for PHP Log Analysis PHP Logging: Best Practices for PHP Log Analysis Mar 10, 2025 pm 02:32 PM

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

HTTP Method Verification in Laravel HTTP Method Verification in Laravel Mar 05, 2025 pm 04:14 PM

Laravel simplifies HTTP verb handling in incoming requests, streamlining diverse operation management within your applications. The method() and isMethod() methods efficiently identify and validate request types. This feature is crucial for building

Discover File Downloads in Laravel with Storage::download Discover File Downloads in Laravel with Storage::download Mar 06, 2025 am 02:22 AM

The Storage::download method of the Laravel framework provides a concise API for safely handling file downloads while managing abstractions of file storage. Here is an example of using Storage::download() in the example controller:

See all articles