Sort:  
 4 months ago  

Hmm, I don't understand that.
Can you explain a little more?

Posted via D.Buzz

Let's say you have a comment that says "# Calculate age of data entry (in minutes)" and then a code block that proceeds to do that. Instead you can extract that code block into its own method called "def calculate_age_of_data_entry_in_minutes(data)". Not only does that make the original code block more readable by making it shorter, it also allows the 'calculate_age_of_data_entry_in_minutes' block to be called by other methods in the future, just in case they need to calculate the age of data entries as well.
#sbi-skip

 4 months ago  

Ah, I understand very well now. Thank you very much for this long explanation. 😀