4 ms·
Yes layout is semantic and the automatic layout configuration should not be random nonsense. Configure a style that makes sense and apply it. I've never seen t
by Mike_12345 3y ago
Yes layout is semantic and the automatic layout configuration should not be random nonsense. Configure a style that makes sense and apply it.
I've never seen that code that needed to be weirdly formatted with its own rules separate from other files in the codebase in order to make sense. That just sounds like a developer being a prima donna with their code style, not something that genuinely improves understanding and collaboration.
- erik_seaberg 3y agoI’m thinking of cases like System.arraycopy(src, srcPos, // from dest, destPos, len) // to where I want to show the parallel relationships between src/srcPos and dest/destPos. Blind tools don’t know to do this, they either emit one long line or waste seven lines. Tools also won’t know how to format a DSL well at all, which has already been a problem with Spark jobs in Scala.
- Mike_12345 3y agoMeh. That is so obvious to anyone who would use that function. Just put it on one line. If your function has too many parameters then the code probably needs refactoring. Yes agreed about DSL in Scala. Scala is complicated. I was a Scala dev for many years. We tried to avoid the more academic and overly abstract designs with that language.