Why You Should Write Your Own Static Site Generator
11–20 of 136 posts
Re: Why You Should Write Your Own Static Site Generator
#12For Swift there’s https://github.com/JohnSundell/Publish which is a framework to create a static site generator. It’s really good.
Re: Why You Should Write Your Own Static Site Generator
#13I've never understood the point of these things. Just use a solid CMS and cache to s3 or Varnish. What's the big deal?
Re: Why You Should Write Your Own Static Site Generator
#14I've never understood the point of these things. Just use a solid CMS and cache to s3 or Varnish. What's the big deal?
I don't need to set up S3, Varnish, a server, a database, making sure my server + cms is up to date. It costs me $0, it's on a cdn and it's lightning fast + no headache. What's not to like?
Re: Why You Should Write Your Own Static Site Generator
#15I wrote a static site generator once. I used a Makefile and m4 macros!
Yes, it's true: nobody could stop me. It's much more debatable whether the "you should" part applies. I was just trying to get some common header and footer HTML into all pages of a site and do it with tools that were already installed on the hosting provider's machine.
It worked. For some reason, the person who took over the site after me did not follow in my footsteps and keep using m4.
Re: Why You Should Write Your Own Static Site Generator
#16A fun experiment I’m sure but it’s not a very convincing argument for writing your own generator. In the same way the author claims frameworks will change, so will the tools that power their custom solution and using a framework will take a fraction of the time to get going.
This isn't really all that true and is highly dependent on the stack you want. You can run Java from 1.1 on modern JREs. PHP from the early 2000s can still work. It all depends on what your stack looks like. If you're using the highly unstable "everything moves fast and constantly breaks" newer stuff, then sure. It's hard to see Python 3 breaking within the next 5-10 years, after how well the 2->3 changes were receiv…
Re: Why You Should Write Your Own Static Site Generator
#17I've never understood the point of these things. Just use a solid CMS and cache to s3 or Varnish. What's the big deal?
Even though you can make a CMS fast, with a static site you can forget about performance altogether.
Finally, it meshes very nicely with editing files in eg markdown locally, which for some people (like me who live in Neovim) is a much nicer experience than editing things in a webpage.
Re: Why You Should Write Your Own Static Site Generator
#18I've never understood the point of these things. Just use a solid CMS and cache to s3 or Varnish. What's the big deal?
Aside from that, a CMS is overkill for something like a simple blog. I might consider one for a more complex site but for a blog there’s no need.
Re: Why You Should Write Your Own Static Site Generator
#19It's a procrastination time hole that mostly just distracts us from the harder, less concrete, less fun thing we supposedly set out to do in the first place. It keeps us from shipping real shit.
e.g. Quit dicking around with your SSG and write the damn blog post already. The hard part of writing something worth reading is not your tech stack.
Re: Why You Should Write Your Own Static Site Generator
#20Instead I always encourage people who are trying to start blogging to do the writing first. Figure out a workflow that works for you - what time of day you prefer writing, what editor, do diagrams naturally come up in your thought stream, etc. It's way easier to get this workflow dialed in when you're doing things locally since the switching cost between solutions is that much lower.
Only when you know that you A) enjoy writing and B) have something worth sharing should you invest the time in translating your workflow to something that can deployed. That might mean writing your own SSG - that might mean just spinning up a wordpress blog.