Replies: 1 comment
-
I already asked the question in a smaller group some time ago, and some answers were: kazk:
monadius:
Unnamed:
kazk:
|
Beta Was this translation helpful? Give feedback.
-
I already asked the question in a smaller group some time ago, and some answers were: kazk:
monadius:
Unnamed:
kazk:
|
Beta Was this translation helpful? Give feedback.
-
I have a question I have been bothered with for some time, and I was asked to create a public discussion on the topic, so here it is:
When new C translations appear, they sometimes happen to have some helper function for tests in Preloaded part. It's especially common for some particular C and C++ translators, who put there some boilerplate (helper functions for tests) shared between sample tests and submission tests. I am not a big fan of this approach, for two reasons:
I solve almost all non-white kata in local IDE and I don't really use Codewars trainer a lot for anything else than whites. Being unable to train on C kata locally in an easy way triggers me a little every time.
On the other hand, I can totally see why helpers are in preloaded code: having them separately in sample tests and submission tests causes code duplication, and, as a result, maintenance issues arise.
There are several possibilities to mitigate problems caused by test helpers placed in preloaded code:
Nowadays the direct cause of my doubts are C translations from user @trashy_incel who publishes really many C translations, and which are of reasonable quality. My problem with them is that they (ab)use preloaded a lot, basically rendering kata impossible to train on locally.
I would like to approve most of them, but the preloaded thing keeps bothering me. But we don't have any good alternative for now :/
Beta Was this translation helpful? Give feedback.
All reactions