English 中文(简体)
PHP平均开发商,希望迁到Sald+Django:直接上扬戈,或者在PHP中学习MVC框架。 [闭门]
原标题:Average PHP developer wanting to move to Python+Django : Directly go with Django or learn the MVC Framework stuff in PHP first? [closed]

As a student in web development, I work with PHP, mainly through CMSs.

我已经知道有关著名的多国公司设计模式的基本知识,但现在希望有一个框架。

我刚刚发现RoR和Django(分别为Ruby &Adhurgs)和我与这些框架进行的第一次试验,加上他们语言的令人惊讶的辛迪,我完全把我带走。

我已经作出选择:詹戈。 (我想解释一下:在我的整个研究中,我学会,Django的哲学是:“......最好只有一个——最好只有一个——可以做,而RoR的座右铭恰恰相反。) 作为一个灯塔,我认为,最好制定一个能够让我了解最佳做法的图象。 我还要补充指出,Django与Rubyd的“魔法”相比,似乎更加透明和更容易理解。

问题是,学习语言和框架可能是一项艰巨的任务。

My objectives are: - Mastering Python + Django. - Learn the right way to develop MVC applications. - Become productive as fast as possible.

And considering that Django and Cake PHP are quite "similar", should I first learn "MVC in the real world" with Cake PHP before trying to begin directly with Python + Django or not? What would you do, according to your experience?

Pros for learning Cake Php first: Some of my friends already work with Cake and they could help. Learning something new is always a nice line to add on the CV.

Cons: Learning something new is always a bit stupid when you are 95% convinced you won t use it anymore in the future.

最佳回答

通往Salph/Django的最短路是学习Salph/Django。

如果你们花时间学习一些不同的东西,那只会制造一些可能不会在Adhur/Django环境中持有的成见。

问题回答

确实,这里有一些可能随行帮助的动因:

  1. Don t categorize everything that has routes, controllers, views, etc as "MVC". Django, for example, is self-described as MTV.
  2. Django is a fantastic framework and does lots of things well. You will find that the Django and Python library and community is much more "batteries included" than PHP s.
  3. Pigeonholing yourself into one language or framework is almost always a bad idea. You don t have to leave PHP, Ruby, etc forever in order to learn Django and Python. Accumulate and assimilate and you ll be more valuable.
  4. Just go read the Django documentation end to end and follow the tutorial. It ll take a few days of your time, but you ll save yourself weeks of writing code that someone else has already baked into the framework or Python.




相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签