2 ms·
When I have very complex logic I like to give each step its own variable. It makes it read like English. To be honest I only actually only do this when Im work
by dec0dedab0de 7y ago
When I have very complex logic I like to give each step its own variable. It makes it read like English.
To be honest I only actually only do this when Im working on old code and find myself trying to remember how something works.
- paulryanrogers 7y agoIME the improvement to readability is worth the cost of a few extra assignments.
- Avamander 7y agoIn the cases where they aren't worth it, you're hopefully also using a language that gets compiled and they're just optimized out.