6
\$\begingroup\$

How should our FAQ look like?

One suggestion per answer.

\$\endgroup\$
  • \$\begingroup\$ We should look at all stackexchange sites' FAQs, look here blog.stackoverflow.com/2010/07/… and make some good mix. \$\endgroup\$ – Nakilon Jan 27 '11 at 22:24
  • \$\begingroup\$ @ChrisJesterYoung Why did you tag this faq? That tag is for posts that themselves are FAQs. \$\endgroup\$ – Doorknob Feb 27 '14 at 13:27
  • \$\begingroup\$ @Doorknob The answers here are FAQ, or were intended to be. Should they be migrated to their own separate posts (that are tagged as faq)? Perhaps. \$\endgroup\$ – Chris Jester-Young Mar 14 '14 at 13:05
5
\$\begingroup\$

What is a code golf?

A code golf is a challenge to solve the problem using the shortest code possible. Different contests use different criteria:

  • Shortest source code, or shortest any code (including object code)? The former will usually exclude assembly-language entries.
  • Is the length counted in bytes or Unicode code points (or something else :-O)?
  • How are shell-bang lines counted? How are any command-line arguments required counted?
\$\endgroup\$
  • 1
    \$\begingroup\$ Your second point on byte-counting is rather tricky when actual physical encodings are brought into the matter. I don’t really think you can count bytes because you don’t know the encoding, and this can make a tremendous difference. Just consider UTF-16 alone: is it with or without BOM? Do we really want ASCII characters to count as two bytes? I think you have to count logical Unicode code points, not bytes. Even the CRLF vs LF issue is sticky, and not easily addressed. \$\endgroup\$ – tchrist Jan 5 '14 at 18:36
1
\$\begingroup\$

Should subjective questions be encouraged?

[Replace this with actual policy once we have it. Discussion follows.]

Code golf is clear-cut (to a point; see this post for more details): as long as the rules are unambiguous, it's clear to see which entry wins.

However, a number of early questions on this site sought "creative" solutions. This is much more subjective to judge, and could simply become a "whatever the OP likes best" question, which is not what Stack Exchange is designed for, IMO.

Therefore, we should have a policy on what level of subjectiveness should be encouraged, and/or allowed.

\$\endgroup\$
  • 1
    \$\begingroup\$ I'm against questions that must be judged on subjective metrics. \$\endgroup\$ – dmckee Apr 24 '11 at 19:53
  • \$\begingroup\$ @dmckee: +1 I couldn't agree more. :-) \$\endgroup\$ – Chris Jester-Young Apr 24 '11 at 20:35
1
\$\begingroup\$

What is the scope of CodeGolf.SE?

[The site (if not domain) has been renamed "Programming Puzzles & Code Golf", so this entry may well be redundant. I'm keeping it here for posterity.]

CodeGolf.SE is the site for code golf and other programming puzzles. We use the name CodeGolf.SE for two reasons:

  1. "Code golf" is the most popular kind of coding game on Stack Overflow, so CodeGolf.SE should appeal to that crowd
  2. CodeGolf.SE is much easier to say and type than CodeGolfAndProgrammingPuzzles.SE.

When writing a question, please tag it with if it's a golfing question, and if it's not.

\$\endgroup\$
  • \$\begingroup\$ (Please feel free to update the tags and/or the "mission statement" to reflect current consensus.) \$\endgroup\$ – Chris Jester-Young Feb 7 '11 at 0:54
0
\$\begingroup\$

Why do the number of characters matter?

(someone else would have to fill this in since I'm not really convinced this is super important)

\$\endgroup\$
  • 1
    \$\begingroup\$ This one's easy! This site is "Code Golf & Programming Puzzles". That means at least 50% of the site's charter is code golfing. By definition, code golf is a contest for the shortest code to solve a problem: in real golf, you want to get the ball into the hole with fewest strokes; in code golf, you want to solve the problem with fewest (key)strokes. \$\endgroup\$ – Chris Jester-Young Jan 28 '11 at 21:16
  • \$\begingroup\$ As for why code golf has value: it's instantly obvious which solution is "best"---just look at its size! It's totally objective, and there is no dispute as to which answer should win. \$\endgroup\$ – Chris Jester-Young Jan 28 '11 at 21:18
  • 1
    \$\begingroup\$ Just for the record: if the winning criterion is not "shortest code", then it is not a code golf, and should not be called one. \$\endgroup\$ – Chris Jester-Young Jan 28 '11 at 21:21
  • \$\begingroup\$ @Chris Jester-Young, what if it's "fewest semi-colons" or some other arbitrary measure to be minimized? It might not be true code golf but it would be kinda "golfy" to coin a phrase. \$\endgroup\$ – zzzzBov Mar 9 '11 at 4:44

You must log in to answer this question.

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