How to post chess games
Re: How to post chess games
You are right... thank you!
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
Thanks for the nice web app. I think the program is quite complete. One issue though, that is error popups. Would it be better to try/catch error of invalid strings/input and just ignore it instead?pgn4web wrote:
Yes. That was the intent.
D8 gives you the full PGN as posted, with all games included and with comments.
C8 gives you the PGN of the current game, with comments.
B8 gives you the FEN of the current position. When producing that, I thought that people would likely paste the FEN in their chess software to analyze, so I thought it would be a good idea to add the following moves (still you could have loaded the PGN of the game instead, but I wanted to make people's life easier).
If B8 were to give the comments, I'd suspect someone would ask why I left out the preceding moves... then B8 would become the same as C8
PAWN : Knight >> Bishop >> Rook >>Queen
Re: How to post chess games
depends... for many exceptions that is what happens.kingliveson wrote:Thanks for the nice web app. I think the program is quite complete. One issue though, that is error popups. Would it be better to try/catch error of invalid strings/input and just ignore it instead?
however, I would expect that if you post a game you should have the decency of previewing your post and make sure it does not generate any exeption. for that purpose the tool lets you know what's wrong and needs fixing.
this leaves you free to post a bogus chessboard with popup errors annoying to everyone... that's life, a user could time and again post obscenities... then you terminate the account of who is not behaving properly.
if I hide the exceptions, how would you know that your PGN data is not correct?
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
Some of the exceptions are not necessarily errors -- is just that the functions wants input (full fen string for example) and when it's null, the error popups. Yes, you'd think people would preview a text before posting it, but as we've seen, that's not the case.pgn4web wrote:depends... for many exceptions that is what happens.kingliveson wrote:Thanks for the nice web app. I think the program is quite complete. One issue though, that is error popups. Would it be better to try/catch error of invalid strings/input and just ignore it instead?
however, I would expect that if you post a game you should have the decency of previewing your post and make sure it does not generate any exeption. for that purpose the tool lets you know what's wrong and needs fixing.
this leaves you free to post a bogus chessboard with popup errors annoying to everyone... that's life, a user could time and again post obscenities... then you terminate the account of who is not behaving properly.
if I hide the exceptions, how would you know that your PGN data is not correct?
PAWN : Knight >> Bishop >> Rook >>Queen
Re: How to post chess games
Well... passing an incomplete FEN string, to me, it is an error.kingliveson wrote:Some of the exceptions are not necessarily errors -- is just that the functions wants input (full fen string for example) and when it's null, the error popups. Yes, you'd think people would preview a text before posting it, but as we've seen, that's not the case.
How to handle the error depends on the application and on your user base, I guess.
It seems we have a different opinion how to handle those errors; fortunately it's not too difficult to adapt to your preferences.
Most of those error messages (apart from very few critical ones) are generated using a function called myAlert().
You can easily make that function silent taking care in one shot of all the error popups, without having to run around the code to find the next one.
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
My post probably should have been directed to Jeremy. You are right that those error catches should be left as is to correct issues. But each site can always customize the module to fit its needs.pgn4web wrote:Well... passing an incomplete FEN string, to me, it is an error.kingliveson wrote:Some of the exceptions are not necessarily errors -- is just that the functions wants input (full fen string for example) and when it's null, the error popups. Yes, you'd think people would preview a text before posting it, but as we've seen, that's not the case.
How to handle the error depends on the application and on your user base, I guess.
It seems we have a different opinion how to handle those errors; fortunately it's not too difficult to adapt to your preferences.
Most of those error messages (apart from very few critical ones) are generated using a function called myAlert().
You can easily make that function silent taking care in one shot of all the error popups, without having to run around the code to find the next one.
PAWN : Knight >> Bishop >> Rook >>Queen
Re: How to post chess games
If the PGN contains an error, the tag should just not work.
-
- Posts: 44
- Joined: Thu Jun 10, 2010 1:43 am
- Real Name: Justin Blanchard
- Location: United States
Re: How to post chess games
Agreed, it would be nice if it quietly displayed an error message in the chessboard's place.Ovyron wrote:If the PGN contains an error, the tag should just not work.
I find it annoying to open several threads in background tabs and have one pop to the foreground because an alert thought it needed my attention. Sure, it needs the attention, but (IMO) from the poster and not the reader.
-
- Posts: 1242
- Joined: Thu Jun 10, 2010 2:13 am
- Real Name: Bob Hyatt (Robert M. Hyatt)
- Location: University of Alabama at Birmingham
- Contact:
Re: How to post chess games
Seems to be a bug that causes moves ending with + (check) to generate an error that prevents advancing beyond that move... It seems to specifically affect only pawn moves, such as c4+ while piece checks seem to be OK.
Anyone else noticed this?
Anyone else noticed this?
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
Just noticed now that you said it. I posted a list of pgns and one has this bug.hyatt wrote:Seems to be a bug that causes moves ending with + (check) to generate an error that prevents advancing beyond that move... It seems to specifically affect only pawn moves, such as c4+ while piece checks seem to be OK.
Anyone else noticed this?
PAWN : Knight >> Bishop >> Rook >>Queen