Changes between Initial Version and Version 1 of Ticket #4140, comment 8
- Timestamp:
- 04/12/2012 01:22:46 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4140, comment 8
initial v1 1 We disagree with "Yoda" if statements, because that technique has little value anymore - all modern IDE's (netbeans will underline the error in yellow).1 We disagree with "Yoda" if statements, because that technique has little value anymore - all modern IDE's catch this (netbeans will underline the error in yellow). 2 2 3 But Yoda statements make code much harder to mentally parse/skim , because your brain has to flip the words so it makes sense.3 But Yoda statements make code much harder to mentally parse/skim code, because your brain has to flip the words so it makes sense. 4 4 5 5 if('red' == $car && 'running_ok' == engineStatus() | | $driving = engineStatus( ))