usaco-guide icon indicating copy to clipboard operation
usaco-guide copied to clipboard

Inconsistent Testing Script in Basic Debugging Java

Open bqi343 opened this issue 2 years ago • 6 comments

(Link should work once #3172 is merged)

https://usaco.guide/general/basic-debugging?lang=java

I'm not sure why we have a testing script specific to Java. For this section, the content should be the same across all three languages.

bqi343 avatar Nov 09 '22 22:11 bqi343

don't really see why a java-specific debugging script is bad here

SansPapyrus683 avatar Dec 30 '23 23:12 SansPapyrus683

  1. It's not an example of stress-testing multiple solutions against each other, which is what this section is about.
  2. It should be language-agnostic in the sense that if you want to test a C++ solution instead, you should only need to change a single line.
  3. It should be concise enough so that it's easy to type from scratch.

bqi343 avatar Dec 31 '23 00:12 bqi343

It's impossible for the scripts to be the same because there's no easy way to compile a java script to something executable. But this should be doable otherwise.

IDON-TEXIST avatar Jan 28 '24 23:01 IDON-TEXIST

javac is a thing lol you do have to run it w/ java but yeah

SansPapyrus683 avatar Jan 28 '24 23:01 SansPapyrus683

Won't have time to do this for a bit, actually.

IDON-TEXIST avatar Jan 30 '24 00:01 IDON-TEXIST

oh sure, work on it whenever you want

SansPapyrus683 avatar Jan 30 '24 02:01 SansPapyrus683