Is it good practice to separate code into blocks?
- by LM
If I have a method that does multiple, related things, is it good practice to stick each "thing" that the method does into a seperate block?
Ex.
{
int var
//Code
}
{
int var
//More Code
}
It would help reduce the number of local variables, and make the code more readable, but I'm not sure if it's a good idea.