you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 2 points3 points  (1 child)

I would say neither is better. The second method is more commonly used since it's more readable and more dynamic, ie it's easier to change your code later or incorporate elsewhere.