The Tic-tac-toe hole will go live in approximately . Why not try and solve it ahead of time?

Welcome to the Code Golf wiki!

This is a community-curated collection of tips, tricks, suggestions, and reference information for golfing in the many languages and holes on code.golf.

If you'd like to contribute to or tidy up a page, head over to the GitHub wiki to make edits. The links in the upper right of each page will also take you there.

Please aim to contribute tips which are generally applicable, with sufficient detail and explanation for a new golfer to see how it might be used. You are under no obligation to divulge your more precious secrets, but if many golfers have found a trick, it may be worth adding here.

General Tips

Strategies

Good introductory holes

Although the difficulty can vary a lot by language, these are some holes that are often a good starting place to build your skills. Don't be frustrated if you can't reach 1st place, though; even simple holes can have devious tricks that require experience to find.

Maximizing your score

There are many ways to enjoy the problems on code.golf. Some people like to "fill in the grid"--that is, solve every hole in every language--even if not all solutions are competitive. Others prefer to solve fewer holes but make every effort to find the best solution. And some people like to maximize their leaderboard score.

The scoring system is described here. The fastest way to accumulate points is to solve as many holes as possible, even if your solutions aren't that great. Once you've solved every hole in at least one language, further points require optimizing your solutions. The only way to get the full 1000 points for a hole is to find the shortest solution across all languages.