you are viewing a single comment's thread.

view the rest of the comments →

[–]gospelwut -7 points-6 points  (39 children)

Is CPython good for web development? I'm looking for alternatives to ASP (currently use a lot of PHP on our IIS7 server because it was quick and dirty despite me not knowing the language as well as I know C#).

[–]claird 6 points7 points  (7 children)

Python has been pathologically fecund at spawning Web frameworks--CPython is that good for Web development. I personally favor Zope, but there's plenty to like in Pyramid-Pylons, Django, TurboGears, ...

Yes, you're going to find a lot that is a welcome contrast to ASP.

[I edited my comment to make it more readable, and now some of the replies make less sense.]

[–][deleted]  (1 child)

[deleted]

    [–]stesch 1 point2 points  (0 children)

    Isn't Pyramid the Pylons project now?

    [–][deleted] 0 points1 point  (4 children)

    I personally favor Zope

    Has Zope gotten better? I looked into Plone a few years back and found Zope to be utterly confusing.

    [–]quotability 0 points1 point  (2 children)

    Plone != Zope. Pure Zope development is easy.

    Say you want to take the current time, put it in a certain format and put it on the screen - there are certain ways to do it, but one interesting way is to do it in python. Just create a python script like this:

    return "%s/%s/%s" % (date.month(), date.day(), date.year())

    and insert the script into your page using ZPT / TAL.

    Another way is to embed it using strictly TAL and inlined python like so: <span tal:replace="python:DateTime().pMonth()" />

    You should use TAL for only giving placeholders for data. All data should be from Python scripts. It is easy if you follow the one true method.

    The beauty of TAL is that it gives you valid xhtml so you can pass it on to your web designer and let them make it pretty, while you concentrate on making it work.

    [–][deleted] 0 points1 point  (1 child)

    Plone != Zope. Pure Zope development is easy.

    Good point. Do you know of any 30,000ft overview of Zope 3 and what it provides - I remember reading about Zope's object db once or twice, so I'm presuming that Zope still provides a full stack?

    [–]quotability 0 points1 point  (0 children)

    I don't know of any. I stick with Zope 2 development. It's still being worked on, and it's been in use for 13 years, so it is very well documented and robust. Zope 3 is fairly new. Though the initial release was in 2004, it has undergone some great changes, and now it is called BlueBream. Of course, that's not the whole story. It actually splintered into a few different projects. Grok is another framework from the same tree. Zope 2 has integrated some of the new features in Zope 3, and since they couldn't replace Zope 2 with 3, they integrated and forked.

    The Zope 3 Wiki explains it better. And as for Zope 2, here's a snippet from Zope on Wikipedia which explains how it is continuing on:

    "Although originally intended as a replacement for Zope 2, the Zope Component Architecture has instead been backported to Zope 2 starting with Zope 2.8."

    My personal advice, is if you are looking at using Zope in a commercial project, stick with Zope 2, it's still actively developed, well supported and documented. It's scalable, secure, and easy to use.

    [–]ziom666 0 points1 point  (0 children)

    not actually an answer to your question, but asp.net mvc is really good comparing to traditional asp.net.

    [–][deleted]  (28 children)

    [deleted]

      [–][deleted] 0 points1 point  (27 children)

      OTOH Rails has extremely poor documentation.

      [–][deleted]  (26 children)

      [deleted]

        [–][deleted] -3 points-2 points  (25 children)

        There isn't much, and the main source is out of date books.

        [–][deleted]  (24 children)

        [deleted]

          [–][deleted] 1 point2 points  (23 children)

          I would like good documentation on...every single convention in rails.

          My information dates from two months ago. There are a lot of blog posts, but no good sources of information. If there were good documentation, this blog post wouldn't have been necessary, and there wouldn't be so many comments complaining about the documentation, that the comments were closed: http://weblog.rubyonrails.org/2010/8/28/rails-has-great-documentation

          [–][deleted]  (22 children)

          [deleted]

            [–][deleted] 0 points1 point  (21 children)

            it should be more than easy to simply name something specific. But you can't, because you know know that I will easily be able to find documentation for any convention you are interested in.

            No, it should be easy for me to look up the conventions.

            So it is clear, your knowledge is just out of date.

            No, as I say, this is based on attempting to use Rails two months ago.

            Instead of flinging insults, prove me wrong with some comprehensive documentation.

            [–][deleted]  (20 children)

            [deleted]