DEV Community

Discussion on: What's Your Coding Quirk?

Collapse
 
sjmulder profile image
Sijmen J. Mulder

I feel like print statements are great for debugging, they're good at showing the order of things or changes over time.

For git, try git add -p. Lets you review and stage one change at a time. Or just git diff (for unstaged changes) or git diff --cached (for staged changes), then you don't need to run 10 diff commands in sequence.