3 ms·
What does “ungolfed” mean?
by nailer 4y ago
What does “ungolfed” mean?
- mfkp 4y agoIt's a reference to "code golf", where you try to make your code as compact and the least number of bytes possible. "Ungolfed" in this context means that it was cleaned up to make it more readable, at the expense of adding a few more bytes to the size.
- JoshTriplett 4y agoAnd "code golf" got its name because better scores are a lower number of (key)strokes.
- pelagicAustral 4y agoFor completion: https://en.wikipedia.org/wiki/Kolmogorov_complexity https://en.wikipedia.org/wiki/Kolmogorov_complexity
- nailer 4y agoOh I use 'unminified' for that. Even though someone deliberately wrote minified code rather than automatically, so sometimes people disagree. Maybe 'ungolfed' is better.
- zamnos 4y agothere's a difference. unminified refers to a program doing that, using single letter function names and such, but the underlying logic is unchanged. code golf is different from that because the human can make changes to the underlying logic if it saves some lines of code, so long as the output is the same. more advanced minifiers do that as well, but the point remains, as a historical artifact because until we have AGI, there's still a difference between if a person did it vs a human
- nailer 4y ago> unminified refers to a program doing that I personally also use 'unminified' to refer to a horrible person that doesn't care about anyone else maintaining their code doing the same thing, like they're manually minifying their code to obscure it from their colleagues and future selves. I wanted to make that definition more popular as there is no reason to write unsearchable code that requires someone else to maintain a mental map of meaningless names to their actual meanings while reading code. A lot of people (you're one, nothing personal, but I explained this already in a parent comment) don't realize I'm deliberately calling attention to bad behavior and just think I'm confused though. I'll swap to ungolfed.
- deleted 4y ago[deleted]