LeonardoViotti / code-review

0 stars 0 forks source link

BFA #3

Open LeonardoViotti opened 3 years ago

LeonardoViotti commented 3 years ago

Review 01_clean_0.do lines 992-1754.

Below is just the DIME analytics template for code review.

Data cleaning code review checklist (TEMPLATE)

Data source/survey round:

Date:

List of files to be checked [Add names or links]

Reproducibility

Code organization and readability

Clean dataset checks (pre-publication)

Data cleaning tasks

LeonardoViotti commented 3 years ago

The code is excellent! Follows best practices and easy to read. Since I didn't have much to add to 01_clean_0.do, I've made a few suggestions to the rest of the code.

Suggested changes to Master:

Suggested changes to other codes:

Using abbreviated var names is not a big deal but it is considered bad practice. It can lead to errors that are very hard to debug. In fact, there is one case in your code that could be an error, although I'm not sure if it was intentional or not. Here's the commit c8d06bf5daeef8f929a7b146bb5a19c9bdbfa35a