6 ms·
I'm not being facetious, but this "yet another static site generator" joins the list with 230+ other generators. (see http://staticsitegenerators.net/ http://s
by kurrent 13y ago
I'm not being facetious, but this "yet another static site generator" joins the list with 230+ other generators.
(see http://staticsitegenerators.net/ http://staticsitegenerators.net/)
Why do we need another one?
- jedberg 13y agoStatic site generators are the new Fibonacci generator. When you learn a language it's a fun little exercise, and possibly even useful. Also, everyone has slightly different requirements, so everyone likes to build their own. I will most likely soon build my own static site generator, because none of the ones out there do exactly what I want. I will most likely borrow from at least a few of the examples out there and then post it on my github so there is yet another one. I think we're seeing a proliferation simply because it is so easy to share code these days. Imagine how many Fibonacci generators would have been out there if it were as easy to share code when those were popular (I want to say 10 years ago but maybe it was longer).
- sillysaurus3 13y agodef fib(n): x = ((1 + sqrt(5)) / 2) ** n x -= ((1 - sqrt(5)) / 2) ** n return x / sqrt(5)
- mjcohen 13y agoTry n=1000 or n=10000.
- sillysaurus3 13y agofrom math import sqrt from decimal import Decimal def fib(n): x = Decimal((1 + sqrt(5)) / 2) ** n x -= Decimal((1 - sqrt(5)) / 2) ** n return x / Decimal(sqrt(5)) print fib(1000) print fib(10000) print fib(1290309123) $ time python ~/fib.py 4.346655768693891359691727380E+208 3.364476487644307695949089018E+2089 2.879417086171668653426018537E+269658658 real 0m0.138s user 0m0.086s sys 0m0.026s
- irahul 13y ago> I will most likely soon build my own static site generator, because none of the ones out there do exactly what I want. Why bother with the templating? Use Jinja2?
- ianstormtaylor 13y agoHad the same problem ourselves while building Segment.io that every static site generator was a bit too opinionated in weird ways, so we made Metalsmith[0]. Check it out, and you might not need to make your own anymore :) [0]: http://www.metalsmith.io/ http://www.metalsmith.io/
- xixixao 13y agoIan how does it compare to gulp? Build tools with name-plugin-name are another proliferating area :).
- bmj 13y agoI've been looking at some of the options on that website, and this one seems to be less complex than many of the tools there. This isn't meant to be a blogging tool, but rather a simple way of emulating server-side includes or basic PHP includes in static HTML. I'm sure a few of those exist in that list, but when has "somebody built that already" become a gate for writing code?
- workhere-io 13y agoWhy do we need another one? Because this one is much simpler to use than Jekyll and doesn't require you to install Ruby.