I need a minimum of logic for showing this field in my view; what is the fastest solution? Let's use views_php and this will be done in less than five minutes. ERROR.
I need some logic not provided by any Rules condition or some action not provided by any Rules action; what is the fastest solution? Let's use PHP code in rules through PHP filter module. ERROR.
I need a custom field in Display Suite; what is the fastest solution? Let's use ds format or PHP filter for doing this. ERROR.
I need a very simple action for integrating in views_bulk_operations; let's make a rule component with PHP and let's use this in vbo. Again ERROR.
You simply never should store code in DB. Some reasons:
1) You don't have version control.
2) It's almost impossible (or at least very very hard) to find errors.
3) When you experience #2; you won't need more reasons.
4) If you need one more reason; here is one important: In D8 you won't have this module. (Thanks!!!)
Solution?
Let's extend views with plugins (fields, sort, filters), rules with conditions and actions; vbo with custom actions and ds with our custom fields; but ALL of these stored in code. Maybe at beginnig it's not the fastest solution; but this will be always the best one.
We are going to do this in the right way!
- Log in to post comments