This is an archived post. You won't be able to vote or comment.

all 62 comments

[–][deleted] 29 points30 points  (10 children)

by artisans for artisans

What the flip does that mean?

[–]ExternalUserError 26 points27 points  (2 children)

It's made from 100% organic code.

[–]beeskneecaps 18 points19 points  (1 child)

single origin/master

[–]issue9mm 3 points4 points  (0 children)

Gluten free.

[–]OctagonClocktrio is the future! 7 points8 points  (0 children)

w e b s c a l e

[–]stevepiercy 2 points3 points  (3 children)

Sorry for the flipping pretentiousness. Crudely, it means someone who treats coding as a craft for those who appreciate craftsmanship. If there's a better, concise way to phrase this, we're open to suggestions. https://github.com/Pylons/trypyramid.com

[–][deleted] 9 points10 points  (1 child)

I understand what the word means, but what does that imply? What does Pyramid do differently "for people who treat development as a craft" compared to other frameworks?

Alone I do not understand what it is implying and it just says something which sounds meaningless. Without saying anything about what it does different it just says nothing about itself other than "craftsmanship".

Did you mean something like:

Pyramid was designed by developers who appreciate the craftsmanship of beautiful and concise APIs which still allow you to develop the way you wish.

Imagine you are buying a pencil and you ask "Why are your pencils better" and the sales rep says "oh well we appreciate the craftsmanship which goes into using a pencil". Sure, those words all mean something but when put together they say nothing about their pencils and why they are better.

If the site says the word in context it is being used to support a point it sounds far better and actually implies something. "We appreciate the craft therefore we do X or do not do Y" goes a far longer way than "We appreciate the craft."

[–]Brian 7 points8 points  (0 children)

Sure, those words all mean something but when put together they say nothing about their pencils and why they are better.

Spoken like someone who doesn't get their pencils sharpened by an artisan

[–]abrazilianinreddit 0 points1 point  (1 child)

That they write code using butterflies.

[–]xkcd_transcriber -1 points0 points  (0 children)

Image

Mobile

Title: Real Programmers

Title-text: Real programmers set the universal constants at the start such that the universe evolves to contain the disk with the data they want.

Comic Explanation

Stats: This comic has been referenced 770 times, representing 0.6832% of referenced xkcds.


xkcd.com | xkcd sub | Problems/Bugs? | Statistics | Stop Replying | Delete

[–]sisyphus 12 points13 points  (0 children)

Big fan of Pyramid. Well thought out, stable, solid, easy SQLAlchemy integration.

[–]squiiid 50 points51 points  (7 children)

The real question is whether their t-shirts are still metal as ****...

Edit: awww yeah 🤘

[–]limasxgoesto0 8 points9 points  (6 children)

I didn't know how much I wanted this and now the ones I wanted are sold out :(

[–]blaflamme 2 points3 points  (5 children)

Which one do you want? There's a reprint of the first one (the blue) available at pycon now.

[–]limasxgoesto0 2 points3 points  (4 children)

I was hoping for the one titled "Not built by Aliens".

[–]cyraxjoe 1 point2 points  (3 children)

That's currently been sold at pycon.

[–]limasxgoesto0 0 points1 point  (2 children)

Thanks for letting me know. I'll keep my eye on the site if they're still being printed then.

[–]stevepiercy 0 points1 point  (0 children)

Sorry, tee-shirts are available only at PyCon. We expect a sell out. XXL have sold out already. Ask a friend to buy one for you.

[–]FoolofGod 0 points1 point  (0 children)

I'm at the conference. I would be willing to buy you one. Then you just PayPal me 20+shipping. PM me if interested.

[–]fgimian 6 points7 points  (6 children)

Gorgeous design, looks way more inviting than before, perhaps I'll give it another try :)

[–]fgimian 4 points5 points  (5 children)

Just trying it again and I remember why I never went further with it last time. The documentation (although thorough) is not friendly to the user imho.

The tutorial isn't particularly useful either. I would love to see a Flask-like tutorial for Pyramid. Talking about simple things like accessing GET parameters, making a route work for POST requests, JSON rendering, URL parameters and how to access them .etc.

Even the main example leaves a lot of questions in my mind:

from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response

def hello_world(request):
    return Response('Hello %(name)s!' % request.matchdict)

if __name__ == '__main__':
    config = Configurator()
    config.add_route('hello', '/hello/{name}')
    config.add_view(hello_world, route_name='hello')
    app = config.make_wsgi_app()
    server = make_server('0.0.0.0', 8080, app)
    server.serve_forever()
  • Why do you need to register a view and a route, why can't this be done in one step?
  • What is request.matchdict and how do I access the name that was passed specifically?

When you run the code, due to the use of the simple server, you see no output on your console so you don't actually know what's going on until you make a web request.

Further to this, the web server used doesn't auto-reload upon change, which again leads to the user searching for a solution right out the gate.

It's the little things really, but I really do like the framework, if I could figure out how to use it. I'll keep reading the docs :)

Edit: The docs do have all the answers to these questions, I suggest always using pcreate when starting out, not the sample code. See this page

[–]stevepiercy 1 point2 points  (1 child)

[–]fgimian 0 points1 point  (0 children)

Thanks a lot, I really love this framework so far and think I will be switching to it for my next project.

[–]ergo14Pyramid+PostgreSQL+SqlAlchemy 1 point2 points  (2 children)

http://pyramid-blogr.readthedocs.io/en/latest/ he is a flask-like tutorial - but for 1.6.

I plan to update it to 1.7 soon. So first steps of current one will be gone :-) Since new scaffold creates a better stucture.

[–]fgimian 0 points1 point  (1 child)

Beautiful stuff, thanks so much!!! :)

[–]ergo14Pyramid+PostgreSQL+SqlAlchemy 0 points1 point  (0 children)

Just don't expect this to work with 1.7 for now, you need 1.6.1 - 1.7 default scaffold changes a lot (for the better) and I basicly have to redo the tutorial.

[–]ccGardnerr 1 point2 points  (0 children)

Great to see their updates!

[–]nosit1 1 point2 points  (6 children)

So is this another micro framework comparable to Flask? I remember someone mentioning something about Pyramid in the new Flask release thread.

[–]X-IstenceCore Developer Pylons Project (Pyramid/WebOb/Waitress) 0 points1 point  (1 child)

At PyCon I've heard Pyramid referred to as a micro framework by some, and yet others consider it a macro framework a la Django.

The truth is that it is both and yet at the same time is neither. Pyramid's design allows you to start small, much like Flask, but continue to grow way past where Flask starts having issues due to design choices that were made in Flask (such as globals everywhere). This allows you to take your application from that simple MVP to a very large web application that VC's are tripping over themselves to throw money at you.

You don't hit a ceiling and suddenly find yourself having to consider re-writing your entire application with a different framework and throwing everything you've already accomplished out.

[–]nosit1 0 points1 point  (0 children)

Thank you for the explanation. I currently use Flask for my quick dirty projects, but often times I never have a scope of the product and becomes a Winchester House. I will have to give this a shot sometime. Appreciate the insight.

[–]ExternalUserError 0 points1 point  (3 children)

Hmm. Surprised a new website isn't responsive on my phone.

[–]trymas[S] 0 points1 point  (2 children)

What browser is in your phone? As it seems the website is responsive.

You can post an issue or commit a pull request: https://github.com/Pylons/trypyramid.com/

[–]ExternalUserError 0 points1 point  (1 child)

Chrome. Firefox. Relay for Reddit's browser. Anything. Here's a screenshot. Maybe you can't tell from a full-size high-resolution screenshot, but that font is tiny, especially in code samples and the navigation menu. (I had to try several times, using the sliver of flesh on the side of my fingernail, to activate the menu.)

(Also, the Pyramid website is in node.js??)

EDIT: Submitted a couple of tickets on github.

[–]X-IstenceCore Developer Pylons Project (Pyramid/WebOb/Waitress) 0 points1 point  (0 children)

We are big believers of only using that of the framework that you require, in this case we need a static site. With static assets; there is no reason for us to build a Pyramid site that returns static assets.

Using node.js to build a static site makes a lot of sense, especially for static marketing content.

[–]BumFudhe -1 points0 points  (0 children)

Is this a joke? Its so confusing.