1
\$\begingroup\$

I want to share my golfed code of puzzle available on Coding Game, but is it OK to share it on CodeGolf SE ? Other's code is available only by completing the puzzle, but I use those puzzle to train code-golf.

Is sharing my solution and/or asking for possible improvement OK ? Should I use a

spoiler ?

Here an example and here the puzzle my question is about.

||||||
\$\endgroup\$
  • 1
    \$\begingroup\$ Is this a question about our policy or about the other site's policy? You are certainly allowed to show your code and ask for help golfing it here as tips, like the question you linked, however I don't I don't know the rules for the other site (whether it is ok to get help writing your code) and this is not really the place to ask about that site. \$\endgroup\$ – Ad Hoc Garf Hunter Dec 23 '19 at 14:27
  • \$\begingroup\$ I ask for SE policy. I asked on CG but no answer yet. Will update is so. \$\endgroup\$ – Dorian Turba Dec 23 '19 at 14:38
  • \$\begingroup\$ For practice exercice, no issue in sharing the solution for CG. \$\endgroup\$ – Dorian Turba Dec 23 '19 at 16:53
2
\$\begingroup\$

This is what is for.

You can share your code and what it is trying to do and others can show you how it can be improved. You can put your code in a spoiler block if you would like but it is definitely not necessary to do so.

It may of course be against another sites terms to submit code you have received help on, even if that help was golfing it, so you may want to check their policy.

||||||
\$\endgroup\$
  • \$\begingroup\$ Ok, my goal is to improve my knowledge, not improve my score on this website, so I will not publish the improved version on it. I asked to a community chat of CG, and the answer is that in my case, it's ok. For challenge and leader-board, probably not. \$\endgroup\$ – Dorian Turba Dec 23 '19 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .