Changes between Version 24 and Version 25 of HowtoGoodProgrammingTechniques


Ignore:
Timestamp:
11/13/16 14:19:16 (11 months ago)
Author:
thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoGoodProgrammingTechniques

    v24 v25  
    4949* Align vertical blocks of similar elements by its columns 
    5050* 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 === 
     53Similar 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 
     55And 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 
    5156 
    5257=== Think less ===