![]() |
Curiosity...
Am I the only person that avoids using "with" as much as possible?
Whenever I create an object of any sort, I assign it a pointer. If the object is already created, I give it a pointer. ex: temp.ani = showani(...); temp.ani.prop = value; When I have long lists of things, it seems easier to just glance at my code and see exactly what is going on, instead of tracing back with blocks. What do you do and why? Discuss! |
I never use with.
|
I use with only with findimgs
|
thiso. eww.
|
It depends on how many values of the object I am changing.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
I mean, really... which one looks better? It may be more lines, but I guess I'm a block kind of guy. :cool: PHP Code:
|
The top one looks better, and would look even better if you lined up your equal signs *tsktsk*
|
For me it kind of depends on the length of the object name, I found out (but never thought about).
Example; PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
|
Quote:
Besides, there are no excuses. Using with() is all about personal preference. Same about lining up equal signs. |
All times are GMT +2. The time now is 10:27 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.