48 points · by ohyoutravel · 9y ago · 70 comments
[1]: https://w3techs.com/
Interestingly (for me), I've started going back to building more or less static sites for clients. I used Wordpress for a long time, but have increasingly found none of them want to blog, and few of them update either the site (or Wordpress, which can end up a security nightmare).
Often when it came to updating pages, they would call or email and say "can you do XXX", to which I'd reply "I can, but so can you". 90% of the time they're more than happy to pay me to update a page in Wordpress, which I could have done just as easily / quickly in a static site.
Long and short, the overhead of building a custom theme and setting up Wordpress isn't worth it for most clients, and even less me in a cost/time for the money way.
Only one user from the 10 ever used the CMS functionality to modify her site. She did it the one year, totally forgot her password and the following year asked me to make the changes. Maintenance of a CMS is even more of a struggle if that isn't your core job. If I worked on Drupal for my day job I wouldn't leaving the sites on Drupal.
I love static sites. They load incredibly fast, they're extremely cheap to run, the security hassles go way down and, as another commenter mentioned, they work for the long-term. And these days there are plenty of solutions for reader feedback that don't require you to run a Wordpress instance.
I use Swift Sever Side framework for backend and Sveltejs (https://Svelte.technology) for front-end JavaScript to handle just about anything that jQuery could and a lot easier to run same compiled modules code on Nodejs and web browsers with Rollup.
Less worry than running frameworks that will encounter bugs that may take time to resolve e.g. React, Angular 1/2 have enormous issues since 2014/2013, Swift and Sveltejs are a great combination. I roll, I roll, I roll out in 2017!
Pssst. DOM are fastest when you only need to update a small portion of your code and majority of use case with DOM manipulation is fine.
My gut feeling is that 57% is a huge number if you assume that they don't use a CMS. I don't think that's manageable by the average owner with static site generators. None of my clients would be able to update their site with GIT + text editors. It's more likely that there's some kind of backend system that the survey was unable to identify.
I love Hugo because it's a single binary, it's fast as hell when generating a static site, and it's easy to understand (and got great docs).
After I generate a static site, it's hosted on S3 (with a Cloudflare caching layer). The whole thing costs me pennies a month.
I think the difference between Processwire and Wordpress has been in the developer experience. The former (Processwire) is better organized, direct, and addresses the most common things you would want to do in the CMS. Wordpress docs just feel like an afterthought and more of an index of things.
yeah, i'm a big fan.
It's hacky, but the rest of my site uses AppEngine and I really don't feel like exposing a unsupported hack job of PHP to the open internet. Had a few issues that required modification to the themes, but that was the only issue ¯\_(ツ)_/¯
It's a total mess. Business logic and HTML snippets scattered everywhere. Layers of caching to make the whole thing load in less than 0.03 seconds on cheap shared hosting. I'm sure I do a much better job for paying clients, but somehow never get around to fixing the decade-old garbage that runs my own site.
At least it doesn't have any SQL injection vulnerabilities :p
I started out as a WordPress developer, so once I moved to more advanced programming I kept using WordPress, but it was so annoying to have to keep up with the updates that I decided to try Jekyll because of their static site nature.
Static sites are awesome because they're wicked fast, and they work in perpetuity. I'm a huge fan. If you can handle a little coding I think it's much preferable to a CMS.
It uses the Micropub protocol for posting/editing/deleting (I also made a frontend editor app for Micropub: https://github.com/myfreeweb/micro-panel), Webmention for talking to other websites, Git+JSON to store content.
I don't like the PHP/MySQL CMS world at all, but I use that at work. We use MODX Revolution (with some sites still on Evolution).
Second, have you looked at clckwrks[0]? It aims to specifically dethrone wordpress by making plugins that are provably safe. I think this is a viable way to attack wordpresses stronghold, though I think being able to do things like write plugins based in javascript or other popular languages when an existing provably safe plugin doesn't exist will also be necessary.
Last time I tried clckwrks it was a bit hard to get setup (this was pre-stack) so I don't blame you for rolling your own solution.
I do wonder what you think of clckwrks and the idea of exploiting Haskell to make provably safe plugins so you can create a large ecosystem without the security issues that wordpress plugins have.
Setup wasn't the problem, Cabal sandboxes weren't much harder to use than stack… The actual benefit of stack is sharing compiled packages across all sandboxes instead of rebuilding everything every time.
Plugins in Haskell, or any compiled language, are kinda awkward to work with honestly. If you have to recompile the app, it's not very pluginy :D What are the other options? Dynamically loading shared libraries or using standalone RPC processes, neither of which feels good for a web app.
Embedded interpreters like duktape are pretty safe already. In terms of security model (you only expose what you want, there's nothing like file I/O available by default). Of course there might be bugs in them, especially memory bugs since they're written in C, but I'm not very concerned about actively hostile plugins tbh.
I disagree. Stack saves tons of time by giving me package versions that just build together.
> Plugins in Haskell, or any compiled language, are kinda awkward to work with honestly. If you have to recompile the app, it's not very pluginy :D
Dyre?
If your site has a lot of content, you'll have to use a few tricks to retain fast builds [1].
We had to build a lightweight CMS[2] for regular folks to update content, and a pro hosting alternative to GitHub pages that supports multiple branches, authentication, redirections, proxying...
We're Open Sourcing the CMS part; shoot me an email if you use Jekyll and are interested in testing it out.
A friend had difficulties with Wordpress + Woocommerce I set for them and I figured everyone knows folders.
I'm tinkering with it from time to time. (As you might notice, I'm also learning web dev, CSS and stuff)..
Its basically a node/express app with a nice backend. I really enjoy it, incredibly flexible. I've even used it without a front end as internal CRM.
Both next to impossible with escaped markdown.
I guess markdown keeps the syntax clean for a WYSIWYG editor too, but the real benefit always was that you could write it in plain text with any editor you want.
But Grav had a docs theme like rtd. So far it's running without a hitch. I've moved it a few times because its flat file, would recommend it.
I could switch to something newer and better, but why bother?
Since it's not maintained, personally I'd be tempted to try transitioning to something that is (with minimal change to content and structure/configuration required) to save dealing with it when you're just trying to publish new content and suddenly run up against some bug.
And for any given static site generator, there's a pretty high risk it will be more or less unmaintained two years from now...
Interested if/how this could be exploited
And a couple of shell scripts and Scheme programs to convert source code to html.