为什么国内微博都是php开发的呢?
听说新浪微博和腾讯微博都是 php 开发的,但我感觉国外这两年新出来的比较火的应用都是 Python 开发的,比如Duolingo, Pinterest , 就连微博模仿的对象 Twitter 也是 Ruby 开发后来改成 Java, 基本上国外只有 Facebook 这种因为历史遗留问题才选择 PHP,基本上国外新出的这些 Web App 这两年已经没有 PHP 的影子了,为什么微博还要用PHP 呢,按照国外这种趋势,PHP 是不是要退出历史舞台了,感觉就只有 Wordpress 这种元老级的 Web app 在支撑 PHP,这两年基本上新的Web App都是 Python 或者 .NET 或者 Rails, 其实感觉Rails 都在走下坡路了,我在想我学了 Python 的 Web Programming 之后, 再选一门 Server-side Language 是什么比较好呢?感觉ruby 和 php 都在走下坡路了,Google 的 Dart 之类的又太非主流了,估计Java 和 .Net 好一点不过有都是 Monster
回复内容:
瞎说,我们当年开发了一个类似微博的社区就是用python写的,5个人,两个月! 不要黑我PHP!!你可以先去了解几个名词,虽然不是多新的概念,至少有他们php正在走向另一个美好的未来。psr/composer/hhvm/phpng/swoole... 撸主只看到了表面,以腾讯微博为例,php是后台中的最上层,没有强逻辑,真正的后台全是用c/c++写的服务,php只负责调用。你可以理解为架构设计中的水平、垂直划分。同理,不管你是php,还是java,语言真的是其次,对于大型网站服务来说:业务规模、架构、整体性能 比你用什么语言来得重要。 新浪微博和腾讯微博都不是这两年才出来的应用。微博是09年出来的,开发应该是08~09年,在那些年php是绝对的最流行的web开发技术。 时间那么宝贵,看Python那么好,那就抓紧学呀,哪有闲工夫纠结其他语言啊!Django搭建个傻瓜应用都不用啥基础的,试着做几个项目再做定夺呗。
Python跟林志玲一样,设计好优雅的呀(对不起,我错了,应该说长得好漂亮的呀),但是语言优雅未必大家写出的代码就统统好啊!Django用多继承机制实现的视图层也能让很多人感觉胸口淤积了好大一口黑血的呀。
觉得PHP out了?大家嫌弃PHP是丑八卦当然是人之常情,但是不能因为人丑就无视啊。Python那些很牛逼的库功能PHP又不是做不成,PHP写爬虫、PHP搞个expect和命名行交互,这些也可以玩玩嘛。
Ruby啥的挺好玩的样子,你看Msf就用这玩意儿(妈蛋害的以前我觉得想当黑客就得精通这玩意儿)。
Server端现在Node.js这么火,也可以涉猎一下啊。JSP,http://ASP.net都不错,完全可以去搞搞嘛。
所以干嘛吊死在一棵树上?
我开小差完毕,我还得再学抓紧时间学习,还有1个小时零13分钟才能去睡觉。题主你加油吧 我猜,题主只会写hello world 个人感觉用php比python成本低,而且配置方面要容易点。php的开发人员相对比python要好找一点 php是世界上最好的语言,没有之一!! 老板说用php吧 PHP宇宙最强语言,你没听说过么?

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



PHP is a server-side scripting language used for dynamic web development and server-side applications. 1.PHP is an interpreted language that does not require compilation and is suitable for rapid development. 2. PHP code is embedded in HTML, making it easy to develop web pages. 3. PHP processes server-side logic, generates HTML output, and supports user interaction and data processing. 4. PHP can interact with the database, process form submission, and execute server-side tasks.

PHP is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

VS Code extensions pose malicious risks, such as hiding malicious code, exploiting vulnerabilities, and masturbating as legitimate extensions. Methods to identify malicious extensions include: checking publishers, reading comments, checking code, and installing with caution. Security measures also include: security awareness, good habits, regular updates and antivirus software.

PHP has shaped the network over the past few decades and will continue to play an important role in web development. 1) PHP originated in 1994 and has become the first choice for developers due to its ease of use and seamless integration with MySQL. 2) Its core functions include generating dynamic content and integrating with the database, allowing the website to be updated in real time and displayed in personalized manner. 3) The wide application and ecosystem of PHP have driven its long-term impact, but it also faces version updates and security challenges. 4) Performance improvements in recent years, such as the release of PHP7, enable it to compete with modern languages. 5) In the future, PHP needs to deal with new challenges such as containerization and microservices, but its flexibility and active community make it adaptable.

VS Code can be used to write Python and provides many features that make it an ideal tool for developing Python applications. It allows users to: install Python extensions to get functions such as code completion, syntax highlighting, and debugging. Use the debugger to track code step by step, find and fix errors. Integrate Git for version control. Use code formatting tools to maintain code consistency. Use the Linting tool to spot potential problems ahead of time.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.
