you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 2 years ago* (1 child)

Myth: code can be ugly as long as it works, don't spend company time on making it look good or on minor optimizations.

The truth is that you can tell when effort has been put into a job. Even if it just works, the lack of discipline means that in the end it will be difficult to maintain and probably will fail in unexpected situations.

Every language has its conventions, but if I spot more than a line of separation between blocks of code, that is a common telltale sign of noob. Run from that shit.

  • source
  • hideshow 2 child comments
  • [–] 9 points 2 years ago (2 children)

    Lines 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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 2 years ago (1 child)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago* (last edited 2 years ago) (1 child)

    uhh seen this shit with some 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.

  • source
  • parent
  • hideshow 2 child comments