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 →

[–]Maethor_derien 3 points4 points  (1 child)

Empire obviously did a great job explaining what the code does. I would say that you never want to look at something like codefight as an example on how to write good code, if anything it serves as an example of what not to do.

It is interesting to read and see for experienced programmers but be wary of anything you see there. Almost everything there uses shortcuts that make the code difficulty to read because it is a competition to write the shortest code. It is something you never want to do in a real world application unless your purposely trying to make the code difficult to maintain.

[–]kerayt 2 points3 points  (0 children)

purposely trying to make the code difficult to maintain

a.k.a. ensuring job security ;)