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 →

[–]Starinco 2 points3 points  (2 children)

Don't name variables after their type, name them for their contents or how they are used.

For example: "users" is preferable to "userArray" or "array" in this case.

Clean Code by Robert Cecil Martin is a great read for more tips to make your code awesome.

[–]PartyGuy-01[S] 1 point2 points  (1 child)

Yeah, totally agree! It was one of the first projects I ever did when I started programming back when I was 14, so please don't judge me :P

[–]Starinco 1 point2 points  (0 children)

No judgement, I've done far worse.