4 ms·
New Python Idioms
- jeffmiller 16y agoArmin Ronacher is a stone cold badass. He created Flask: http://flask.pocoo.org/ http://flask.pocoo.org/
- drats 16y agoIndeed he is an ultimate badass. Flask is really great. But, especially given how beautiful the Flask docs are, I don't know what makes people think Scribd is a good idea when there are shared google docs, everyone has libre office or ms office or you can print to PDF. The last slide says he will put the slides on his personal site which has been down for a while so I guess that might be a reason.
- usrusrusr 16y ago> Flask is really great. But, especially given how beautiful the Flask docs are, ... Which are generated with sphinx, which is a doc tool he created ... I am smelling a bit of Knuth here. (No good typesetting, so lets create Tex.) :)
- jeffmiller 16y agoYup. He's also creating a replacement for the Python logging module.
- irahul 16y agoA bit of Knuth, maybe. But this isn't unique to Knuth - many people have created tools when they weren't satisfied with the existing tools. All frameworks would fall under "no good x, let's create x". He is a good programmer for sure, but comparisons with Knuth are a bit far fetched:).
- twp 16y agoIn the section on the with statement he says > Please don't abuse with for XML/HTML generation Being guilty of such abuse, I would like to know why not? (I genuinely want to know!)
- ljlolel 16y agoThere is no reason because it's not true. I've used the with statement to help with auto-closing tags (and just readability) in templating and it helps a lot. I've used in on sites which received over 1 million hits a month. It's been used on over a dozen sites and projects from hundreds of lines of codes and even into the tens of thousands of lines of code. http://news.ycombinator.com/item?id=1605249 http://news.ycombinator.com/item?id=1605249
- drallison 16y agoThis is an example of why you should never use "new" in a title. This slide set is about Python 2.3's new features which are, at this point in time, old news. But the examples are still informative.