My best friend tried to get into the Air Force but they didn't let him in because he failed a hearing exam. As he describes it, he was "not able to hear a mouse fart from across the room."
I blame the fact that we spent the latter part of our teen years playing in a metal band together.
Create program to write to a new file and open it with a web browser. The file must have a text box and perform addition, subtraction, multiplication, parentheses and exponentiation. Must follow order of operations.
Multiple files are allowed, and html does not have to be validated, just to work...
Gonna have to go with no then. The only gold badges that don't imply a silver/bronze are Constable and Sheriff, and I find it highly unlikely a user can be appointed/elected mod with zero badges :)
Here is another short string related code-golf. You must write a full program that reads a string (from STDIN or as command line arguments, as long as you specify which) and wips the flords around (flips the words around). A valid flord wip must
Flip all of the beginning consonants. (All of the...
was there not discussion at some point about making a set of sockety KotH interfaces so that everyone can use the language they want and it isn't unbelievably slow and might work?
(rather than Java only KotHs, which I don't compete in because I hate Java even if I love wolves, and Stack Snippet KotHs, which I don't compete in because I hate JS, and IO KotHs, which just seem to go wrong for reason I've never quite worked out)
(i.e. a simple messaging protocol that gets implemented in every language and providing a simple interface to whoever wants to use it, it wouldn't be hard or take long for each individual language, I've probably written the code for it 5 times over for other projects already)
Do you mean IO using STDIN/STDOUT on a single machine, but your approach would allow players on different machines to communicate with a controller on a central server?
I mean, there could be a server which constantly runs games, and people who want to test their entrant can point it at this server, and have it tested against the other people doing the same thing in real time
That would be interesting as a contest, but not great for PPCG - maybe this needs a chatroom to set it up as some kind of side-project that PPCG members can be invited to/work on
I mean I'd love to see this happen and have regular contests for different types of game, but I can't see them working as PPCG questions, especially if you can keep your code private
well, it would just be for testing during development (the rolling serverness), and it wouldn't be main issue
the issue would that someone with an idea for a KotH can throw a controller together quickly, without worrying about IO, and the same goes for the contestants
I think I see - you can keep your code private during testing, but you won't get on the leaderboard until the question poster receives your code and runs it locally
anything that isn't the person running the KotH for the proper leader board would just be for fun/testing
oh, I see, well it costs whatever the volunteer is spending
I have a server with a few friends which we use for this thing now and then anyway, it would be no disposition on my part to run KotHs on that if I trust the code
This has 2 of the advantages of a language specific KotH: 1. The controller writer doesn't need to think about or download other languages 2. The contestants can test their code without downloading other languages (even the controller language)
well, that's true for the distributed idea, but people don't want to be awake when the leaderboard is being put together, so for the leaderboard they'd still all want to be run by one person
Finding the Deadlock
When programming a multithreading application one must take good care to avoid deadlocking the various threads when accessing shared resources. A deadlock occurs when a thread attempts to access a resource that's locked in another thread at the same time that the other threa...
(maybe the person running the server would set up the existing submissions to run automatically, so there is always something to play against (once there are submissions))
with a single language (or even with multiple one) the controller could actually pull all the entries from PPCG so you wouldn't have to download them one-by-one