I suggest updating few 8th tests to not allow hack shortcut

I noticed it on eliuds-eggs and checking few more on acronym that they put correct value on stack before running the test, so drop dup becomes the simplest way to pass the tests. I suggest to swap lines, created PR for eliuds eggs before being reminded to discuss here first

Exercism doesn’t especially police how people solve the exercises. People can also copy paste from the community solutions or from other peoples’ git repos. If people want to get the badges and cheat themselves out of the learning process, that’s their prerogative.

That said, there is something to be said for having a clean stack when running the student’s code. @axtens @BNAndras should we maybe reverse the order of arguments?

This problem sounds like an 8th-analyser solution.

Maybe you’ve seen something I wrote recently about a student subverting a COBOL exercise (binary-search). Finding a way to resist subversion (stopping it completely isn’t achievable … by me anyway) is something I’m very interested in.

So tell me how reversing the test arguments helps.

It keeps the “answer” off the stack until the student has actually computed it.

2 Likes

Exactly that.