Changes between Version 24 and Version 25 of HowtoGoodProgrammingTechniques
- Timestamp:
- Nov 13, 2016, 2:19:16 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowtoGoodProgrammingTechniques
v24 v25 49 49 * Align vertical blocks of similar elements by its columns 50 50 * Whitespaces improves readability a lot, use them, if you combine them with foldings in your editor you will not suffer the side-effect of removing contents visually 51 52 === Visual Blocks === 53 Similar as previously said, we need to see visually the blocks of code, for example sometimes we have a big block of looping code, if you add a new feature you may not even see that you are in our even out of the loop, so you can insert code that should run inside the loop outside of it, on such case you can use a plugin in your editor to ''fold'' visually the desired part of the code, or put the biggest parts to external functions 54 55 And similarly, the ''if''s blocks and other blocks has the same problem, they needs to be correctly visual in your eyes to know inmediately where it starts or finishes, or if you are simply in a block at all 51 56 52 57 === Think less ===