codewars / docs

The Codewars Docs :construction: WIP
https://docs.codewars.com
MIT License
55 stars 192 forks source link

Tutorial: how to not create kata with code restrictions #243

Open hobovsky opened 3 years ago

hobovsky commented 3 years ago

Create a tutorial explaining to authors why restrictions related to code are a bad idea. Point out possible pitfalls:

Think about a series of language specific articles explaining how to enforce things which are possible to be realized more or less reliably:

kazk commented 3 years ago

IIRC there's something about blocking modules for Haskell?

https://github.com/codewars/hspec-codewars#hidden

kazk commented 3 years ago

fetching answer from outside: network

I wouldn't want this possibility documented. It's well known, but still.

hobovsky commented 3 years ago

JS Specific, suggested by @XRFXLP: https://github.com/codewars/docs/issues/214#issuecomment-755304491

Suggestion:

Freeze the Object which are being as method for validation for solutions: (For example: Math, Array, Function, String....) For example there are many katas in which validation process uses String.prototype.split, but the translators or author usually forget to freeze or constantify the handler function, which led user to modify the prototype itself to pass the tests.

And I think this is not detected my anti-cheat system, because I've recently seen couple of such solution for few 1 kyu katas.