Tips for either golfing or programming challenges. In most current cases it is for helpful tips and tricks how one could golf more effectively with a particular language.
1
vote
2answers
111 views
Tips for golfing ASCII art
I think the ASCII art questions on Code Golf are fun to do but personally I think it can be pretty hard. Especially when the question is tagged as code-golf.
I wonder if anyone here might have some ...
2
votes
0answers
99 views
Tips for Golfing in Batch
Windows Batch (CMD) is probably the least suitable language for code golfing.
Avoid newline characters. If you're looking for the shortest code in bytes, as opposed to characters, you will want to ...
0
votes
0answers
63 views
Tips for golfing in Delphi
Codegolfing is incredibly fun to do, trying to solve the given problem is one thing but the real challenge is getting your code as short as possible.
Some languages are perfect for golfing because of ...
0
votes
0answers
81 views
Tips for golfing in Io
What general tips do you have for golfing in Io? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Io (e.g. "remove comments" is not an ...
4
votes
2answers
146 views
Tips for golfing in Haskell
What general tips do you have for golfing in Haskell? I am looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Haskell. Please post only one ...
0
votes
2answers
88 views
Tips for golfing in Perl 6
What general tips do you have for golfing in Perl 6? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Perl 6 (e.g. "remove comments" is ...
5
votes
1answer
164 views
Tips for golfing in APL
I started one code golf challenge recently and it seems like the winner is GolfScript (surprise, surprise!). What's interesting is that there was another very strong competitor that had all chances to ...
8
votes
21answers
533 views
An improved version of GolfScript
I am planning to write an improved GolfScript for even shorter programs that can do more things. This is not a challenge; it is a request for feedback and tips on what I should do. (see tags)
I'm not ...
0
votes
0answers
68 views
Tips for golfing in F#
What general tips do you have for golfing in F#? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to F# (e.g. "remove comments" is not an ...
2
votes
6answers
109 views
Tips for golfing in Befunge 98
What general tips do you have for golfing in Befunge 98? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Befunge 98 (e.g. "remove ...
0
votes
2answers
155 views
Doing shorter comparisons in PowerShell
One of the annoying bits about PowerShell, which helps amplify its disadvantage against other languages in code-golf, is that there are no symbolic comparison or logical operators.
A comparison that ...
1
vote
2answers
138 views
Tips for golfing in Bash
What general tips do you have for golfing in Bash? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Bash (e.g. "remove comments" is not ...
0
votes
1answer
158 views
Tips for golfing in AWK
What general tips do you have for golfing in AWK? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to AWK. Please post one tip per answer. ...
2
votes
0answers
74 views
Tips for golfing in VBScript
What general tips do you have for golfing in VBScript? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to VBScript. Please post one tip ...
1
vote
0answers
88 views
Tips for golfing in Octave
What general tips do you have for golfing in Octave? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Octave (e.g. "remove comments" is ...
0
votes
2answers
172 views
Tips for golfing in MATLAB
What general tips do you have for golfing in MATLAB? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to MATLAB (e.g. "remove comments" is ...
4
votes
2answers
370 views
Tips for golfing in Brainf**k
What general tips do you have for golfing in Brainf**k? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Brainf**k (e.g. "remove ...
5
votes
3answers
230 views
Tips for golfing in Mathematica
What general tips do you have for golfing in Mathematica? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Mathematica (e.g. "remove ...
2
votes
4answers
196 views
Tips for golfing in Tcl
What general tips do you have for golfing in Tcl? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Tcl (e.g. "remove comments" is not ...
1
vote
1answer
193 views
Code Golfing in high school computer science club? [closed]
This is not a code golf challenge.
So, at my high school, we're starting a new computer science club, and personally I'd like it to be more than just writing Java stuff (AP Comp Sci curriculum). How ...
9
votes
8answers
326 views
Tips for golfing in Postscript?
As one of the less popular languages, it's difficult to find literature on the avant garde of postscript hackery. So what discoveries have the golfers here made to exploit the stack model (or other ...
3
votes
5answers
393 views
Language idea for golfing purposes
This question is probably not on-topic. If a moderator feels that it should be that way, turn this question into community wiki please.
In order to raise the score of (my) code-golf submissions, I ...
10
votes
8answers
1k views
Tips for golfing in Java
I know I know, not another tips question. But I'm rather surprised that this question hasn't already been posted. At any rate, are there any useful shortcuts that can be used especially in Java?
...
5
votes
2answers
324 views
Tips for golfing in J
GolfScript gets its own way far to often and I feel that a repository of handy hints for golfing J might help in the fight against the evil empire. What tips do you have for making this already terse ...
3
votes
2answers
378 views
PHP Codegolf: Reading/writing files and the CLI
I have been participating in a number of PHP codegolf challenges recently and some of the techniques that are used to read data from a file such as fopen() and fread() or file_get_contents() really ...
8
votes
13answers
855 views
Tips for golfing in <all languages>
The aim of this post is to gather all the golfing tips that can be easily applied to <all languages> rather than a specific one.
Only post answers that its logic can be applied to the majority ...
11
votes
8answers
837 views
Tips for golfing in GolfScript
What, this post doesn't exist yet?
Of course, GolfScript is made for golfing, so you might think that no specific tips are really needed. But to make full use of GolfScript's features, you need to ...
3
votes
11answers
611 views
Tips for golfing in VBA
Similar to this, this, and this question...
What general tips do you have for golfing in VBA? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat ...
12
votes
9answers
1k views
Tips for golfing in Perl?
What general tips do you have for golfing in Perl? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Perl (e.g. "remove comments" is not ...
12
votes
3answers
359 views
Tips for golfing in R?
I'm looking for tips for golfing in the R statistical language. R is perhaps an unconventional choice for Golf. However, it does certain things very compactly (sequences, randomness, vectors, and ...
4
votes
8answers
392 views
Tips for golfing in Scala
What general tips do you have for golfing in Scala? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Scala (e.g. "remove comments" is ...
8
votes
8answers
1k views
Tips for golfing in PHP
What general tips do you have for golfing in PHP? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PHP (e.g. "remove comments" is not ...
2
votes
2answers
276 views
Tips For Golfing In Groovy
As I have seen many questions asking tips for golfing in their interested language, I decided to ask for my favorite language: Groovy. People can give some tips and tricks that will be used in golfing ...
3
votes
2answers
258 views
Tips for golfing in Clojure
What are your tips for code golfing using Clojure?
The aim of this question is to collect a list of techniques that are specific to Clojure and can be used in general code-golfing problems.
29
votes
33answers
5k views
Tips for golfing in JavaScript
What general tips do you have for golfing in JavaScript? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to JavaScript (e.g. "remove ...
28
votes
19answers
3k views
Tips for golfing in C
What general tips do you have for golfing in C? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C (e.g. "remove comments" is not an ...
10
votes
3answers
611 views
Language Choice
What are some tips for choosing the right language to golf?
What factors affect the language to be chosen?
Here are some example problem types:
Problems that require I/O solution, either console or ...
5
votes
2answers
244 views
What is a good way to deal with tasks that requires arrays using Haskell?
Often a task requires real arrays. Take for instance the task to implement Befunge or ><>. I tried to use the Array module for this, but it's really cumbersome, as it feels like I'm coding much too ...
19
votes
12answers
2k views
Tips for golfing in Ruby
What general tips do you have for golfing in Ruby? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Ruby (e.g. "remove comments" is not ...
7
votes
4answers
475 views
Freely available books for code golfing?
Can you recommend any freely available books about code golfing in general and especially in Java and C++?
7
votes
20answers
581 views
Tips for golfing in Windows PowerShell
What general tips do you have for golfing in Windows PowerShell? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PowerShell (e.g. ...
12
votes
14answers
1k views
Tips for code-golfing in C#
What general tips do you have for golfing in C#? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C# (e.g. "remove comments" is not an ...
15
votes
6answers
1k views
Tips for golfing in C++
What general tips do you have for golfing in C++? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C++ (e.g. "remove comments" is not ...
44
votes
36answers
6k views
Tips for golfing in Python
What general tips do you have for golfing in Python? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Python (e.g. "remove comments" is ...