Occasionally, I find plugging in a few lines of JS code in the Pre/Post sections can be useful but I’m not sure if I need to discontinue this habit!
We are using WLE 7.5.1.
Pinned topic Pre and Post Executions Assignments
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-07T21:35:37Z at 2013-02-07T21:35:37Z by SystemAdmin
barsa4ever 270004VVMH100 Posts
Re: Pre and Post Executions Assignments2013-02-07T06:50:17ZThis is the accepted answer. This is the accepted answer.The only reason I see here is to keep your code clean. When somebody will try to understand your code, all this pre- and post- assignments will confuse a bit. Trust me, I tried it. :)
Actually I don't think it will somehow decrease performance in any noticable level.
Sometimes it's the only way to make things work, otherwise I prefer not to use it.
Re: Pre and Post Executions Assignments2013-02-07T16:42:45ZThis is the accepted answer. This is the accepted answer.
- barsa4ever 270004VVMH
Personally, I prefer to use it (not intensively though) for initialization mainly. I suppose it is a matter of opinion but thanks for your response.
jmac_EmeriCon 110000S3HB279 Posts
Re: Pre and Post Executions Assignments2013-02-07T16:52:40ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Bottom line I see no reason to avoid these for simple initializations/logging, but imo they should not be abused.
Re: Pre and Post Executions Assignments2013-02-07T21:16:55ZThis is the accepted answer. This is the accepted answer.
- jmac_EmeriCon 110000S3HB
The real problem is many people are lazy and just wind up using it because they don't want to reconnect lines.
There is little to no performance impact either way. If someone really measured I suspect there is a slight chance that the stand alone js block might perform ever so slightly more slowly if "save execution context" is turned on, but I would be amazed if that was a significant difference.
Andrew Paier | Director of Special Operations | BP3 Global, Inc. www.bp-3.com