1
\$\begingroup\$

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\$
3
  • 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\$
    – DELETE_ME
    Mar 15, 2018 at 8:24
  • 2
    \$\begingroup\$ See codegolf.meta.stackexchange.com/questions/2419/… \$\endgroup\$
    – DELETE_ME
    Mar 15, 2018 at 8:29
  • 1
    \$\begingroup\$ Closures and fuctions are legal, but snippets are not. That is a snippet. \$\endgroup\$ Mar 15, 2018 at 12:54

0

Browse other questions tagged .