Who among us can ignore the allure of really funny math puns?

Willow ,'Empty Places'


Buffistas Building a Better Board  

Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.

To-do list


Hil R. - Nov 17, 2002 10:49:41 pm PST #1582 of 10000
Sometimes I think I might just move up to Vermont, open a bookstore or a vegan restaurant. Adam Schlesinger, z''l

The problem with the edit page was that it was reproducing the page-breaking post, right? So why not have a safe-edit page that just has the post as typed in the posting box at the bottom, without the actual post at the top?


§ ita § - Nov 17, 2002 10:51:42 pm PST #1583 of 10000
Well not canonically, no, but this is transformative fiction.

We're flailing wildly with scope here.

I agree with the idea of an emergency edit page, but we of course have to choose a < substitute less like a hug.

I'm with John on the craziness of finding errors and presenting a useful error message to the hapless user. Dammit, man, can't you hack WX and gank us the code?

edit: Hil, that's Occammish in its brilliance.


Jon B. - Nov 17, 2002 10:56:20 pm PST #1584 of 10000
A turkey in every toilet -- only in America!

Hil, that's Occammish in it's brilliance.

Damn. Give that girl a medal.


John H - Nov 17, 2002 11:43:47 pm PST #1585 of 10000

What they said.


Karl - Nov 18, 2002 1:07:13 am PST #1586 of 10000
I adore all you motherfuckers so much -- PMM.

Any Perl guru worth his salt (insert encryption gag here) will tell you that you need to use an HTML-parsing module in order to do the subject justice, and there's no such thing in PHP.

John, you might want to take a look at [link] -- but I can't vouch for the quality of the code.


Liese S. - Nov 18, 2002 1:23:28 am PST #1587 of 10000
"Faded like the lilac, he thought."

Go, Hil. That version of emergency editing makes much sense.

About tables: I like them. Please don't take them away. Unless we can't work this out, which would be sad.

About presenting a useful error message to the hapless user:

The main point is containing the damage, right? And the parsing solutions we've looked at so far (lovely as they are) do not present the user with their intent, they merely prevent the user from breaking the page. Which is what we want, yes, not pretty but functional.

So why not go with the earlier suggestion that just kills the errant portion by replacing the < and > with something harmless, rather than trying to correctly close or correct it. It's still ugly, the user still has to edit if s/he wants it to be pretty, but it's still non pagekill.

Let's see. So you would still check your hash and/or array. Assume you've found a genuinely orphaned <u>. Hmm...but you wouldn't know that you've found one until you hit the end, which would be an appropriate time to append closing tags, but would take even more effort to go back again to the guilty party and edit.

So maybe that's not actually simpler.

You could still do something like...check your hash and/or array. Find orphan. Toss post into Hil's safeedit. Advise user that their code is ugly and to fix it please, without giving them the benefit of particularly helpful error messages. The board is still safe, although the user may be more or less agitated if they can't find, say, the mismatched quote, and thereby is forced to completely edit out their post. But even this doesn't offer the advantage of any less resource usage.

I gotta think some more.


Noumenon - Nov 18, 2002 2:07:51 am PST #1588 of 10000
No other candidate is asking the hard questions, like "Did geophysicists assassinate Jim Henson?" or "Why is there hydrogen in America's water supply?" --defective yeti

What have you used tables for on the site, Liese? Or is it ita's user-stats tables you like? I like those too.


Liese S. - Nov 18, 2002 11:51:15 am PST #1589 of 10000
"Faded like the lilac, he thought."

I haven't. I like other people's tables. I like the ability to table when information isn't easily represented in lists or other happy-html formats.

I used to table, but it was only for the long dead leather pants taxonomy. Which is now faq'd, and therefore irrelevant to this discussion.

Edited to say that, of course, this is all just opinion, and therefore certainly subject to the hive mind. If we consense on killing the tables I'm fine with it. I'm just voicing an opinion in favor of having the tables.


meara - Nov 18, 2002 12:09:15 pm PST #1590 of 10000

I cannot table.

But I like ita's tables.

t /not able to follow intricate discussion above


John H - Nov 18, 2002 1:20:20 pm PST #1591 of 10000

I agree with Liese up to a point. But that point is

Advise user that their code is ugly and to fix it please

which implies "prevent them from posting".

I'm a bit unhappy about presenting users with that kind of negative experience.

I'd be more happy with a "fix it, post it, tell them 'by the way,it needed fixing' please check" message. And perhaps a hint about how to get HTML advice, who from, where to post a question, that kind of thing?

And any solution that I have in my head, I'd have to say, involves chucking extra closing tags in at the end of the post, not inserting them at the right point.

To do that, you'd have to read the whole post into a data structure, like a hash of arrays or array of hashes or something like that, it seems to me. That's what those parsing modules do.