Skip to main content
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. When I make the changes I suggest it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: http://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336https://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. When I make the changes I suggest it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: http://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. When I make the changes I suggest it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: https://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336

Tweeted twitter.com/StackCodeReview/status/761412209876533248
deleted 5 characters in body
Source Link

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. I'veWhen I donemake the changes I've suggestedI suggest it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: http://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. I've I done the changes I've suggested it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: http://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. When I make the changes I suggest it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: http://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336

Source Link

Can I edit broken code if I'm sure I'm recreating OP's original code?

I know, I know: "Never edit the code, leave it for the review!". But please, hear me out before answering.


What should I do if I encounter a code that doesn't work, but I'm 99.99% sure it's because OP was trying to adapt the code to fit the format of this site?

There are a few situations where this can happen:

  • OP has added comments, but on the wrong format, so the code doesn't run
  • For instance used // instead of #, or % in front of comments.
  • Some variable names are mixed up, but it's quite clear what the intention is
  • A variable is named Mask through the entire code, except a few places where it's called Masque. It's very likely that this is because OP has translated the variable names from her/his native language so that it's clear for everyone what it means.

Note:

I've tested the code in the question and it doesn't run as it is. I've I done the changes I've suggested it runs and produces the same output OP has provided. OP doesn't respond to comments.

Questions:

  • Should such a question be closed since it contains broken code?
  • Can I edit the question if I'm 99.99% sure my edit is correct, since I've tested it and reproduced OP's results? (I know this goes against the general rule: "Don't edit code! Leave it to the review", but in this case it's not really up for review)
  • Should I just leave it be?

The question that made me ask this question: http://codereview.stackexchange.com/questions/126336/inpainting-algorithm-using-conjugate-gradient-for-colored-images-using-matlab#comment257440_126336