Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What does “ungolfed” mean?


It'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.


And "code golf" got its name because better scores are a lower number of (key)strokes.



Oh I use 'unminified' for that. Even though someone deliberately wrote minified code rather than automatically, so sometimes people disagree. Maybe 'ungolfed' is better.


there'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


> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: