News for hackers. Stuff that matters.
Re:Static web – back to the roots? by dmje on Saturday May 25, 2019 @02:49AM (#20007493)
It's an interesting piece, and lots of good reasons to "go static".

But. They're developer reasons.

What almost everyone who piles into this support of static stuff seems to completely ignore is the audience here.

Who do you think is editing your website? Amy the developer who has no problem committing stuff to Git or learning Markdown or Dave, who is a marketing manager and spends most of his life in Word writing press releases and social media posts?

The entire point of a WYSIWYG editor is that it doesn't require any developer experience.

If you genuinely think a corporate website can be run out of a Git workflow or a requirement to learn Markdown, you're basically in the wrong room. This is the whole "IT bottleneck" that content teams have been battling for years: it's back to the early 90's days of "yeh, we want to update our homepage but we need IT to do it for us".

Somewhere in the middle is the holy grail: performant sites that are also editor friendly.

Re:Static web – back to the roots? by eitland on Saturday May 25, 2019 @03:11AM (#20007558)
I keep coming back to this: we keep underestimating our coworkers, users, bosses etc.

Even as an engineer people keep on underestimating me (although sometimes they overestimate me : ). Here are some examples:

- telling accounting a number of times that they've forgotten a rather large PO.

- telling a network vendor they have a huge hole in their firewall only to be ignored until I contacted one of their huge customers which I also knew. They could have saved themselves a good deal of embarassing attention I guess.

- etc etc

Last year at JavaZone theee was an interesting talk by someone who was an early employee at a crowd funding company. He was a non-dev but talked about how he enjoyed being able to update copy in the web app (not just front page IIRC) directly after the devs had set up git, an editor and explained the basics.

If you are making the next google you'll want things to be extremely easy-to-use.

Making a google.com level UX for business apps might be smart. Or it might be insulting.

Re:Static web – back to the roots? by savolai on Saturday May 25, 2019 @03:35AM (#20007616)
I've tried Gatsby on a couple of occasions due to the page load speed promise. With netlify it seemed like using it almost made sense.

I do see the compromises wp puts us into but for me, the benefits of static seem awfully abstract at the end of the day. If you want me to buy it, please show me an authoring experience I actually want to live in. I haven't seen one yet.

It's not about over- our underestimating people. It's about whether the technocentricity you are selling is worth it. For some of us, it is, sure.

For one, I just hate writing with markdown. Compared to WYSIWYG (i.e. just writing), markdown's syntax is a distraction. Writing is both visual and storytelling to me, why should I exclude the visual to a separate stage of the process? Just doesn't make sense to me.

Re:Static web – back to the roots? by Beldin on Saturday May 25, 2019 @03:51AM (#20007656)
the benefits of static seem awfully abstract at the end of the day. If you want me to buy it, please show me an authoring experience I actually want to live in.

Authoring is about input to the system, static is about how the contents is given to the visitor. There is no technical reason a rich author experience cannot be coupled with a static approach to content delivery.

In fact, the article focuses mostly on page bloat, not so much server-side processing. The amount of bytes a Web page weighs in at should mostly depends on its contents, not on the author tools used to create its content.

Re:Static web – back to the roots? by savolai on Saturday May 25, 2019 @04:03AM (#20007688)
If these are separate to you:

How would you allow a user, while creating a blog post, to add commenting to the post in a way that enables progressive enhancement i.e. doesn't require javascript, with static site generators?

If you can't, what is your justification for the sacrifice in accessibility?

If you can fulfill this basic requirement, please show me the experience of using the system and show me how it is better than wp as a whole.

Re:Static web – back to the roots? by chriswarbo on Saturday May 25, 2019 @07:58AM (#20008512)
I'd probably put the comments and submission form in an iframe; possibly from a third-party.
Re:Static web – back to the roots? by savolai on Sunday May 26, 2019 @07:31AM (#20014367)
An iframe is a possibility; the fixed box size is an user experience tradeoff. I really believe in the vision of a read-write web, i.e. for me the default should be all involved parties being able to comment on any given content.

Of course this should be possible to turn off for certain content and moderated, but it still seems artificial to not have the discussion on the same page, compared to the original post. HN is beautiful, for instance. :)

Re:Static web – back to the roots? by eitland on Saturday May 25, 2019 @04:13AM (#20007715)
> It's not about over- our underestimating people. It's about whether the technocentricity you are selling is worth it. For some of us, it is, sure.

Have my upvote.

You can pay a teenager to set up WP or netlify or more. What people pay me and possibly most HNers for is knowing what and when etc.

In a small team or just for an individual this might boil all the way down to personal preference.

Re:Static web – back to the roots? by savolai on Saturday May 25, 2019 @06:04AM (#20008089)
Please elaborate? Not sure what you're referring to. In any of your paragraphs, in fact.

Isn't the ascetic authoring experience provided my markdown just as much a result of deciding on which set of personal values are and are not important for your users?

Re:Static web – back to the roots? by alexchamberlain on Saturday May 25, 2019 @03:43AM (#20007637)
Although I tend to agree with you, some business apps benefit significantly from a "dumbed down" interface, as it's easier to provide business rules and validation layers when input is more constrained. I've worked on systems that take an Excel spreadsheet as input and providing decent error messages for every edge case is nigh on impossible.
Re:Static web – back to the roots? by jcelerier on Saturday May 25, 2019 @08:49AM (#20008719)
> I keep coming back to this: we keep underestimating our coworkers, users, bosses etc.

guess it depends who you work with. Had a recent experience where I spent half an hour for an user who has trouble with basic filesystem navigation - even though he's been using computers since close to three decades.

Re:Static web – back to the roots? by huy-nguyen on Saturday May 25, 2019 @07:30AM (#20008390)
You can have a static site and WYSIWYG editor. For example, you can use GatsbyJS (https://www.gatsbyjs.org/) as the static site generator and Contentful CMS (https://www.contentful.com/) as the editor.
Re:Static web – back to the roots? by notjustanymike on Saturday May 25, 2019 @03:35PM (#20010838)
I did exactly this for my last company and it worked great. Might need to use netflify cms moving forward because contentful is NOT cheap.
Re:Static web – back to the roots? by adrianN on Saturday May 25, 2019 @02:51AM (#20007501)
I don't think that a static website necessarily requires a developer workflow that a marketing manager can't use. You just need a tool that turns things into static HTML once.
Re:Static web – back to the roots? by dmje on Saturday May 25, 2019 @03:24AM (#20007586)
Completely agree - with this and previous couple of comments. The frustration for me is not that it can / can’t be done, it’s the fact that developers and content people are still (I’m 20+ years in the web industry and this was a problem in 1995 too..) not properly understanding each others’ skills and needs.

The more generic point here is that developers build better tools when they properly understand their audiences. In this case, the audience is almost always “a non technically skilled editor”.

IMO most young technical startups would do well to remember this too.

Re:Static web – back to the roots? by lwhsiao on Saturday May 25, 2019 @03:15AM (#20007566)
I'd also note that there are CMSs for static sites like forestry.io or Netlify CMS which gives more of a WYSIWYG for non-technical contributors.
Re:Static web – back to the roots? by sgallant on Saturday May 25, 2019 @09:40AM (#20008984)
Co-founder of https://forestry.io here. The author describes how writers can use branch logic (i.e. merging as an editorial tool). We're currently building multi-branch support into our CMS for just this. If you want early access, reach out to scott[at]forestry.io
Re:Static web – back to the roots? by kabacha on Saturday May 25, 2019 @03:56AM (#20007662)
Lektor[1] static website generator (Python) supports WYSIWYG

1 - https://github.com/lektor/lektor

Re:Static web – back to the roots? by icebraining on Saturday May 25, 2019 @04:49AM (#20007811)
Also Movable Type, which has been around since 2001.
Re:Static web – back to the roots? by neya on Saturday May 25, 2019 @05:54AM (#20008060)
> What almost everyone who piles into this support of static stuff seems to completely ignore is the audience here.

Checkout Jekyll admin, it provides a simpler interface than Wordpress, but with WYSIWYG editing capabilities for a static site. It is very powerful and can be designed to scale large-sized projects.

Re:Static web – back to the roots? by edwinyzh on Saturday May 25, 2019 @01:11PM (#20010086)
What do you think a product which basically turns Microsoft Word into something like WordPress?

Basically it's a file manager for .docx files, but more importantly, it can generate static site* out of your Word documents, and style them nicely with bootstrap.

Yes, that's something I'm working on and I'm close to the end of a beta release! https://docxmanager.com/

Re:Static web – back to the roots? by TomNomNom on Saturday May 25, 2019 @01:36PM (#20010214)
That actually sounds like slightly cut-back version of Microsoft FrontPage. Best of luck!
Re:Static web – back to the roots? by edwinyzh on Saturday May 25, 2019 @11:52PM (#20012993)
I see DocxManager more as a static site generator with GUI and visual editor :)
Re:Static web – back to the roots? by Animats on Saturday May 25, 2019 @02:17PM (#20010400)
Somewhere in the middle is the holy grail: performant sites that are also editor friendly.

Remember Dreamweaver? Made great static sites. Good WYSIWYG editor. Nothing but static pages on the server. "Round trip HTML" - it took in HTML, edited it, and put it back out. If you created the HTML with Dreamweaver, it could put in some comments which told Dreamweaver not to change certain parts. This let you have page templates.

We can't have that any more. CSS is too much of a mess. The era of CSS flush/clear/div layout broke WYSIWYG editors, and the web took a big step backwards. We went through the "tables are bad" era, and eventually got them back as "layout tables". It might be worth defining a modern subset of HTML/CSS and having a Dreamweaver-like editor for it.

Markdown? Markdown is comparable to HTML 1.0. Or BBcode. It's gaining features and complexity as people demand more HTML features in Markdown.

Re:Static web – back to the roots? by z3t4 on Saturday May 25, 2019 @02:49PM (#20010559)
I think everyone should learn some basic HTML. You still need a professional for design and templates though. If you already have an example page of what you are going to publish, its not hard to figure out the semantic elements. I think CSS helps as you only have to figure out what elements h1 p img, etc to use and the CSS will take care of the layout. My experience with visual editors CMS/ builders is that they are more complex and harder to learn then semantic HTML. As a web programmer that can also make some design, I hand code CSS gradients etc and use SVG for when CSS becomes too hacky, Im a bit slower then the Photoshop wizards, but then its already converted to web format, and as everything is hand coded its small too. Its always frustrating when another designer edits my SVGs in Photoshop blowing them up 100x in unreadable blob riddled. Just as when back in the days some other designer would edit the page in Dreamweawer.
Re:Static web – back to the roots? by Animats on Saturday May 25, 2019 @03:58PM (#20010998)
I think CSS helps as you only have to figure out what elements h1 p img, etc to use and the CSS will take care of the layout.

That's the party line. Now do a View Source on some web pages.

Re:Static web – back to the roots? by z3t4 on Sunday May 26, 2019 @07:18AM (#20014326)
Yeh, asuming we are still talking about hand written html and css, and not about auto generated and minified source. Complex layout tend to turn into a div nest. But most web pages can do fine or even better without the complexity - and get responsiveness and mobile support for free.
Re:Static web – back to the roots? by perilunar on Sunday May 26, 2019 @12:52AM (#20013230)
I work for a large organisation and a small part of our website is still maintained by a couple of non-technical editors using an old copy of Dreamweaver. Works great, though the sysops complain about keeping FTP going. Eventually they'll be moved onto our more modern but complicated CMS.
Re:Static web – back to the roots? by ko3us on Saturday May 25, 2019 @04:57AM (#20007840)
I agree. From my perspective, I try to make the most secure website but have to know that the end user will be our marketing team. I've tried both static only and WordPress. Both are good for each side. BUT what I've found to be the best compromise is Webflow. Honestly; it's such a great tool. It produces website in as pure HTML as possible (you can export the Webflow site as pure HTML/CSS/JS. Or have Webflow host it on their S3 and Cloudfront setup with AWS. The best part is that the CMS editor is really good and easy for the non techy. The designer tool is great for non tech too. It's simple. But at the same time has the functionality to be flexible for tech developers. Now it's not perfect. But I think it is the actual real balance between both.
Re:Static web – back to the roots? by hliyan on Saturday May 25, 2019 @03:57AM (#20007666)
One might say that whether the website is served statically or dynamically, is orthogonal to the content editor's user experience. You can have a WYSIWG editor and still serve generated content statically.

Unless there is a compelling reason, don't do at runtime what you can do at build time.

Re:Static web – back to the roots? by skybrian on Saturday May 25, 2019 @02:40PM (#20010517)
Haven't used it, but Forestry.io seems to be about helping end users with a good UI on top of git commits.
Re:Static web – back to the roots? by onion2k on Saturday May 25, 2019 @03:03AM (#20007533)
Gatsby can pull content from WordPress[1], so nothing changes for your content workflow but you get all the speed and security benefits of a static site. It's a pretty common workflow these days.

[1] or dozens of other sources.