Multiple Pistons or One complicated one


#1

So I am working on creating some pistons and there are many things I want to have happen when I set my alarm or disarm my alarm.

The question is, Does it hut anything to have Multiple pistons run at the same time for when the system is armed or disarmed. or is it best to make it have a tone of if then statements in one piston instead?

Is there any performance gains or losses. or do all the pistons run in parallel (At the same time)


#2

I am speaking from experience as a Webcore user/programmer for about one year. It may depend on your knowledge and experience with webcore and as a programmer. Short, task specific pistons are far easier to code and debug. Individual pistons will generally run simultaneously and any performance gain is negligible. Once you gain programming and/or webcore experience, then you can combine pistons into larger pistons. An additional bonus is that community help with your pistons will generally be faster and more complete with simple pistons versus long, complex pistons. Your mileage may vary…