php vs python [英] php vs python

查看:56
本文介绍了php vs python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是为了发起一些宗教性的火焰战而发布这个,尽管这是完美的主题。不,我非常希望对这两种语言有一些认真的建议,因为我认为usenet是找到它的最好的竞技场,

这里是你去的。


所以,这是我的delimna:我想开个博客。是的,谁不是。然而,我想要了解它的内容,而不是仅仅启动一些wordwank或

无论如何。我开始学习python,但听说php更容易或更快,或者更像是shell脚本或者... b填充空白。无论如何,所以我转换

来学习php。然后我跑过那个博客,编码恐怖片,并开始阅读这样的文章:

http://www.codinghorror.com/blog/archives/001119.html


怎么办?回到python。有php的士兵?我知道什么?不是很多b $ b。我可以设置mysql和apache,但不知道如何使用''em,真的。

我使用emacs并运行slackware并且可以通过bash脚本摸索我的方式,

但是我不能写它们或做lisp。我已经采用了基本的基本和基本的

C,但我几乎没有识字。有时它似乎势不可挡,但我坚持不懈,因为它比电子游戏更有趣/更具挑战性,让我感到泪流满面。

那么,这是我的实际问题。 php真的很糟糕我只是

浪费我的时间吗?或者它真的是博客功能的最快方式吗?

我会在长期学习python中获得更好的服务,声称这是一个很容易学习/编程的
(对我来说仍然很难看)。我承认我不是代码

极客。但是,我也不是完全没脑子了,而且我需要一些东西来保证我的geezer脑子能够激发灵感。你说什么?


nb

I''m not posting this just to initiate some religious flame war, though it''s
the perfect subject to do so. No, I actaully want some serious advice about
these two languages and since I think usenet is the best arena to find it,
here ya'' go.

So, here''s my delimna: I want to start a blog. Yeah, who doesn''t. Yet, I
want learn the guts of it instead of just booting up some wordwank or
whatever. I started to learn python, but heard php was easier or faster or
more like shell scripting or... fill in the blank. Anyway, so I change over
to learning php. Then I run across that blog, Coding Horror, and start
reading articles like this:

http://www.codinghorror.com/blog/archives/001119.html

Now what? Go back to python. Soldier on with php? What do I know? Not
much. I can setup mysql and apache,, but don''t know how to use ''em, really.
I use emacs and run slackware and can fumble my way through bash scripts,
but I can''t really write them or do lisp. I''ve taken basic basic and basic
C, but am barely literate in html. Sometimes it seems overwhelming, but I
persevere because it''s more fun/challenging than video games, which bore me
to tears.

Well, that''s my actual question, then. Is php really so bad I''m just
wasting my time? Or is it really the quickest way to blog functionality?
Would I be better served in the long run learning python, which claims to be
easy as pie to learn/program (still looks hard to me). I admit I''m no code
geek. But, I''m not completely brain dead, either, and I need something to
keep my geezer brain sparking. What say ye?

nb

推荐答案

notbob写道:
notbob wrote:



持之以恒,因为它比电子游戏更有趣/更具挑战性
I
persevere because it''s more fun/challenging than video games



这是关键所在我坐的地方的问题。如果

学习编程语言的目的很有趣,那么主要的相关问题

是:


它更有趣吗用Python或PHP编写代码?


答案对我来说很简单。在我看来,Python的设计是从头开始设计的,并且考虑到了我的乐趣。你的乐趣可能会变化:-)

Jeffrey


This is the crux of the matter from where I''m sitting. If the purpose of
learning a programming language is fun, then the primary relevant question
is:

Is it more fun to code in Python or PHP?

The answer is a no-brainer for me. It seems to me that Python is designed
from the ground up with my enjoyment in mind. Your Fun May Vary :-)
Jeffrey


5月21日下午4:10,notbob< not ... @ nothome。 comwrote:
On May 21, 4:10 pm, notbob <not...@nothome.comwrote:

有时它看起来势不可挡,但我坚持不懈,因为它比电子游戏更有趣/更具挑战性

流泪。
Sometimes it seems overwhelming, but I
persevere because it''s more fun/challenging than video games, which bore me
to tears.



哈,恰恰相反。

Ha, exactly the opposite here.


嗯,这是我的实际问题,然后。 php真的很糟糕我只是

浪费我的时间吗?或者它真的是博客功能的最快方式吗?

我会在长期学习python中获得更好的服务,声称这是一个很容易学习/编程的
(对我来说仍然很难看)。我承认我不是代码

极客。但是,我也不是完全没脑子了,而且我需要一些东西来保证我的geezer脑子能够激发灵感。你说什么?
Well, that''s my actual question, then. Is php really so bad I''m just
wasting my time? Or is it really the quickest way to blog functionality?
Would I be better served in the long run learning python, which claims to be
easy as pie to learn/program (still looks hard to me). I admit I''m no code
geek. But, I''m not completely brain dead, either, and I need something to
keep my geezer brain sparking. What say ye?



如果你只是想写一个简单的博客,PHP可能已经足够好了。

无可否认地跳进网络更容易使用PHP进行编程 -

部分是因为它的广泛支持和直接使用
,部分原因是因为Python网络解决方案倾向于瞄准

内容和演示的可分离性提高了

条目的标准 - 这可能轻易超过您对语言质量的担忧。

(顺便说一句:如果你不想开始一场宗教战争,那么如果你把它分别发布给两个团队,它会更好。

很多火焰战开始于一个人发布减号而不打算

另一组的耳朵。)

Carl Banks

If you just want to write a simple blog, PHP is probably good enough.
It''s undeniably easier to jump into web programming with PHP--
partially because of it''s widespread support and straightforward
usage, partially because Python web solutions tend to aim for
separability of content and presenation which raises the bar for
entry--and that could easily outweigh your concerns over quality of
the language.

(Incidentally: if you didn''t want to start a religious war, it would
have been better if you had posted it separately to the two groups.
Lots of flamewars start by one person posting a cutdown not intended
for the ears of the other group.)
Carl Banks


2008-05-21,Michael Vilain< vi **** @ NOspamcop.netwrote:
On 2008-05-21, Michael Vilain <vi****@NOspamcop.netwrote:

您的网站。他们甚至可能有一个博客包,你可以管理

条目而无需任何编程。


你的最终目标是什么?如果你不能编程,你可能会更好地使用一个包装或工具来完成所有繁重的工作。


your site. They may even have a blogging package you can administer
entries without any programming.

What''s your end-goal here? If you can''t program, you may be better off
with a package or tool that does all the heavy lifting for you.



我说我不想这样做,但这并不完全正确。我想

我会在学习它的工作原理时使用其中一个CMS,就像linux一样。我不想知道为什么要做某事。 Windows和Dreamweaver都很好

的例子。不。我想深入了解。


nb

I said I didn''t want to do that, but that''s not entirely true. I figured
I''d use one of the CMSs while learning how it works, much like linux. I
hate doing something without knowing why. Windows and Dreamweaver are good
examples. Nope. I want to get under the hood.

nb


这篇关于php vs python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆