2 ms·
you can split large linear function into smaller ones with this one simple trick: function myFunction() { /************************************ *
by DanielHB 3y ago
you can split large linear function into smaller ones with this one simple trick:
function myFunction() {
/************************************
* Subsection 1
************************************/
// code
/************************************
* Subsection 2
************************************/
// code
/************************************
* Subsection 3
************************************/
// code
}
better than splitting into multiple function calls with a bunch of variable-to-parameter and return-type to variable renaming going on. Helps if your language allows you to limit some variable scopes, but usually I wouldn't bother