News for hackers. Stuff that matters.
Re:Git 1.7.7 changes affecting the everyday developer by herge on Friday October 14, 2011 @02:52PM (#3112415)
On that subject, anyone know of good blogging software written in python?
Re:Git 1.7.7 changes affecting the everyday developer by jherdman on Friday October 14, 2011 @03:07PM (#3112491)
Though not written in Python, I'm a fan of Jekyll (https://github.com/mojombo/jekyll). You write your entries in Markdown, it converts them to HTML, sets up links and embedded content, and then publishes them to your server via Git to be served up by Apache, Nginx, etc.
Re:Git 1.7.7 changes affecting the everyday developer by Thrymr on Friday October 14, 2011 @03:13PM (#3112517)
The Python equivalent is, of course, Hyde (http://hyde.github.com).
Re:Git 1.7.7 changes affecting the everyday developer by alanh on Friday October 14, 2011 @07:23PM (#3113374)
When I last used Hyde, a few months ago, I liked it. But beware there are (were?) two very different versions of it, and the documentation is (was?) pretty weak.

It uses Jinja2. This is awesome but you will be confused if you don’t read the Jinja2 designers' guide.

Re:Git 1.7.7 changes affecting the everyday developer by superrad on Saturday October 15, 2011 @10:44AM (#3114888)
Re:Git 1.7.7 changes affecting the everyday developer by pavel_lishin on Friday October 14, 2011 @11:22PM (#3113875)
I find it ominous that the images and links on that page are broken.
Re:Git 1.7.7 changes affecting the everyday developer by yehyehyeh01 on Friday October 14, 2011 @04:33PM (#3112812)
thanks for making my day
Re:Git 1.7.7 changes affecting the everyday developer by Pewpewarrows on Friday October 14, 2011 @02:58PM (#3112445)
If your site is only a blog, then you really should only be using Jekyll or Hyde to generate it. Having a backend is pretty overkill.
Re:Git 1.7.7 changes affecting the everyday developer by adambyrtek on Friday October 14, 2011 @03:50PM (#3112672)
I really like the simplicity of this approach. It reminds me of late 90s, when I used Makefiles to compile complex web pages from a set of templates.

But it seems like static site generators became a fad recently, like Rails a few years ago, and this makes me slightly skeptical. It's always suspicious when somebody claims there is only one right way to do something. When it comes to me, feel free to have a backend for your blog. This certainly has some advantages, just don't forget about performance.

Or just use a hosted service. TMTOWTDI.

Re:Git 1.7.7 changes affecting the everyday developer by udp on Friday October 14, 2011 @06:43PM (#3113236)
I don't know if it's just a fad - what more is a blog backend with a cache plugin doing than generating static HTML?

It's more like the universally accepted "right way of doing things" being taken a step further. Why should the system that generates the HTML be the same one that serves it?

Re:Git 1.7.7 changes affecting the everyday developer by mkramlich on Friday October 14, 2011 @08:50PM (#3113602)
> But it seems like static site generators became a fad recently,

The year 1994 called and would like to talk to you about your backward flowing sense of time and fads. :)

In all seriousness... when the Web was born (on Tim Berner-Lee's computer) it was pretty much just static HTML reached by HTTP. Then folks added static file generation, optionally, behind the scenes. Then techniques like CGI to make it dynamic each request, typically from a C program or Perl script. Anyway... Turns out, not all old ways are bad. For certain use cases, just plain HTML-over-HTTP, totally static, works fine. And hard to beat it's performance and resource usage.

Re:Git 1.7.7 changes affecting the everyday developer by adambyrtek on Saturday October 15, 2011 @03:55AM (#3114377)
Fashion often returns, and this doesn't apply only to apparel. Thanks for a history lesson, but I never claimed this is a wrong approach, just not the only reasonable one.
Re:Git 1.7.7 changes affecting the everyday developer by LeafStorm on Friday October 14, 2011 @03:05PM (#3112483)
There used to be Zine (http://zine.pocoo.org/) - it was basically WordPress in Python, but it never picked up sufficient community and now it's dead. Now, if you want a server-side blog in Python, the standard solution is to write one yourself in Django.
Re:Git 1.7.7 changes affecting the everyday developer by mrj on Friday October 14, 2011 @05:27PM (#3113025)
Re:Git 1.7.7 changes affecting the everyday developer by may on Friday October 14, 2011 @03:32PM (#3112607)
Re:Git 1.7.7 changes affecting the everyday developer by itsnotvalid on Friday October 14, 2011 @02:56PM (#3112432)
You may get away with having some forms of caching. Using python won't help given you have no caching.
Re:Git 1.7.7 changes affecting the everyday developer by Pewpewarrows on Friday October 14, 2011 @03:04PM (#3112478)
I haven't seen any blogging platforms written in Python that requires hundreds of queries to render a homepage like Wordpress does in PHP. If your site is running on a single modest server, needs 190 queries to render a page, has zero caching, and gets a spike in traffic then it will go down like a sack of bricks. That same scenario with <10 queries is a completely different story.
Re:Git 1.7.7 changes affecting the everyday developer by itsnotvalid on Friday October 14, 2011 @03:18PM (#3112541)
I guess, I am just not using enough of wordpress.
Re:Git 1.7.7 changes affecting the everyday developer by indygreg2 on Friday October 14, 2011 @05:03PM (#3112945)
Blogofile works for me. http://blogofile.com/
Re:Git 1.7.7 changes affecting the everyday developer by jholman on Friday October 14, 2011 @07:23PM (#3113372)
Yes to Blogofile. Because your operating system already has a caching technique: the filesystem.

(obviously not applicable to user-customizable content)

Edit: uh oh, after reading other comments more carefully, now I'm going to have to evaluate Hyde as an alternative (in the 'python static-generation' space). too many apparently-viable alternatives! option paralysis may set in!

Re:Git 1.7.7 changes affecting the everyday developer by scorpion032 on Friday October 14, 2011 @03:09PM (#3112497)
Re:Git 1.7.7 changes affecting the everyday developer by bobbyi on Friday October 14, 2011 @06:40PM (#3113234)