2
\$\begingroup\$

This question already has an answer here:

When solving a puzzle with an appropriate solution, does the programming language standard boiler-plate source code need to be included:

For example, should I include all of this:

using System;
using System.Linq;

public class Program
{
    public static void Main()
    {
        Console.WriteLine("Code Golfing Is My Favourite Sport!");
    }
}

Alternatively, is it enough to include the actual specific code which solves the challenge, i.e.:

Console.WriteLine("Code Golfing Is My Favourite Sport!");
\$\endgroup\$

marked as duplicate by Mego Mar 15 '18 at 12:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    \$\begingroup\$ Submissions should be either a program or a function, not a snippet. If you choose to submit a program -- yes, a function -- language-dependent and we don't really have a clear consensus. \$\endgroup\$ – user202729 Mar 15 '18 at 8:24
  • 2
    \$\begingroup\$ See codegolf.meta.stackexchange.com/questions/2419/… \$\endgroup\$ – user202729 Mar 15 '18 at 8:29
  • 1
    \$\begingroup\$ Closures and fuctions are legal, but snippets are not. That is a snippet. \$\endgroup\$ – Magic Octopus Urn Mar 15 '18 at 12:54

Browse other questions tagged .