Hi All,
I just need to know which one is the best practice
1)creating an expression rule to fetch the data and creating another rule to manipulate the retrieved data
2) using same expression rule for both things
Discussion posts and replies are publicly visible
The answer lies in whether you think the fetch of the data needs to be re-used in other contexts or you will always use the manipulated version of the fetched data.
Does creating more objects impact the application performance .i can create one expression rule and make use of it wherever i want (expression rule will be complex ) or i can create multiple expression rules to make the code more easily understandable. which way i should follow as best practice
The performance overhead (which essentially can be attributed to passing pointers to the data you're processing) will be minimal. The benefit from "creating more objects" will only be reaped if those objects are well encapsulated and have high "cohesion" and low "coupling".
Thanks stewart