[-] RoToRa@discuss.tchncs.de 2 points 11 months ago

There actually is a Stack Exchange community for code reviews: https://codereview.stackexchange.com/

[-] RoToRa@discuss.tchncs.de 27 points 11 months ago

There is a Stack Exchange community for code reviews: https://codereview.stackexchange.com/

However they have some strict rules on what is allowed so it may not be suitable for open source projects. Two problematic ones are: 1) The poster must be the author/owner of the code. You, for example, can't post code that someone else has written. 2) All code that is to be reviewed must be included in the post. You can't just link to a repository.

[-] RoToRa@discuss.tchncs.de 4 points 1 year ago

Has anyone use Google's zx and can say something about it?

[-] RoToRa@discuss.tchncs.de 20 points 1 year ago

"If you have one"? What's the point of that insert?

[-] RoToRa@discuss.tchncs.de 1 points 1 year ago

Don't movies and tv shows commonly use real footage of catastrophes or riots, for example, in news reports or to establish the state of the world?

[-] RoToRa@discuss.tchncs.de 1 points 1 year ago

You are not wrong that they are in a way "executable comments". Just like comments they are intended only for development/debugging and can't (shouldn't) have any influence on production code.

For example, in your sample code the if is unnecessary, because condition can't be (should not be) true. If it were, it would be a bug. Instead it should be written as:

assert !condition;
// Very long block of code

If the condition can ever be true then you shouldn't be using assert.

See also https://stackoverflow.com/a/2758645/318493

RoToRa

joined 1 year ago