The idea is that often you could be using actual logical separations (functions etc.) instead of whitespace. IMO whitespace has its place though, including for this.
Comment on What are some common misconceptions about programming that you'd like to debunk?
saplyng@kbin.social 11 months agoLines of separation are bad? I like adding a few empty lines to denote a different logical section so it's easier for me to read back later :c
Feathercrown@lemmy.world 11 months ago
pkill@programming.dev 11 months ago
uhh seen this shit with some almost verbatim rewrites with no regards to your code being idiomatic to the point of it all feeling almost verbatim. Like some PHP devs getting confused by the lack of classes in Go and instead of using method receivers and composition over inheritance creating one 250-line behemoth public function to replace a PHP class.
Feathercrown@lemmy.world 11 months ago
Oh no
hawgietonight@lemmy.world 11 months ago
One line is fine if used wisely, everybody does it for readability. The issue is when you need more than one.
Fermiverse@feddit.de 11 months ago
PEP8 is looking at you