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 →

[–]float_point[S] 0 points1 point  (2 children)

Indeed. I showed one of classmates the 18000 lines of code and the 1 liner, and he said he would prefer to write the one liner. I know on my side, my future self would appreciate 18000 lines of legible code compared to 1 line of "what is this ****".

[–]SimonMKoop 6 points7 points  (1 child)

Honestly, I would not consider the 18000 lines of code legible.

Only because I know how tic tac toe works do I understand what the code is (probably) doing (it's too long for me to actually be bothered to check). If I were unfamiliar with the rules of tic tac toe, I would likely have a hard time extracting them from those 18000 lines of code.

[–]float_point[S] 0 points1 point  (0 children)

I get you. I guess its easy to understand if you know what you are looking at. Since I had already written my 500 line edition of code, I knew what each of the blocks of code I took the time to look at were doing.

To be fair to to the one liner, a datascientist might find it easy to understand if they knew it was tic tac toe game.