(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-24) was last changed on 16-Oct-2007 15:19 by ChuckSmith  

This page was created on 02-Sep-2006 13:00 by Christoph

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 69 added one line
I'm more concerned that there is introduced an opportunity for errors and lost data. What should the wiki do when there is an unknown placeholder? What if the placeholder is duplicated? Data loss is possible when the user tries to move text between pages, or even on the same page, but in two edits -- he will cut the text, save to see how it looks, edit again and paste the text in different place. There is also a possibility of accidental modification of the hash during editing, either by the user himself, or by the text editor (line breaking, autoindenting, spellchecking, autocompletion). The main problem is that such a failure is fatal -- once you save, even pasting the text back wont help, because the placeholder is already deleted on the server. Sure, it's a wiki, so you can probably revert to a previous version and then retry all your changes -- but this in truns destroys the user's work. Turning the "hash" into an actual "perfect" representation of the data, just compressed and base64-encoded is one solution.
At line 71 added 4 lines
To sum up -- I agree that it can be advantagues to use hashes in cases of elaborate elements -- especially when they can contain whitespace and normal text. But at the same time, this has several drawbacks making the whole editor a **little** less friendly and faultproof -- so it seems that the technique can be avoided when it's not actually necessary: when the text of contained object is actually short and robust (no whitespace or other things that could make it look similar to other page content).
-- RadomirDopieralski, 2007-02-23
Version Date Modified Size Author Changes ... Change note
24 16-Oct-2007 15:19 11.61 kB ChuckSmith to previous restore
23 16-Oct-2007 12:53 11.624 kB 201.12.178.33 to previous | to last
22 01-Jun-2007 16:31 11.61 kB ChristophSauer to previous | to last two angle brackets for placeholder is fine
21 05-May-2007 14:04 11.313 kB ChristophSauer to previous | to last changing markup here would make distinction clear between plugin
« This page (revision-24) was last changed on 16-Okt-2007 15:19 by ChuckSmith