search
HomeBackend DevelopmentPHP Tutorial开发语言选择问题

我是学java的~ 感觉学的好可以。面向对象的思想掌握的不错。还学了些go语言。我个人比较喜欢前端,所以闲时做一些前端页面。特效玩玩。现在想自己写一个博客和rss订阅系统。其中rss订阅分为服务器端和Chrome扩展端。做完服务器端后打算部署到BAE上,用java是没问题的。但是感觉java做这些东西有点大材小用。毕竟java各种类库太繁琐了~~ 感觉java有点不适合开发博客和rss订阅(不是说不能。是感觉不合适)。所以想学学php,大家感觉怎么样,给点建议。有java基础学php到实现上述功能大概需要多长时间?BAE部署php怎么样?

博客不打算用wordpress,还是想自己开发,有很多自己的独特的功能。

回复内容:

我是学java的~ 感觉学的好可以。面向对象的思想掌握的不错。还学了些go语言。我个人比较喜欢前端,所以闲时做一些前端页面。特效玩玩。现在想自己写一个博客和rss订阅系统。其中rss订阅分为服务器端和Chrome扩展端。做完服务器端后打算部署到BAE上,用java是没问题的。但是感觉java做这些东西有点大材小用。毕竟java各种类库太繁琐了~~ 感觉java有点不适合开发博客和rss订阅(不是说不能。是感觉不合适)。所以想学学php,大家感觉怎么样,给点建议。有java基础学php到实现上述功能大概需要多长时间?BAE部署php怎么样?

博客不打算用wordpress,还是想自己开发,有很多自己的独特的功能。

我记得我在学Java的时候,一个师兄在学PHP,我在学PHP的时候,他在学Ruby,等我学Ruby的时候,才发现国外的程序员基本上是在用Ruby在做这方面的东西。可以说Java在这方面还可以是10年前的事,PHP还可以是5年前的事了,国内的几大网站,只有豆瓣是后端用Python的,其他的都是PHP,不过豆瓣已经很多年了,近几年的创业公司(比如Gitcafe),都用Ruby。中国的确很落后,Ruby程序员少得可怜。可以看出来趋势和潮流了,放弃Java和PHP吧,现在是Ruby, Node.js和Go。

没有带选语言的层次

选择自己上手快的,做出东西有人用才是王道

有兴趣可以研究下Python+django呢?

如果是学习,真的建议python,很多框架,很多大牛。如果只是为了用。php绝对快速。

Python 有编程基础的话很容易学的,先看官方文档的教程 https://docspy3zh.readthedocs.org/en/latest/tutorial/index.html 当然《深入Python》《简明Python 教程》 什么的也很好,都是网上免费的书。

另外可以加入Python 中国邮件列表,有什么不懂的发邮件问: https://groups.google.com/forum/#!forum/python-cn

框架新手推学Django,没有足够好的中文教程,建议看官方文档(英文)。

个人推荐Ruby和Nodejs,当然Python也不错,不过这个我没有用过。 使用Nodejs,可以体验JavaScript从前端到后端打通的快感!

  1. 继续使用 Java, 可以学习使用 Play! Framework 或 Grails (这个是用的 Groovy 语言)
  2. 使用新语言
    a) Python/Ruby/Node.js
    b) 如果对 Lisp 和函数式编程感兴趣, 推荐学习 Clojure, 写成的程序可以部署到支持 Java 的地方 (war)

如果做 rss订阅 还是python合适

python比ruby更合适做服务器端的工作

当然ror的web开发的确很快

Ruby或Python都是不错的选择。

php是最好的语言!

Python + Flask,你会知道开发一个博客是多么多么的简单!

国内还是使用PHP和JAVA为主,如果你不是单纯为了玩的话,应该学点PHP和JAVA。如果你偏向于前端,那PHP是不错的选择。现在新PHP框架在语法与使用上已经比以前好很多了,重要的是,PHP的产品很多,基本上是拿来就用,大多数情况下不需要自己开发,也是快速建站的利器。

python和nodejs也是我的兴趣,也建议你了解下,不过语言不要学太多,大概四五种就好,太多了其实很浪费精力,选定了就不要轻易去改变。

如果喜欢前端,那应该学学 Javascript

学了 Javascript,可以试试用 nodejs 作后端,语言相同。

在云平台上部署,尽量选用平台支持、占用资源较少的方案, 所以差不多是 Python 和 PHP 之一吧。

如果已经学了其他的后端编程语言, 特别是 Go(吐槽下很想学 Go...), 不建议碰 Node,

作为前端表示 Node 为广大精通 JS 且不熟悉后端的同学带来了巨大的方便, 甚至是其他后端语言无法大到的前后端默契配合, 而且异步编程和 Stream 处理是的确有用,

但 JS 的坑很多, 学了更先进的语言还花时间学一遍 JS 服务端编程就有点多余了.

如果是为了了解异步编程, 了解 CoffeeScript, 那看看也不错..

你如果是没有工作经验的学生党,
这个时候 考虑的不是语言优不优秀,而是考虑哪个语言生态好。
如果以后想从事WEB开发 建议你选择PHP,
如果以后想从事移动应用开发,就选择JAVA,
为了你以后找工作 可以有相关的作品,

如果是已经工作了,想做一个小玩意儿
那就选择最屌的,node.js go python都不错。
我个人看好node.js 因为这样前后端统一是javascript.
多么完美啊。

Statement
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
How can you protect against Cross-Site Scripting (XSS) attacks related to sessions?How can you protect against Cross-Site Scripting (XSS) attacks related to sessions?Apr 23, 2025 am 12:16 AM

To protect the application from session-related XSS attacks, the following measures are required: 1. Set the HttpOnly and Secure flags to protect the session cookies. 2. Export codes for all user inputs. 3. Implement content security policy (CSP) to limit script sources. Through these policies, session-related XSS attacks can be effectively protected and user data can be ensured.

How can you optimize PHP session performance?How can you optimize PHP session performance?Apr 23, 2025 am 12:13 AM

Methods to optimize PHP session performance include: 1. Delay session start, 2. Use database to store sessions, 3. Compress session data, 4. Manage session life cycle, and 5. Implement session sharing. These strategies can significantly improve the efficiency of applications in high concurrency environments.

What is the session.gc_maxlifetime configuration setting?What is the session.gc_maxlifetime configuration setting?Apr 23, 2025 am 12:10 AM

Thesession.gc_maxlifetimesettinginPHPdeterminesthelifespanofsessiondata,setinseconds.1)It'sconfiguredinphp.iniorviaini_set().2)Abalanceisneededtoavoidperformanceissuesandunexpectedlogouts.3)PHP'sgarbagecollectionisprobabilistic,influencedbygc_probabi

How do you configure the session name in PHP?How do you configure the session name in PHP?Apr 23, 2025 am 12:08 AM

In PHP, you can use the session_name() function to configure the session name. The specific steps are as follows: 1. Use the session_name() function to set the session name, such as session_name("my_session"). 2. After setting the session name, call session_start() to start the session. Configuring session names can avoid session data conflicts between multiple applications and enhance security, but pay attention to the uniqueness, security, length and setting timing of session names.

How often should you regenerate session IDs?How often should you regenerate session IDs?Apr 23, 2025 am 12:03 AM

The session ID should be regenerated regularly at login, before sensitive operations, and every 30 minutes. 1. Regenerate the session ID when logging in to prevent session fixed attacks. 2. Regenerate before sensitive operations to improve safety. 3. Regular regeneration reduces long-term utilization risks, but the user experience needs to be weighed.

How do you set the session cookie parameters in PHP?How do you set the session cookie parameters in PHP?Apr 22, 2025 pm 05:33 PM

Setting session cookie parameters in PHP can be achieved through the session_set_cookie_params() function. 1) Use this function to set parameters, such as expiration time, path, domain name, security flag, etc.; 2) Call session_start() to make the parameters take effect; 3) Dynamically adjust parameters according to needs, such as user login status; 4) Pay attention to setting secure and httponly flags to improve security.

What is the main purpose of using sessions in PHP?What is the main purpose of using sessions in PHP?Apr 22, 2025 pm 05:25 PM

The main purpose of using sessions in PHP is to maintain the status of the user between different pages. 1) The session is started through the session_start() function, creating a unique session ID and storing it in the user cookie. 2) Session data is saved on the server, allowing data to be passed between different requests, such as login status and shopping cart content.

How can you share sessions across subdomains?How can you share sessions across subdomains?Apr 22, 2025 pm 05:21 PM

How to share a session between subdomains? Implemented by setting session cookies for common domain names. 1. Set the domain of the session cookie to .example.com on the server side. 2. Choose the appropriate session storage method, such as memory, database or distributed cache. 3. Pass the session ID through cookies, and the server retrieves and updates the session data based on the ID.

See all articles

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 Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version