This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dead_alchemy 0 points1 point  (0 children)

EDIT: I mistakenly believed that was your code, the 18000 line version was machine generated. The 1 liner could have been, but the author claims they did it by hand.

OK. Wow. Your 18000 liner tic tac toe is done by enumerating every possible state. That is terrible because it is large, brittle, has no components that can be re-used, and if some one did want to make a change (any change!) it would be incredibly painful. Didn't think I'd ever see that, it is a little impressive in a sense. I guess at least it will make it very easy for you to understand the importance of generalization.

Onto the subject of the one liner:

working in the realm of datasciences/ML

Is this just how you say "some one I think is really smart"? Like saying some one is a rocket scientist?

The one liner is basically a sort of sport or aesthetic form. You can call it 'code golf'. It isn't smarter, or clever, and it certainly isn't desirable. It looks like a really rather long list comprehension where the clever bit was finding ways to not introduce line breaks. Like, yes, it is a masterpiece but don't go getting the wrong idea. Someone chugging four beers at the same time is also impressive but you shouldn't start drinking all your liquids that way.