06-24-2022
12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-24-2022
12:02 AM
Hi,
If the code is intended to be modified or transferred to different people, for me snippet 4 is the best with or without comments.
The other excerpts are more difficult to read, especially for someone who didn't write it, and when you come back to work on it 6 months later, it's also more difficult to remember what you had chosen earlier.
It's just my personal opinion.
Vincent.