Questions tagged [tips]
For questions asking for tips on golfing in a specific language, doing well in certain challenge tag, or improving a particular piece of code.
17
questions with no upvoted or accepted answers
17
votes
0
answers
748
views
How to golf string output in Chef
I'm attempting to solve a programming golf style programming puzzle. I need to write an 18 character phrase in Chef in less than 32 "lines" of code. In this case, a line counts as an ingredient or an ...
13
votes
0
answers
472
views
Tips for Golfing in SQLite?
I was looking for this page to help me enhance my first answer with SQLite, but I couldnt find one. So here we are!
What general tips do you have for golfing in SQLite? I'm looking for ideas that can ...
9
votes
0
answers
272
views
Tips for golfing in Chef
What general tips do you have for golfing in Chef? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Chef (e.g. "remove unnecessary ...
6
votes
0
answers
241
views
Shortest CSS selector to select ALL html elements, without using asterisk *
What is the shortest selector (by character count) to select ALL html elements on a web page, without using asterisk (*)? Some examples are the following:
...
6
votes
1
answer
394
views
Further golfing this C# code from Scramble words while preserving their outlines
I'll start off by saying I checked and checked again that this question should be on topic.
I will also clearly state that this is a tips question about further golfing a certain set of code not a ...
5
votes
0
answers
292
views
Tips for golfing in TeaScript
TeaScript is a powerful JavaScript golfing language created by StackExchange, PPCG, user Downgoat. TeaScript compiles to JavaScript and contains many helpful features for golfing
This question is to ...
4
votes
0
answers
210
views
Tips for golfing in Seriously
I am looking for tips to code in this golfing language Seriously, and was wondering what some of the ways for golfing this language is. "Remove comments" is not a tip. Actually is also ...
4
votes
0
answers
157
views
Tips for golfing in Objective C
Although on codingame.com, Objective C and C are two of the best golfing languages there, so I would like to know some of the best golfing methods (although I am a python person, I am currently trying ...
4
votes
0
answers
240
views
Golfing Delayed Expansion Variables in Batch
Enabling delayed expansion variables in Batch chews up a lot of bytes. The shortest I have managed to make it is:
@!! 2>nul||cmd/q/v/c%0&&exit/b
...
3
votes
0
answers
101
views
Tips for golfing in Arn
Does anyone have tips on how to golf in this language? Please one tip per answer and avoid posting simple and general tips such as "remove whitespace".
Here is the github link and here is ...
3
votes
0
answers
152
views
Tips for golfing in SageMath
SageMath is an open-source mathematics software system, built on Python 2. Its extensive math library support makes it a strong choice for golfing in math-based challenges.
What tips do you have for ...
2
votes
0
answers
84
views
Tips for golfing in Thue
Anyone got tips for golfing in Thue. One tip per answer, and no tips aplicable to all languages (like remove comments)
2
votes
0
answers
271
views
Shorten this dns txt record request script as much as possible
I have made a short script that will pull dns txt records down from a server and combine them into a single string.
DNS txt records are:
1.website.com
...
2
votes
0
answers
88
views
Tips for golfing in Fennel
Fennel is a lispy language which compiles to Lua.
From its page:
Fennel is a programming language that brings together the speed, simplicity, and reach of Lua with the flexibility of a lisp syntax ...
0
votes
0
answers
199
views
How to efficiently count all powers of 2 in a given set of numbers in vb.net?
Every integer can be expressed in powers of 2. You know this as the binary system
Assume you are given a set of k numbers ...
0
votes
0
answers
176
views
Tips for golfing in Zig
Not sure if I've seen this one before :/
Any tips for golfing in Zig? Please post 1 tip per answer and don't post obvious tips like "remove whitespace".
Github link
-2
votes
1
answer
84
views
PHP+C polyglot solution to mixed types
Some built-in functions in PHP return mixed types, like file_get_contents that returns both string or ...