G
31

My friend looked at my code and said it was a 'wall of text'

I was working on a small Python script for a class project in Denver last month, and I showed my friend what I had. She told me, 'I can't read this, it's just a wall of text.' She pointed out I had zero blank lines between my functions. I went back and added a single blank line between each function, and it was instantly easier to follow. Has anyone else gotten simple feedback that made your code way clearer?
2 comments

Log in to join the discussion

Log In
2 Comments
the_ray
the_ray29d ago
Blank lines are like taking a breath between thoughts. My old boss would print code and literally draw boxes around sections with a red pen. Visual grouping matters way more than we admit.
10
lily_gibson20
Remember my friend showing me his dense code, and I got lost in two seconds. He added some blank lines after reading a post by @the_ray, and suddenly the whole logic made sense. It really is about giving your eyes a place to rest.
1