News for hackers. Stuff that matters.
Re:Anti Patterns Catalog by paulddraper on Friday December 30, 2016 @06:02PM (#13288288)
Anti-pattern: GasolinePoweredFlySwatter

Reaching for heavy and complex tools when a straightforward solution would have sufficed.

Example: Requiring JavaScript for a simple static site. Making a wiki as an SPA.

Re:Anti Patterns Catalog by lacampbell on Friday December 30, 2016 @07:03PM (#13288571)
Wow I've just noticed what they've done to C2 Wikis. An amazing site and resource, and they had go to and JS framework it. It was looking a bit long in the tooth, sure, but couldn't they just have added a few lines of CSS?
Re:Anti Patterns Catalog by Odin78 on Saturday December 31, 2016 @03:27AM (#13290135)
The worst part is: it doesn't even look good/modern now. They should have gone with this:

http://bettermotherfuckingwebsite.com/

(excuse the profanity)

Re:Anti Patterns Catalog by jmiserez on Saturday December 31, 2016 @07:11AM (#13290716)
The original is much nicer, same URL without the "better".
Re:Anti Patterns Catalog by jmiserez on Saturday December 31, 2016 @11:24AM (#13291623)
Downvotes? The look of the original website (the URL without the "better" [1]) much closer resembles the original c2 wiki style. The CSS is not even needed in this case.

[1] http://motherfuckingwebsite.com

Re:Anti Patterns Catalog by pitaj on Saturday December 31, 2016 @09:13PM (#13294349)
Not IMO. Better is better.
Re:Anti Patterns Catalog by joncp on Friday December 30, 2016 @06:35PM (#13288454)
Came here to say this. Does anyone know whether there's an effort to port this to a sane wiki system?
Re:Anti Patterns Catalog by webmaven on Friday December 30, 2016 @07:19PM (#13288643)
Part of Ward Cunningham's roadmap is to make mirroring (even to other wiki implementations) much easier.

That said, given that he's the original inventor of the wiki, I'd say he's earned a bit of patience on our part. Let's wait and see where he's going with these ideas (some of which are: federation, bi-directional linking between wikis, forking & merging, transclusion, etc.), a bit longer before contemplating setting up a "classic" wiki with this content.

Re:Anti Patterns Catalog by mmwtsn on Friday December 30, 2016 @06:53PM (#13288527)
It sounds like the wiki was rewritten recently as a single page app which is what is causing the slowdown.

See https://github.com/WardCunningham/remodeling#remodeling which is linked from the footer of the wiki.

Re:Anti Patterns Catalog by imode on Saturday December 31, 2016 @04:34AM (#13290334)
http://imode.gitlab.io/projects/c2/index.html

here's a dump of the entire wiki in WikiWikiWeb markup. if you can do anything with it, let me know.

Re:Anti Patterns Catalog by vmorgulis on Sunday January 01, 2017 @05:04PM (#13297644)
What do you think of Pandoc? http://pandoc.org/

The two supported wiki markups:

- MediaWiki https://www.mediawiki.org/wiki/Help:Formatting

- TWiki http://twiki.org/cgi-bin/view/TWiki/TextFormattingRules

I wonder which one is the closest to WikiWikiWeb syntax.

Another cool stuff would be to put that in the gopherspace.

Re:Anti Patterns Catalog by imode on Monday January 02, 2017 @02:09AM (#13299561)
I actually tried pandoc + MediaWiki markup but it ended up quite consistent and not representing the original page.

ward's site actually contains the rules for deconstructing the JSON and translating it to HTML. I'll have a look at that when I have time.

Re:Anti Patterns Catalog by tomatsu on Saturday December 31, 2016 @10:40AM (#13291451)
> Making a wiki as an SPA.

Well, that's technically fine. However, the page should be a static document which was rendered on the server side and the other stuff should be loaded later and only when needed.

There is no reason why the initial render can't be done in <20 KB and <5 requests.

Re:Anti Patterns Catalog by paulddraper on Saturday December 31, 2016 @01:41PM (#13292415)
> However, the page should be a static document

SPAs are almost always not rendered server-side. They can be, but it's harder so they aren't.

Re:Anti Patterns Catalog by sfilargi on Friday December 30, 2016 @07:36PM (#13288712)
Ironic isn't it?
Re:Anti Patterns Catalog by 0x54MUR41 on Sunday January 01, 2017 @07:49AM (#13295581)
What is SPA?
Re:Anti Patterns Catalog by grzm on Sunday January 01, 2017 @07:50AM (#13295588)
Re:Anti Patterns Catalog by gwu78 on Saturday December 31, 2016 @12:52AM (#13289716)
No Javascript required, but pages are in JSON instead of HTML.

http://c2.com/wiki/remodel/pages/[page_title] e.g. http://c2.com/wiki/remodel/pages/AntiPatternsCatalog

What is behind the obsession with JSON?

If JSON is nested too deep, memory is exhausted.

Why blindly put an entire structure of unknown size into memory? Just to parse some text.

Why not use something like netstrings?