Dictionary entry
golfed
Last updated
“golfed” is a form of “golf”. See that entry for the full set of meanings.
Meanings
adjectivenot comparableinformalcomputing
(Of computer code) deliberately rewritten to be as short as possible, often at the cost of clarity.
Grammar: Used after a linking verb such as be or get, or before a noun: the code is golfed; a golfed solution.
Patterns
- be golfed
- a golfed version of something
- heavily golfed
The final version of the script is heavily golfed, so almost every variable has a one-letter name.
His golfed solution fits the whole task into a single line, but nobody on the team can read it.
They posted a golfed answer that runs correctly but breaks every style rule in the guide.
verbtransitive or intransitive
Played the sport of golf; the past tense and past participle of the verb golf.
Grammar: No object is needed: We golfed all morning. A round can be the object: She golfed eighteen holes.
Patterns
- golfed with someone
- golfed a round
- golfed all day
We golfed on Saturday and then had lunch at the club.
She golfed with her colleagues during the company retreat.
He has golfed since he was a teenager.
Word forms
| third person singular | golfs |
|---|---|
| present participle | golfing |
| past tense | golfed |
| past participle | golfed |
Common combinations
- heavily golfed
- The heavily golfed function is short but very hard to debug.
- golfed code
- Reviewers often reject golfed code because it hides the logic.
- a golfed solution
- A golfed solution may win the contest but fail a code review.
- golfed a round
- They golfed a round before the meeting started.
- golfed with friends
- He golfed with friends every Sunday that summer.
Synonyms and how they differ
- compressed
- Describes code or data made smaller in size, but not necessarily shortened in character count the way golfed code is.
- minified
- A technical term for code with spaces and names shortened automatically by a tool, whereas golfed code is shortened by hand for fun.
Opposites
Word family
Commonly confused: golfed or golfed / gulfed?
golfed vs golfed / gulfed
Golfed relates to golf or to shortened code; gulfed is rare and means swallowed up or engulfed. They sound similar but are unrelated.
Practice
Which sentence uses "golfed" in the computing sense?
Choose one answer.
Only option C describes code shortened to a tiny size, which is the computing sense. The other options all use golfed as the past tense of the sport verb golf.
Make it your own
Write a sentence using “golfed”, then check it and compare it with the examples above.