Is it bad practice to add false or ... or true and ... for the sake of promoting code genericness and/or ease of use?
As in:
SELECT * FROM table WHERE TRUE AND IsEnabled AND SomeField = some_value AND SomeOtherField != some_value in SQL or in javascript for example:
if (false || prop === 'category' || prop === 'subCategory' || prop === 'productLogisticGroup' || prop === 'productName' || prop === 'color' || prop === 'configuration' ) This lets adding or removing conditions a little easier by removing the thinking process whether the condition is on the edge or not. Is this bad in someway?