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

I recently answered a questionanswered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate.

In my particular case, the question centered around porting code from one language to another, and the original implementation included documentation and tests for each method. However, these tests were not trivially runnable as I would have needed to rewrite them in the new language.

Should we expect people asking for review to provide a way to run the code, just as we expect a description of what the code does? Should the way to exercise the code be provided in the same language as the code under review?

I recently answered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate.

In my particular case, the question centered around porting code from one language to another, and the original implementation included documentation and tests for each method. However, these tests were not trivially runnable as I would have needed to rewrite them in the new language.

Should we expect people asking for review to provide a way to run the code, just as we expect a description of what the code does? Should the way to exercise the code be provided in the same language as the code under review?

I recently answered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate.

In my particular case, the question centered around porting code from one language to another, and the original implementation included documentation and tests for each method. However, these tests were not trivially runnable as I would have needed to rewrite them in the new language.

Should we expect people asking for review to provide a way to run the code, just as we expect a description of what the code does? Should the way to exercise the code be provided in the same language as the code under review?

replaced http://meta.codereview.stackexchange.com/ with https://codereview.meta.stackexchange.com/
Source Link
replaced http://meta.codereview.stackexchange.com/ with https://codereview.meta.stackexchange.com/
Source Link

I recently answered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate.

In my particular case, the question centered around porting code from one language to another, and the original implementation included documentation and tests for each method. However, these tests were not trivially runnable as I would have needed to rewrite them in the new language.

Should we expect people asking for review to provide a way to run the code, just as we expect a description of what the code doeswe expect a description of what the code does? Should the way to exercise the code be provided in the same language as the code under review?

I recently answered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate.

In my particular case, the question centered around porting code from one language to another, and the original implementation included documentation and tests for each method. However, these tests were not trivially runnable as I would have needed to rewrite them in the new language.

Should we expect people asking for review to provide a way to run the code, just as we expect a description of what the code does? Should the way to exercise the code be provided in the same language as the code under review?

I recently answered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate.

In my particular case, the question centered around porting code from one language to another, and the original implementation included documentation and tests for each method. However, these tests were not trivially runnable as I would have needed to rewrite them in the new language.

Should we expect people asking for review to provide a way to run the code, just as we expect a description of what the code does? Should the way to exercise the code be provided in the same language as the code under review?

Post Closed as "Duplicate" by Vogel612, Marc-Andre, SuperBiasedMan, 200_success discussion
added 54 characters in body
Source Link
Mathieu Guindon Mod
  • 75.6k
  • 4
  • 99
  • 243
Loading
Source Link
Shepmaster
  • 8.8k
  • 11
  • 7
Loading