学习PHP不如JAVA吗?
本人大三,自学PHP一段时间,但是最近听到一种论调说,PHP大部分都用在小项目,要想在web开发走得更远,建议学习java
由于社会经历不是很丰富,不知道这种说法对不对,希望大家解解惑。
谢谢。
回复内容:
恕我直言,绝大多数人还没有牛逼到能讨论语言优劣的地步。 PHP说做不了大项目只是你听别人说的。现在PHP还是很强大的。虽然PHP有一些坑。但是我还是说PHP在WEB领域还是当之无愧的老大级别的。别轻易判断一个语言不行或者咋的。
一个PHP也是可以挑起大梁的。只是到了一定阶段之后,会碰到一些PHP之外的事情。现在你就不用考虑这么多了。好好学习一门语言。出去能干活才是真的。
现在学习JAVA的已经不少了。每天出来的JAVAer还是老多的。目前PHPer的缺口很大。
好好学习吧!骚年! 大二先把计算机理论基础打好,至于什么语言好不是你现在应该考虑的事 腾讯收购的discuz、
阿里收购的phpwind、
非死不可、
百度
任何大厂,都不只有一门语言组成的!
非死不可已经改写了php好伐,不要拿它找语病!
Java做ERP、金融的多!
底层数据计算嘛,可能还是得C、C++类似的来做了!
至于要不要学,看我的个人详情!
你有时间有兴趣就好了!
建议学习两种不同类型的语言,
静、动语言,了解不同之处!
语言---工具罢了! php学习成本低,可以学下,即便不用来做web开发,也能做脚本用。有些零碎的任务,用php来做还是比较方便的,性能又无所谓。比如每天都有些数据要更新,或者计算,就可以用php,几分钟就能完成了。
java跟php确实有层次之分,java一般用于大项目,要求可靠性。java的生态系统跟php的生态系统相差比较大。实际工作不仅仅是学个语言,还要学习生态圈。比如php常说的apm(apache,php,mysql),java用tomcat等。不过这个项目大小的区分不是区别一个语言是否好坏。php用来做小项目为啥就不好呢,够用,能用就行。
虽然我也不看好php,但是从来也没后悔过学习php。每个语言都有自己的生存空间。 如果想走web开发的路,建议去了解下j2ee。我之前做了一年多的PHP,框架是ThinkPHP,最近因为项目原因学习j2ee,真的被惊艳到的感觉,解耦,分层,ORM,Ioc,AOP,很多珍贵的思想,感觉自己对web项目的设计理解加深不少。
怎么说呢,在PHP里面快糙猛地开发起来很爽,初学者很容易不注意代码的质量,而java相对很容易规范代码,能提前让初学者了解这些设计思想。
相比于ThinkPHP之流,SSH三个框架算是Web界的工业典范。很多PHP框架都引进了其中的思想。目前我了解的PHP框架中也只有Laravel能与之媲美。
当然,我是PHP粉,世上最好的语言怎能不讨人喜欢 php确实有局限,但是也不推荐学习java,可以接触下python、nodejs 等你有了做大项目的技术再说吧!ps 个人认为要5年的工作经验 我不确定我的理解对不对。
php目前的使用只是在web开发层面,而java是客户端服务器都有,是一个比较庞大php是个很好上手的语言,只是周边也不少。
其实我建议你俩都学。
你大学没开java课程么?答案里很多人都说了,编程是门手艺,而语言只是工具。大学的修炼还是在于手艺,而不是工具。 Java现在还在写web吗?为什么我记得早就淘汰了......
~~2015.12

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

AI Hentai Generator
Generate AI Hentai for free.

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 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

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

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

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

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

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.
