I have two methods for writing code. The first way is how I write a certain routine.
Here is the before:
After that works, I simplify to this:![]()
Please Login or Register to view this content.
Now, I do realise that the first way is easier to trouble shoot and modify. But, the second doesn't use any variables and is "one line".![]()
Please Login or Register to view this content.
And, in this particular example, since the function is only one line, I can forgo the function call entirely.
So this:
Becomes this:![]()
Please Login or Register to view this content.
The last uses no extra variables and no function calls.![]()
Please Login or Register to view this content.
So, which is better / faster / tighter?![]()
Bookmarks