开发者

Python Pyramid Learning Resource [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

Improve this question 开发者_如何转开发

I have trid learning the framework with the help of the book, The Pyramid Web Application Development Framework. I have somewhat managed to understand up-to URL Dispatch. But I still find it difficult to grab some concepts.

Can you lead me to some easy-for-newbie tutorials? Do I need previous experience of other web frameworks?


I've been doing web dev for > 15 years, and > 10 with Python, and I found some of the concepts in Pyramid hard to understand, too.

I'd suggest just pushing through; copy-n-paste if you have to, and keep on working. I'm noticing that concepts are 'gelling' for me after the fact, and what I used to find confusing I now take for granted. Perhaps the ideas merely need to soak in?

The organization of the code, and its founding philosophies are somewhat more abstract and perhaps therefore more difficult than I am used to from other frameworks, but I am really enjoying the flexibility. In particular, there seems to always be like 5 ways to do something, all of equal merit, when in Python we are used to having some ways more "blessed" than others.

It just a lot to wrap your head around. So, I suppose my short-term suggestion is not to try. Just build some things, ask questions when you get stuck, and be comfortable with the discomfort of not knowing how every little bit of Pyramid works...

I would also recommend that you resist the urge to take its flexibility as an opportunity to force it to behave more like some other system(s) that you may be familiar with... don't build a translation layer on top. Then you'll be fighting the code rather than getting your work done, and you'll end up deeper into the guts than you might want to be at this point.

I hope this helps.


As far as I know, there are no other Pyramid books on the market. You might want to skim the "cookbook" at http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/ though. And as kracekumar said, joining the #pyramid IRC channel on freenode.net is a good idea.


You should try #pyramid, they are set of nice people, they helped me out, when I was struggling.


Try: Pyramid Single File Tasks Tutorial

I encountered the same scenario, I was able to finish reading the URL Dispatch section but wasn't really able to understand a thing. Usually, when we become stuck on situations like this, we easily give up and immediately try another one (framework). But because I'm a Pyramid zealot (or I should say fan eversince) I resisted the switch.

So I went back to the Pyramid homepage and thought of looking on cookbooks. Then I saw this Pyramid Single File Tasks Tutorial. To my surprise, I've managed to understand some concepts quickly by simply following the steps and looking at the codes.

If you're still into Pyramid, I would suggest skipping the URL Dispatch section for now and experiment with this tutorial first until you become comfortable with it, then continue with the docs later on.

Happy programming ^^,


I would suggest using Google, and the Pylons mailing list.

I tried to learn TurboGears, another Python web framework, and was told to buy the book. I bought the book, then they changed the API significantly so that my purchase was pointless. They're still changing it today.

Pyramid is not Turbogears - but it's based on the wisdom of other frameworks, each of which had their own methods, many of which have now changed to become Pyramid. And they may change again.

So, as much as I would like to recommend that you support book authors in their glorious quest to bring you commercial-quality documentation, software libraries and frameworks (and the projects that use them) evolve so quickly that I think the internet will remain the best way to learn about them, at least until they are very mature.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜